EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicRunDigi Class Reference

#include <EicRoot/blob/master/eic/base/EicRunDigi.h>

+ Inheritance diagram for EicRunDigi:
+ Collaboration diagram for EicRunDigi:

Public Member Functions

 EicRunDigi ()
 
 ~EicRunDigi ()
 
void ImportRealHits (const char *fileName, const char *treeName)
 
void SetVectorInputMode ()
 
void SetColumnDescriptor (const char *detName, unsigned group, EicGeoParData::IDXYZ what, double scale=1.0)
 
void SetBranchDescriptor (const char *detName, unsigned group, EicGeoParData::IDXYZ what, const char *dataBranchName, const char *errorBranchName, unsigned offset, double scale=1.0)
 
bool HitImportMode () const
 
int GetDetectorHits (const char *name, unsigned group, unsigned offset, unsigned mdim, double local[], double sigma[]=0)
 
- Public Member Functions inherited from EicRunAna
 EicRunAna ()
 
 ~EicRunAna ()
 
void SetSeed (unsigned seed)
 
void SetInputFile (TString fname)
 
const TString & GetInputFileName () const
 
int AddFriend (const char *fName)
 
void Init ()
 
void Run (Int_t NStart=0, Int_t NStop=0)
 
void RunCoreStart (Int_t NStart=0, Int_t NStop=0)
 
bool RunCoreImportNextEvent (void)
 
void RunCoreProcessNextEvent (void)
 
void RunCoreFinish (void)
 
const std::vector< TString > & GetFriendFiles ()
 
- Public Member Functions inherited from FairRunAna
virtual ~FairRunAna ()
 
 FairRunAna ()
 
 FairRunAna (const char *type, const char *proofName="")
 
void AddFriend (TString fName)
 
void Run (Double_t delta_t)
 
void Run (Long64_t entry)
 
void RunOneEvent (Long64_t entry)
 
void RunMixed (Int_t NStart, Int_t NStop)
 
void RunTSBuffers ()
 
void DummyRun (Int_t NStart, Int_t NStop)
 
void RunOnProof (Int_t NStart, Int_t NStop)
 
void RunOnLmdFiles (UInt_t NStart=0, UInt_t NStop=0)
 
void TerminateRun ()
 
void SetSignalFile (TString name, UInt_t identifier)
 
void SetBackgroundFile (TString name)
 
void AddBackgroundFile (TString name)
 
void AddSignalFile (TString name, UInt_t identifier)
 
void AddFile (TString name)
 
void Reinit (UInt_t runId)
 
UInt_t getRunId ()
 
FairField * GetField ()
 
void SetField (FairField *ffield)
 
void SetGeomFile (const char *GeoFileName)
 
TFile * GetGeoFile ()
 
void InitContainers ()
 
void SetInTree (TTree *tempTree)
 
void SetContainerStatic (Bool_t tempBool=kTRUE)
 
Bool_t GetContainerStatic ()
 
void RunWithTimeStamps ()
 
Bool_t IsTimeStamp ()
 
void CompressData ()
 
void SetEventTimeInterval (Double_t min, Double_t max)
 
void SetEventMeanTime (Double_t mean)
 
void BGWindowWidthNo (UInt_t background, UInt_t Signalid)
 
void BGWindowWidthTime (Double_t background, UInt_t Signalid)
 
TProof * GetProof ()
 
void SetRunOnProofWorker (Bool_t tb=kTRUE)
 
void SetProofParName (TString parName)
 
void SetOutputDirectory (TString dirName)
 
void SetProofOutputStatus (TString outStat)
 
void StopProcessingLMD (void)
 
Bool_t GetLMDProcessingStatus (void)
 
- Public Member Functions inherited from FairRun
 FairRun ()
 
virtual ~FairRun ()
 
virtual void AddTask (FairTask *t)
 
virtual void SetTask (FairTask *t)
 
virtual void SetOutputFile (const char *fname)
 
void SetOutputFile (TFile *f)
 
void SetEventHeader (FairEventHeader *EvHeader)
 
FairRuntimeDbGetRuntimeDb (void)
 
TFile * GetOutputFile ()
 
Int_t GetRunId ()
 
FairEventHeaderGetEventHeader ()
 
Bool_t IsAna ()
 
FairTaskGetTask (const char *taskName)
 
FairTaskGetMainTask ()
 
Int_t GetNTasks ()
 
void CreateGeometryFile (const char *geofile)
 
void SetWriteRunInfoFile (Bool_t write)
 
Bool_t GetWriteRunInfoFile ()
 
virtual bool JanaLoopPossible (void) const
 
int GetCurrentEventIndex (void) const
 

Private Attributes

TString mInputHitFileName
 
FILE * mInputHitAsciiFile
 
TFile * mInputHitRootFile
 ASCII file descriptor.
 
TTree * mHitTree
 ROOT file descriptor.
 
Bool_t mVectorInputMode
 ROOT tree with hits.
 
std::vector< BranchBuffer * > mBranchBuffers
 If true, assume branch with hits is a vector.
 
int mLastImportedEventID
 ROOT branch buffer vector.
 
std::vector
< ColumnOrBranchDescriptor * > 
mDescriptors
 identifier of the last imported event
 

Additional Inherited Members

- Static Public Member Functions inherited from EicRunAna
static EicRunAnaInstance ()
 
- Protected Attributes inherited from FairRunAna
FairRunInfo fRunInfo
 
Bool_t fIsInitialized
 
TFile * fInputGeoFile
 
Bool_t fLoadGeo
 
FairEventHeaderfEvtHeader
 
FairMCEventHeaderfMCHeader
 
Bool_t fStatic
 
FairField * fField
 
Bool_t fTimeStamps
 
Bool_t fInFileIsOpen
 
Bool_t fMixedInput
 
Double_t fEventTimeMin
 
Double_t fEventTimeMax
 
Double_t fEventTime
 
Double_t fEventMeanTime
 
TF1 * fTimeProb
 
TProof * fProof
 
Bool_t fProofAnalysis
 
Bool_t fRunOnProofWorker
 
TString fProofServerName
 
TString fProofParName
 
TString fOutputDirectory
 
TString fProofOutputStatus
 
Bool_t fFinishProcessingLMDFile
 
- Static Protected Attributes inherited from FairRunAna
static FairRunAnafgRinstance = 0
 

Detailed Description

Definition at line 66 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 66 of file EicRunDigi.h

Constructor & Destructor Documentation

EicRunDigi::EicRunDigi ( )
inline

Definition at line 69 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 69 of file EicRunDigi.h

EicRunDigi::~EicRunDigi ( )
inline

Definition at line 74 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 74 of file EicRunDigi.h

Member Function Documentation

int EicRunDigi::GetDetectorHits ( const char *  name,
unsigned  group,
unsigned  offset,
unsigned  mdim,
double  local[],
double  sigma[] = 0 
)
bool EicRunDigi::HitImportMode ( ) const
inline

Definition at line 129 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 129 of file EicRunDigi.h

References mInputHitFileName.

Referenced by EicTrackingDigiHitProducer::EicTrackingDigiHitProducer().

+ Here is the caller graph for this function:

void EicRunDigi::ImportRealHits ( const char *  fileName,
const char *  treeName 
)

Definition at line 18 of file EicRunDigi.cxx.

View newest version in sPHENIX GitHub at line 18 of file EicRunDigi.cxx

References FairLogger::Fatal(), FairRun::fLogger, MESSAGE_ORIGIN, mHitTree, mInputHitAsciiFile, mInputHitFileName, and mInputHitRootFile.

+ Here is the call graph for this function:

void EicRunDigi::SetBranchDescriptor ( const char *  detName,
unsigned  group,
EicGeoParData::IDXYZ  what,
const char *  dataBranchName,
const char *  errorBranchName,
unsigned  offset,
double  scale = 1.0 
)
inline
void EicRunDigi::SetColumnDescriptor ( const char *  detName,
unsigned  group,
EicGeoParData::IDXYZ  what,
double  scale = 1.0 
)
inline

Definition at line 81 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 81 of file EicRunDigi.h

References mDescriptors.

void EicRunDigi::SetVectorInputMode ( )
inline

Definition at line 78 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 78 of file EicRunDigi.h

References mVectorInputMode.

Member Data Documentation

std::vector<BranchBuffer*> EicRunDigi::mBranchBuffers
private

If true, assume branch with hits is a vector.

Definition at line 142 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 142 of file EicRunDigi.h

Referenced by GetDetectorHits(), and SetBranchDescriptor().

std::vector<ColumnOrBranchDescriptor*> EicRunDigi::mDescriptors
private

identifier of the last imported event

Definition at line 149 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 149 of file EicRunDigi.h

Referenced by GetDetectorHits(), SetBranchDescriptor(), and SetColumnDescriptor().

TTree* EicRunDigi::mHitTree
private

ROOT file descriptor.

Definition at line 140 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 140 of file EicRunDigi.h

Referenced by GetDetectorHits(), ImportRealHits(), and SetBranchDescriptor().

FILE* EicRunDigi::mInputHitAsciiFile
private

Definition at line 137 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 137 of file EicRunDigi.h

Referenced by GetDetectorHits(), and ImportRealHits().

TString EicRunDigi::mInputHitFileName
private

Definition at line 135 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 135 of file EicRunDigi.h

Referenced by HitImportMode(), and ImportRealHits().

TFile* EicRunDigi::mInputHitRootFile
private

ASCII file descriptor.

Definition at line 139 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 139 of file EicRunDigi.h

Referenced by GetDetectorHits(), and ImportRealHits().

int EicRunDigi::mLastImportedEventID
private

ROOT branch buffer vector.

Definition at line 147 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 147 of file EicRunDigi.h

Referenced by GetDetectorHits().

Bool_t EicRunDigi::mVectorInputMode
private

ROOT tree with hits.

Definition at line 141 of file EicRunDigi.h.

View newest version in sPHENIX GitHub at line 141 of file EicRunDigi.h

Referenced by GetDetectorHits(), SetBranchDescriptor(), and SetVectorInputMode().


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