SimEventResult Class Reference

#include <SimEventResult.h>

List of all members.

Public Member Functions

 SimEventResult ()
 SimEventResult (const SimEventResult &rhs)
virtual ~SimEventResult ()
void operator= (const SimEventResult &rhs)
void Reset ()
virtual void Print (Option_t *option="") const
virtual std::ostream & FormatToOStream (std::ostream &os, Option_t *option="") const
 ClassDef (SimEventResult, 4)

Public Attributes

Int_t run
Int_t event
Double_t timeShift
Int_t addNS
Int_t addQieTDC
Int_t addVaTDC
Float_t totalPe
Int_t npe
Int_t hitPixels
Int_t hitPixelsWithXtalk
Float_t totalCharge
Int_t digitsAfterFETrigger
Float_t adcsAfterFETrigger
Int_t digitsAfterSpars
Float_t adcsAfterSpars
Int_t digitsAfterDaqTrigger
Float_t adcsAfterDaqTrigger
Int_t snarls
Int_t bigSnarl
Int_t * snarl_digits
Int_t * snarl_trigger
Float_t * snarl_adcs

Friends

class SimDetector
std::ostream & operator<< (std::ostream &os, const SimEventResult &r)


Detailed Description

Definition at line 14 of file SimEventResult.h.


Constructor & Destructor Documentation

SimEventResult::SimEventResult (  ) 

Definition at line 11 of file SimEventResult.cxx.

00011                                :
00012   TNamed("SimEventResult","DetSim Event Statistics")
00013 {
00014   snarl_digits = 0; 
00015   snarl_trigger = 0;
00016   snarl_adcs = 0; 
00017   Reset();
00018 }

SimEventResult::SimEventResult ( const SimEventResult rhs  ) 

Definition at line 20 of file SimEventResult.cxx.

00020                                                         :
00021   TNamed("SimEventResult","DetSim Event Statistics")
00022 {
00023   (*this) = rhs;
00024 }

virtual SimEventResult::~SimEventResult (  )  [inline, virtual]

Definition at line 19 of file SimEventResult.h.

References Reset().

00019 { Reset(); };


Member Function Documentation

SimEventResult::ClassDef ( SimEventResult  ,
 
)

std::ostream & SimEventResult::FormatToOStream ( std::ostream &  os,
Option_t *  option = "" 
) const [virtual]

Definition at line 105 of file SimEventResult.cxx.

References adcsAfterDaqTrigger, adcsAfterFETrigger, adcsAfterSpars, addNS, addQieTDC, addVaTDC, digitsAfterDaqTrigger, digitsAfterFETrigger, digitsAfterSpars, Munits::fC, Form(), Nav::GetName(), hitPixels, hitPixelsWithXtalk, run, snarl_adcs, snarl_digits, snarl_trigger, snarls, timeShift, totalCharge, and totalPe.

Referenced by operator<<(), and Print().

00107 {
00108   os << GetName() << endl
00109      << "  Run:                  \t" << run << endl 
00110      << "  Event:                \t" << event << endl 
00111      << "  TotalPe:              \t" << totalPe << endl 
00112      << "  HitPixelBuckets:      \t" << hitPixels << endl 
00113      << "  HitPixelsWithXtalk:   \t" << hitPixelsWithXtalk << endl 
00114      << "  TotalCharge:          \t" << totalCharge/Munits::fC << " fC" << endl
00115      << "  DigitsAfterFETrigger: \t" << digitsAfterFETrigger << endl
00116      << "  AdcsAfterFETrigger:   \t" << adcsAfterFETrigger << endl
00117      << "  DigitsAfterSpars:     \t" << digitsAfterSpars << endl
00118      << "  AdcsAfterSpars:       \t" << adcsAfterSpars << endl
00119      << "  DigitsAfterDaqTrigger:\t" << digitsAfterDaqTrigger << endl
00120      << "  AdcsAfterDaqTrigger:  \t" << adcsAfterDaqTrigger << endl
00121      << "  Snarls:               \t" << snarls << endl
00122     ;
00123   for(Int_t  i=0;i<snarls;i++) {
00124     os << Form("   Snarl: %2d   Triggers: 0x%08x  Digits: %4d   ADCs: %5f",
00125                i,snarl_trigger[i],snarl_digits[i],snarl_adcs[i]) 
00126        << endl;
00127   }
00128   os << "  TimeShift:\t" << timeShift << endl
00129      << "  AddNS:\t"     << addNS
00130      << " TDC ticks: " << addQieTDC << " (QIE) "
00131      << addVaTDC << " (VA)" << endl;
00132    return os;
00133 }

void SimEventResult::operator= ( const SimEventResult rhs  ) 

Definition at line 26 of file SimEventResult.cxx.

References adcsAfterDaqTrigger, adcsAfterFETrigger, adcsAfterSpars, addNS, addQieTDC, addVaTDC, bigSnarl, digitsAfterDaqTrigger, digitsAfterFETrigger, digitsAfterSpars, event, hitPixels, hitPixelsWithXtalk, npe, run, snarl_adcs, snarl_digits, snarl_trigger, snarls, timeShift, totalCharge, and totalPe.

00027 {
00028   run = rhs.run;
00029   event = rhs.event;
00030   timeShift = rhs.timeShift;
00031   addNS = rhs.addNS;
00032   addQieTDC = rhs.addQieTDC;
00033   addVaTDC = rhs.addVaTDC;
00034 
00035   totalPe=rhs.totalPe; 
00036   npe=rhs.npe; 
00037 
00038   hitPixels=rhs.hitPixels;
00039   hitPixelsWithXtalk=rhs.hitPixelsWithXtalk;
00040   totalCharge=rhs.totalCharge;
00041   digitsAfterFETrigger = rhs.digitsAfterFETrigger;
00042   adcsAfterFETrigger = rhs.adcsAfterFETrigger;
00043   digitsAfterSpars = rhs.digitsAfterSpars;
00044   adcsAfterSpars = rhs.adcsAfterSpars;
00045 
00046   digitsAfterDaqTrigger = rhs.digitsAfterDaqTrigger;
00047   adcsAfterDaqTrigger = rhs.adcsAfterDaqTrigger;
00048   
00049   
00050   snarls = rhs.snarls;
00051   bigSnarl = rhs.bigSnarl; // The id of the biggest snarl;
00052   snarl_digits = new Int_t[snarls];
00053   snarl_trigger = new Int_t[snarls];
00054   snarl_adcs = new Float_t[snarls];
00055   for(int i=0;i<snarls;i++) {
00056     snarl_digits[i] = rhs.snarl_digits[i];
00057     snarl_trigger[i] = rhs.snarl_trigger[i];
00058     snarl_adcs[i] = rhs.snarl_adcs[i];
00059   }
00060 }

void SimEventResult::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 99 of file SimEventResult.cxx.

References FormatToOStream().

Referenced by SimDetector::Print().

00100 {
00101    FormatToOStream(std::cout,option);
00102 }

void SimEventResult::Reset (  ) 

Definition at line 63 of file SimEventResult.cxx.

References adcsAfterDaqTrigger, adcsAfterFETrigger, adcsAfterSpars, addNS, addQieTDC, addVaTDC, bigSnarl, digitsAfterDaqTrigger, digitsAfterFETrigger, digitsAfterSpars, hitPixels, hitPixelsWithXtalk, npe, run, snarl_adcs, snarl_digits, snarl_trigger, snarls, timeShift, totalCharge, and totalPe.

Referenced by SimDetector::CompileStats(), and ~SimEventResult().

00064 {
00065   run = 0;
00066   event = 0;
00067   timeShift = 0;
00068   addNS = 0;
00069   addQieTDC = 0;
00070   addVaTDC = 0;
00071 
00072   totalPe = 0; // Total PEs input to DetSim
00073   npe = 0; // Number of pe objects.
00074 
00075   hitPixels = 0; // Total pixel buckets with at least 1 pe
00076   hitPixelsWithXtalk = 0; // Total pixel buckets with at least 1pe, incl crosstalk
00077   totalCharge = 0;
00078   digitsAfterFETrigger = 0;
00079   adcsAfterFETrigger = 0;
00080   digitsAfterSpars = 0;
00081   adcsAfterSpars = 0;
00082   digitsAfterDaqTrigger = 0;
00083   adcsAfterDaqTrigger = 0;
00084 
00085   snarls = 0;
00086   bigSnarl = 0; // The id of the biggest snarl;
00087   if(snarl_digits) delete [] snarl_digits;
00088   if(snarl_trigger) delete [] snarl_trigger;
00089   if(snarl_adcs) delete [] snarl_adcs;
00090   
00091   snarl_digits = 0; 
00092   snarl_trigger = 0;
00093   snarl_adcs = 0; 
00094 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SimEventResult r 
) [friend]

friend class SimDetector [friend]

Definition at line 29 of file SimEventResult.h.


Member Data Documentation

Float_t SimEventResult::adcsAfterDaqTrigger

Definition at line 49 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Float_t SimEventResult::adcsAfterFETrigger

Definition at line 44 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Float_t SimEventResult::adcsAfterSpars

Definition at line 46 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::addNS

Definition at line 33 of file SimEventResult.h.

Referenced by FormatToOStream(), DetSim::Get(), operator=(), and Reset().

Int_t SimEventResult::addQieTDC

Definition at line 34 of file SimEventResult.h.

Referenced by FormatToOStream(), DetSim::Get(), operator=(), and Reset().

Int_t SimEventResult::addVaTDC

Definition at line 35 of file SimEventResult.h.

Referenced by FormatToOStream(), DetSim::Get(), operator=(), and Reset().

Int_t SimEventResult::bigSnarl

Definition at line 52 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), operator=(), and Reset().

Int_t SimEventResult::digitsAfterDaqTrigger

Definition at line 48 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::digitsAfterFETrigger

Definition at line 43 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::digitsAfterSpars

Definition at line 45 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::event

Definition at line 31 of file SimEventResult.h.

Referenced by DetSim::Get(), and operator=().

Int_t SimEventResult::hitPixels

Definition at line 40 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::hitPixelsWithXtalk

Definition at line 41 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::npe

Definition at line 38 of file SimEventResult.h.

Referenced by DetSim::Ana(), operator=(), and Reset().

Int_t SimEventResult::run

Definition at line 30 of file SimEventResult.h.

Referenced by FormatToOStream(), DetSim::Get(), operator=(), and Reset().

Float_t* SimEventResult::snarl_adcs

Definition at line 55 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t* SimEventResult::snarl_digits

Definition at line 53 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t* SimEventResult::snarl_trigger

Definition at line 54 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Int_t SimEventResult::snarls

Definition at line 51 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Double_t SimEventResult::timeShift

Definition at line 32 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Float_t SimEventResult::totalCharge

Definition at line 42 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().

Float_t SimEventResult::totalPe

Definition at line 37 of file SimEventResult.h.

Referenced by SimDetector::CompileStats(), FormatToOStream(), operator=(), and Reset().


The documentation for this class was generated from the following files:
Generated on Wed Sep 10 22:52:08 2014 for loon by  doxygen 1.4.7