EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Base digitization class. More...
#include <EicRoot/blob/master/eic/base/EicDigiHitProducer.h>
Public Types | |
enum | SmearingModel { NoAction, Smear, Quantize, Calculate } |
digitization model identifiers More... | |
Public Member Functions | |
EicDigiHitProducer () | |
EicDigiHitProducer (const char *name) | |
~EicDigiHitProducer () | |
void | ResetVars () |
InitStatus | Init () |
virtual InitStatus | ExtraInit () |
virtual int | PreExec () |
virtual void | Exec (Option_t *opt) |
virtual int | PostExec () |
virtual int | HandleHit (const EicMoCaPoint *point)=0 |
void | SetPersistence (Bool_t persistence) |
void | DeclareDigiSensitiveVolume (const char *name, Double_t Kb=0.0) |
void | DeclareDigiSensitiveVolumePrefix (const char *name, Double_t Kb=0.0) |
Public Member Functions inherited from FairTask | |
FairTask () | |
FairTask (const char *name, Int_t iVerbose=1) | |
virtual | ~FairTask () |
void | InitTask () |
void | ReInitTask () |
void | SetParTask () |
virtual void | FinishTask () |
virtual void | FinishEvent () |
void | SetVerbose (Int_t iVerbose) |
void | SetInputPersistance (Bool_t val) |
void | CheckInputPersistance (TString branchName) |
Protected Attributes | |
EicDetName * | mDetName |
TClonesArray * | mDigiHitArray |
EicGeoParData * | mGptr |
EicNamePatternHub< double > | mSensitiveVolumes |
Bool_t | mPersistence |
Protected Attributes inherited from FairTask | |
Int_t | fVerbose |
Int_t | fInputPersistance |
Indicates if input branch is persistant. | |
FairLogger * | fLogger |
Private Member Functions | |
void | SetParContainers () |
EicDigiHitProducer (const EicDigiHitProducer &L) | |
EicDigiHitProducer & | operator= (const EicDigiHitProducer &) |
ClassDef (EicDigiHitProducer, 8) | |
Private Attributes | |
TClonesArray * | mMoCaPointArray |
Int_t | mEventCounter |
Additional Inherited Members | |
Protected Member Functions inherited from FairTask | |
virtual InitStatus | ReInit () |
virtual void | Finish () |
void | InitTasks () |
void | ReInitTasks () |
void | SetParTasks () |
void | FinishTasks () |
void | FinishEvents () |
Base digitization class.
Definition at line 25 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 25 of file EicDigiHitProducer.h
digitization model identifiers
May either want to smear MC coordinates according to gaussian (say GEM-type detector) or to quantize assuming silicon-type detector with digital readout; 3-d option is to call external digitizer (should be provided by user);
Definition at line 50 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 50 of file EicDigiHitProducer.h
|
inline |
Default constructor
Definition at line 30 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 30 of file EicDigiHitProducer.h
References ResetVars().
EicDigiHitProducer::EicDigiHitProducer | ( | const char * | name | ) |
Main constructor
name | detector name |
Definition at line 32 of file EicDigiHitProducer.cxx.
View newest version in sPHENIX GitHub at line 32 of file EicDigiHitProducer.cxx
References FairTask::FairTask(), mDetName, EicDetName::NAME(), and ResetVars().
|
inline |
Definition at line 36 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 36 of file EicDigiHitProducer.h
|
private |
|
private |
|
inline |
Definition at line 88 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 88 of file EicDigiHitProducer.h
References EicNamePatternHub< T >::AddExactMatch(), and mSensitiveVolumes.
Referenced by digitization().
|
inline |
Definition at line 91 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 91 of file EicDigiHitProducer.h
References EicNamePatternHub< T >::AddPrefixMatch(), and mSensitiveVolumes.
Referenced by digitization().
|
virtual |
Wrapper routine converting MoCa hits into digis
Definition at line 115 of file EicDigiHitProducer.cxx.
View newest version in sPHENIX GitHub at line 115 of file EicDigiHitProducer.cxx
References FairTask::fVerbose, HandleHit(), mDetName, mDigiHitArray, mEventCounter, mMoCaPointArray, EicDetName::Name(), PostExec(), PreExec(), printf(), and EicMoCaPoint::SetPointID().
|
inlinevirtual |
Optional (?) detector-specific initialization part
Reimplemented in EicTrackingDigiHitProducer, and EicCalorimeterDigiHitProducer.
Definition at line 59 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 59 of file EicDigiHitProducer.h
References kSUCCESS.
Referenced by Init().
|
pure virtual |
Core routine converting a single MoCa hit into digi
Should be provided for all detectors separately (pure virtual method); in fact there is no one-to-one relationship between MC points and digis for some detectors (say TPC);
Implemented in EicTrackingDigiHitProducer, EicCalorimeterDigiHitProducer, and EicTpcDigiHitProducer.
Referenced by Exec().
|
virtual |
Initialization part, common for all detectors
Opens read access to MoCa point TClonesArray and write access to digi hit TClonesArray;
Reimplemented from FairTask.
Definition at line 45 of file EicDigiHitProducer.cxx.
View newest version in sPHENIX GitHub at line 45 of file EicDigiHitProducer.cxx
References EicNamePatternHub< T >::AnyMatch(), ExtraInit(), FairRootManager::GetInFile(), EicGeoMap::GetInnermostVolumeName(), EicGeoParData::GetMapNum(), EicGeoParData::GetMapPtrViaMapID(), FairRootManager::GetObject(), EicGeoParData::InitializeLookupTables(), FairRootManager::Instance(), EicNamePatternHub< T >::IsEmpty(), kERROR, kFATAL, kSUCCESS, mDetName, mGptr, mMoCaPointArray, mSensitiveVolumes, EicDetName::Name(), and EicGeoMap::SetSensitivityFlag().
|
inlineprivate |
Definition at line 120 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 120 of file EicDigiHitProducer.h
|
inlinevirtual |
Detector-specific event-level post-execution call
Reimplemented in EicCalorimeterDigiHitProducer.
Definition at line 73 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 73 of file EicDigiHitProducer.h
Referenced by Exec().
|
inlinevirtual |
Detector-specific event-level initialization
Reimplemented in EicCalorimeterDigiHitProducer.
Definition at line 63 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 63 of file EicDigiHitProducer.h
Referenced by Exec().
|
inline |
Definition at line 38 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 38 of file EicDigiHitProducer.h
References mDetName, mDigiHitArray, mGptr, and mMoCaPointArray.
Referenced by EicDigiHitProducer().
|
privatevirtual |
Intialise parameter containers. To be implemented in the derived class.
Reimplemented from FairTask.
Definition at line 105 of file EicDigiHitProducer.cxx.
View newest version in sPHENIX GitHub at line 105 of file EicDigiHitProducer.cxx
References FairRun::GetRuntimeDb(), and FairRunAna::Instance().
|
inline |
Set output digi TClonesArray persistency
persistence | kTRUE (write digi array out) or kFALSE (do not) |
Definition at line 85 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 85 of file EicDigiHitProducer.h
References mPersistence.
|
protected |
Detector name
Definition at line 93 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 93 of file EicDigiHitProducer.h
Referenced by EicDigiHitProducer(), Exec(), EicCalorimeterDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::ExtraInit(), EicCalorimeterDigiHitProducer::Finish(), EicTrackingDigiHitProducer::Finish(), EicTrackingDigiHitProducer::HandleHit(), Init(), EicCalorimeterDigiHitProducer::PostExec(), and ResetVars().
|
protected |
Output array of detector-specific digi hits
Definition at line 100 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 100 of file EicDigiHitProducer.h
Referenced by Exec(), EicCalorimeterDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::HandleHit(), EicCalorimeterDigiHitProducer::PostExec(), and ResetVars().
|
private |
Event counter
Definition at line 117 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 117 of file EicDigiHitProducer.h
Referenced by Exec().
|
protected |
Definition at line 103 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 103 of file EicDigiHitProducer.h
Referenced by EicCalorimeterDigiHitProducer::ExtraInit(), EicCalorimeterDigiHitProducer::HandleHit(), EicTrackingDigiHitProducer::HandleHit(), Init(), EicCalorimeterDigiHitProducer::PostExec(), and ResetVars().
|
private |
Input array of detector-specific EicMoCaPoint's
Definition at line 114 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 114 of file EicDigiHitProducer.h
Referenced by Exec(), Init(), and ResetVars().
|
protected |
Object persistency flag
Definition at line 108 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 108 of file EicDigiHitProducer.h
Referenced by EicCalorimeterDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::ExtraInit(), and SetPersistence().
|
protected |
Definition at line 105 of file EicDigiHitProducer.h.
View newest version in sPHENIX GitHub at line 105 of file EicDigiHitProducer.h
Referenced by DeclareDigiSensitiveVolume(), DeclareDigiSensitiveVolumePrefix(), EicCalorimeterDigiHitProducer::ExtraInit(), EicCalorimeterDigiHitProducer::HandleHit(), and Init().