EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/base/EicRunDigi.h>
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) |
FairRuntimeDb * | GetRuntimeDb (void) |
TFile * | GetOutputFile () |
Int_t | GetRunId () |
FairEventHeader * | GetEventHeader () |
Bool_t | IsAna () |
FairTask * | GetTask (const char *taskName) |
FairTask * | GetMainTask () |
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 EicRunAna * | Instance () |
Protected Attributes inherited from FairRunAna | |
FairRunInfo | fRunInfo |
Bool_t | fIsInitialized |
TFile * | fInputGeoFile |
Bool_t | fLoadGeo |
FairEventHeader * | fEvtHeader |
FairMCEventHeader * | fMCHeader |
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 FairRunAna * | fgRinstance = 0 |
Definition at line 66 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 66 of file EicRunDigi.h
|
inline |
Definition at line 69 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 69 of file EicRunDigi.h
|
inline |
Definition at line 74 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 74 of file EicRunDigi.h
int EicRunDigi::GetDetectorHits | ( | const char * | name, |
unsigned | group, | ||
unsigned | offset, | ||
unsigned | mdim, | ||
double | local[], | ||
double | sigma[] = 0 |
||
) |
Definition at line 56 of file EicRunDigi.cxx.
View newest version in sPHENIX GitHub at line 56 of file EicRunDigi.cxx
References _ARRAY_DIM_MAX_, _FLOAT_INVALID_, FairRun::GetEventHeader(), FairEventHeader::GetMCEntryNumber(), mBranchBuffers, ColumnOrBranchDescriptor::mData, BranchBuffer::mDataArray, BranchBuffer::mDataBranchName, ColumnOrBranchDescriptor::mDataPtr, BranchBuffer::mDataVector, mDescriptors, ColumnOrBranchDescriptor::mDetName, ColumnOrBranchDescriptor::mError, BranchBuffer::mErrorArray, ColumnOrBranchDescriptor::mErrorPtr, BranchBuffer::mErrorVector, ColumnOrBranchDescriptor::mGroup, ColumnOrBranchDescriptor::mHaveFreshData, mHitTree, mInputHitAsciiFile, mInputHitRootFile, mLastImportedEventID, ColumnOrBranchDescriptor::mScale, mVectorInputMode, ColumnOrBranchDescriptor::mWhat, offset, x, and y.
|
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().
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.
|
inline |
Definition at line 85 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 85 of file EicRunDigi.h
References mBranchBuffers, BranchBuffer::mDataArray, BranchBuffer::mDataBranchName, BranchBuffer::mDataVector, mDescriptors, BranchBuffer::mErrorArray, BranchBuffer::mErrorBranchName, BranchBuffer::mErrorVector, mHitTree, mVectorInputMode, and offset.
|
inline |
Definition at line 81 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 81 of file EicRunDigi.h
References mDescriptors.
|
inline |
Definition at line 78 of file EicRunDigi.h.
View newest version in sPHENIX GitHub at line 78 of file EicRunDigi.h
References mVectorInputMode.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().