CbmRoot
|
#include <CbmEvBuildSource.h>
Public Member Functions | |
CbmEvBuildSource () | |
CbmEvBuildSource (const char *fname) | |
virtual | ~CbmEvBuildSource () |
void | AddFile (const char *fname) |
virtual Bool_t | Init () |
virtual Int_t | ReadEvent (UInt_t par=0) |
virtual void | Close () |
virtual void | Reset () |
virtual Bool_t | ActivateObject (TObject **, const char *) |
virtual Int_t | CheckMaxEventNo (Int_t=0) |
virtual void | ReadBranchEvent (const char *) |
virtual void | ReadBranchEvent (const char *, Int_t) |
virtual void | FillEventHeader (FairEventHeader *feh) |
void | SetWindDur (Double_t winddur=2) |
void | SetMinusDeltaT (Double_t minusdeltat=2) |
void | SetPlusDeltaT (Double_t plusdeltat=5) |
void | SetMinHitStations (Int_t minhitstations=8) |
void | SetMinDigis (Int_t mindigis=2000) |
void | SetDeadT (Double_t deadt=10) |
CbmEvBuildSource (const CbmEvBuildSource &source) | |
void | FillEvent (Int_t st, Int_t end) |
Int_t | GetNextTimeSlice () |
Private Member Functions | |
CbmEvBuildSource & | operator= (const CbmEvBuildSource &) |
Event header. More... | |
Private Attributes | |
TChain * | fCh |
Int_t | fN |
Chain of input files. More... | |
Int_t | fI |
TClonesArray * | fSTSDigi |
Int_t | fNSTSDigis |
Array of output STS digis for each built event. More... | |
CbmTimeSlice * | fSlice |
Int_t | fISts |
Current time slice. More... | |
UInt_t | fEv |
Int_t | fNDigis |
Int_t | fSN |
Double_t | fST |
Int_t | fNStsDigis [16] |
Double_t | fWindDur |
Double_t | fMinusDeltaT |
Double_t | fPlusDeltaT |
Double_t | fDeadT |
Int_t | fMinHitStations |
Int_t | fMinDigis |
FairEventHeader * | fEvHeader |
Definition at line 17 of file CbmEvBuildSource.h.
CbmEvBuildSource::CbmEvBuildSource | ( | ) |
Definition at line 20 of file CbmEvBuildSource.cxx.
References fCh.
CbmEvBuildSource::CbmEvBuildSource | ( | const char * | fname | ) |
Definition at line 43 of file CbmEvBuildSource.cxx.
|
virtual |
Definition at line 281 of file CbmEvBuildSource.cxx.
CbmEvBuildSource::CbmEvBuildSource | ( | const CbmEvBuildSource & | source | ) |
Definition at line 67 of file CbmEvBuildSource.cxx.
|
inlinevirtual |
Definition at line 32 of file CbmEvBuildSource.h.
void CbmEvBuildSource::AddFile | ( | const char * | fname | ) |
Definition at line 279 of file CbmEvBuildSource.cxx.
References fCh.
Referenced by CbmEvBuildSource().
|
inlinevirtual |
Check the maximum event number we can run to
Definition at line 35 of file CbmEvBuildSource.h.
|
virtual |
Definition at line 211 of file CbmEvBuildSource.cxx.
void CbmEvBuildSource::FillEvent | ( | Int_t | st, |
Int_t | end | ||
) |
Fills Stsdigis array. STS separate, because start and end] end digi is known.
Definition at line 261 of file CbmEvBuildSource.cxx.
References fEv, fNSTSDigis, fSlice, fSTSDigi, i, and kSts.
Referenced by ReadEvent().
|
virtual |
Definition at line 286 of file CbmEvBuildSource.cxx.
References fEvHeader.
Int_t CbmEvBuildSource::GetNextTimeSlice | ( | ) |
Definition at line 213 of file CbmEvBuildSource.cxx.
References fCh, fEvHeader, fI, fISts, fN, fNDigis, fNStsDigis, fSlice, fSN, fST, CbmTimeSlice::GetStartTime(), i, and kSts.
Referenced by ReadEvent().
|
virtual |
Definition at line 233 of file CbmEvBuildSource.cxx.
References fCh, fEvHeader, fI, fN, fNSTSDigis, fSlice, and fSTSDigi.
|
private |
Event header.
|
inlinevirtual |
Read the tre entry on one branch
Definition at line 37 of file CbmEvBuildSource.h.
|
inlinevirtual |
Definition at line 38 of file CbmEvBuildSource.h.
|
virtual |
Definition at line 90 of file CbmEvBuildSource.cxx.
References fDeadT, fEv, fI, FillEvent(), fISts, fMinDigis, fMinHitStations, fMinusDeltaT, fNDigis, fNStsDigis, fPlusDeltaT, fSlice, fSN, fST, fWindDur, CbmStsDigi::GetAddress(), CbmStsAddress::GetElementId(), GetNextTimeSlice(), CbmStsDigi::GetTime(), kSts, and kStsUnit.
|
virtual |
Definition at line 255 of file CbmEvBuildSource.cxx.
|
inline |
Definition at line 49 of file CbmEvBuildSource.h.
References fDeadT.
|
inline |
Definition at line 48 of file CbmEvBuildSource.h.
References fMinDigis.
|
inline |
Definition at line 45 of file CbmEvBuildSource.h.
References fMinHitStations.
|
inline |
Definition at line 43 of file CbmEvBuildSource.h.
References fMinusDeltaT.
|
inline |
Definition at line 44 of file CbmEvBuildSource.h.
References fPlusDeltaT.
|
inline |
Definition at line 42 of file CbmEvBuildSource.h.
References fWindDur.
|
private |
Definition at line 57 of file CbmEvBuildSource.h.
Referenced by AddFile(), CbmEvBuildSource(), GetNextTimeSlice(), Init(), and ~CbmEvBuildSource().
|
private |
Definition at line 74 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetDeadT().
|
private |
Definition at line 65 of file CbmEvBuildSource.h.
Referenced by FillEvent(), and ReadEvent().
|
private |
Definition at line 79 of file CbmEvBuildSource.h.
Referenced by FillEventHeader(), GetNextTimeSlice(), and Init().
|
private |
Definition at line 59 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), Init(), and ReadEvent().
|
private |
Current time slice.
Definition at line 63 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and ReadEvent().
|
private |
Definition at line 78 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetMinDigis().
|
private |
Definition at line 76 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetMinHitStations().
|
private |
Definition at line 72 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetMinusDeltaT().
|
private |
Chain of input files.
Definition at line 58 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and Init().
|
private |
Definition at line 66 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and ReadEvent().
|
private |
Array of output STS digis for each built event.
Definition at line 61 of file CbmEvBuildSource.h.
Referenced by FillEvent(), and Init().
|
private |
Definition at line 69 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and ReadEvent().
|
private |
Definition at line 73 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetPlusDeltaT().
|
private |
Definition at line 62 of file CbmEvBuildSource.h.
Referenced by FillEvent(), GetNextTimeSlice(), Init(), and ReadEvent().
|
private |
Definition at line 67 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and ReadEvent().
|
private |
Definition at line 68 of file CbmEvBuildSource.h.
Referenced by GetNextTimeSlice(), and ReadEvent().
|
private |
Definition at line 60 of file CbmEvBuildSource.h.
Referenced by FillEvent(), Init(), and ~CbmEvBuildSource().
|
private |
Definition at line 70 of file CbmEvBuildSource.h.
Referenced by ReadEvent(), and SetWindDur().