CbmRoot
CbmEvBuildSource Class Reference

#include <CbmEvBuildSource.h>

Inheritance diagram for CbmEvBuildSource:
[legend]
Collaboration diagram for CbmEvBuildSource:
[legend]

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

CbmEvBuildSourceoperator= (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...
 
CbmTimeSlicefSlice
 
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
 

Detailed Description

Definition at line 17 of file CbmEvBuildSource.h.

Constructor & Destructor Documentation

◆ CbmEvBuildSource() [1/3]

CbmEvBuildSource::CbmEvBuildSource ( )

Definition at line 20 of file CbmEvBuildSource.cxx.

References fCh.

◆ CbmEvBuildSource() [2/3]

CbmEvBuildSource::CbmEvBuildSource ( const char *  fname)

Definition at line 43 of file CbmEvBuildSource.cxx.

References AddFile(), and fCh.

◆ ~CbmEvBuildSource()

CbmEvBuildSource::~CbmEvBuildSource ( )
virtual

Definition at line 281 of file CbmEvBuildSource.cxx.

References fCh, and fSTSDigi.

◆ CbmEvBuildSource() [3/3]

CbmEvBuildSource::CbmEvBuildSource ( const CbmEvBuildSource source)

Definition at line 67 of file CbmEvBuildSource.cxx.

Member Function Documentation

◆ ActivateObject()

virtual Bool_t CbmEvBuildSource::ActivateObject ( TObject **  ,
const char *   
)
inlinevirtual

Definition at line 32 of file CbmEvBuildSource.h.

◆ AddFile()

void CbmEvBuildSource::AddFile ( const char *  fname)

Definition at line 279 of file CbmEvBuildSource.cxx.

References fCh.

Referenced by CbmEvBuildSource().

◆ CheckMaxEventNo()

virtual Int_t CbmEvBuildSource::CheckMaxEventNo ( Int_t  = 0)
inlinevirtual

Check the maximum event number we can run to

Definition at line 35 of file CbmEvBuildSource.h.

◆ Close()

void CbmEvBuildSource::Close ( )
virtual

Definition at line 211 of file CbmEvBuildSource.cxx.

◆ FillEvent()

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().

◆ FillEventHeader()

void CbmEvBuildSource::FillEventHeader ( FairEventHeader *  feh)
virtual

Definition at line 286 of file CbmEvBuildSource.cxx.

References fEvHeader.

◆ GetNextTimeSlice()

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().

◆ Init()

Bool_t CbmEvBuildSource::Init ( )
virtual

Definition at line 233 of file CbmEvBuildSource.cxx.

References fCh, fEvHeader, fI, fN, fNSTSDigis, fSlice, and fSTSDigi.

◆ operator=()

CbmEvBuildSource& CbmEvBuildSource::operator= ( const CbmEvBuildSource )
private

Event header.

◆ ReadBranchEvent() [1/2]

virtual void CbmEvBuildSource::ReadBranchEvent ( const char *  )
inlinevirtual

Read the tre entry on one branch

Definition at line 37 of file CbmEvBuildSource.h.

◆ ReadBranchEvent() [2/2]

virtual void CbmEvBuildSource::ReadBranchEvent ( const char *  ,
Int_t   
)
inlinevirtual

Definition at line 38 of file CbmEvBuildSource.h.

◆ ReadEvent()

◆ Reset()

void CbmEvBuildSource::Reset ( )
virtual

Definition at line 255 of file CbmEvBuildSource.cxx.

◆ SetDeadT()

void CbmEvBuildSource::SetDeadT ( Double_t  deadt = 10)
inline

Definition at line 49 of file CbmEvBuildSource.h.

References fDeadT.

◆ SetMinDigis()

void CbmEvBuildSource::SetMinDigis ( Int_t  mindigis = 2000)
inline

Definition at line 48 of file CbmEvBuildSource.h.

References fMinDigis.

◆ SetMinHitStations()

void CbmEvBuildSource::SetMinHitStations ( Int_t  minhitstations = 8)
inline

Definition at line 45 of file CbmEvBuildSource.h.

References fMinHitStations.

◆ SetMinusDeltaT()

void CbmEvBuildSource::SetMinusDeltaT ( Double_t  minusdeltat = 2)
inline

Definition at line 43 of file CbmEvBuildSource.h.

References fMinusDeltaT.

◆ SetPlusDeltaT()

void CbmEvBuildSource::SetPlusDeltaT ( Double_t  plusdeltat = 5)
inline

Definition at line 44 of file CbmEvBuildSource.h.

References fPlusDeltaT.

◆ SetWindDur()

void CbmEvBuildSource::SetWindDur ( Double_t  winddur = 2)
inline

Definition at line 42 of file CbmEvBuildSource.h.

References fWindDur.

Member Data Documentation

◆ fCh

TChain* CbmEvBuildSource::fCh
private

◆ fDeadT

Double_t CbmEvBuildSource::fDeadT
private

Definition at line 74 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetDeadT().

◆ fEv

UInt_t CbmEvBuildSource::fEv
private

Definition at line 65 of file CbmEvBuildSource.h.

Referenced by FillEvent(), and ReadEvent().

◆ fEvHeader

FairEventHeader* CbmEvBuildSource::fEvHeader
private

Definition at line 79 of file CbmEvBuildSource.h.

Referenced by FillEventHeader(), GetNextTimeSlice(), and Init().

◆ fI

Int_t CbmEvBuildSource::fI
private

Definition at line 59 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), Init(), and ReadEvent().

◆ fISts

Int_t CbmEvBuildSource::fISts
private

Current time slice.

Definition at line 63 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and ReadEvent().

◆ fMinDigis

Int_t CbmEvBuildSource::fMinDigis
private

Definition at line 78 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetMinDigis().

◆ fMinHitStations

Int_t CbmEvBuildSource::fMinHitStations
private

Definition at line 76 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetMinHitStations().

◆ fMinusDeltaT

Double_t CbmEvBuildSource::fMinusDeltaT
private

Definition at line 72 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetMinusDeltaT().

◆ fN

Int_t CbmEvBuildSource::fN
private

Chain of input files.

Definition at line 58 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and Init().

◆ fNDigis

Int_t CbmEvBuildSource::fNDigis
private

Definition at line 66 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and ReadEvent().

◆ fNSTSDigis

Int_t CbmEvBuildSource::fNSTSDigis
private

Array of output STS digis for each built event.

Definition at line 61 of file CbmEvBuildSource.h.

Referenced by FillEvent(), and Init().

◆ fNStsDigis

Int_t CbmEvBuildSource::fNStsDigis[16]
private

Definition at line 69 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and ReadEvent().

◆ fPlusDeltaT

Double_t CbmEvBuildSource::fPlusDeltaT
private

Definition at line 73 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetPlusDeltaT().

◆ fSlice

CbmTimeSlice* CbmEvBuildSource::fSlice
private

Definition at line 62 of file CbmEvBuildSource.h.

Referenced by FillEvent(), GetNextTimeSlice(), Init(), and ReadEvent().

◆ fSN

Int_t CbmEvBuildSource::fSN
private

Definition at line 67 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and ReadEvent().

◆ fST

Double_t CbmEvBuildSource::fST
private

Definition at line 68 of file CbmEvBuildSource.h.

Referenced by GetNextTimeSlice(), and ReadEvent().

◆ fSTSDigi

TClonesArray* CbmEvBuildSource::fSTSDigi
private

Definition at line 60 of file CbmEvBuildSource.h.

Referenced by FillEvent(), Init(), and ~CbmEvBuildSource().

◆ fWindDur

Double_t CbmEvBuildSource::fWindDur
private

Definition at line 70 of file CbmEvBuildSource.h.

Referenced by ReadEvent(), and SetWindDur().


The documentation for this class was generated from the following files: