FairRoot/PandaRoot
|
Simulation of EMC. More...
#include <PndEmc.h>
Public Member Functions | |
PndEmc () | |
PndEmc (const char *name, Bool_t active, Bool_t fast=kFALSE, Bool_t storepnts=kTRUE) | |
virtual | ~PndEmc () |
virtual void | Initialize () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | EndOfEvent () |
virtual void | BeginEvent () |
virtual void | Register () |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
virtual void | Print () const |
virtual void | Reset () |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
virtual void | ConstructGeometry () |
void | ConstructASCIIGeometry () |
void | ConstructRootGeometry () |
void | ConstructRootGeomMod12 () |
void | ConstructRootGeomMod4 () |
void | ConstructRootGeomMod5 () |
void | ExpandNode (TGeoVolume *fVol, TGeoVolume *Cave) |
virtual void | SetGeometryVersion (const Int_t GeoNumber) |
virtual void | SetGeometryFileNameDouble (TString fname, TString fname2, Int_t fwbwchoice=0, TString geoVer="0") |
virtual void | SetGeometryFileNameTriple (TString fname, TString fname2, TString fname3, TString geoVer="0") |
virtual void | SetGeometryFileNameQuadruple (TString fname, TString fname2, TString fname3, TString fname4, TString geoVer="0") |
PndEmcPoint * | AddHit (Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Bool_t enterning, Bool_t exiting) |
void | SetStorageOfData (Bool_t val) |
virtual void | SetSpecialPhysicsCuts () |
Private Member Functions | |
void | ResetParameters () |
PndEmc (const PndEmc &L) | |
PndEmc & | operator= (const PndEmc &) |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
Int_t | fEventID |
volume id More... | |
TLorentzVector | fPos |
event id More... | |
TLorentzVector | fMom |
position More... | |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fEmcCollection |
Bool_t | bIsFastFsc |
Hit collection. More... | |
Bool_t | fStoreData |
Flag for fast fsc geometry. More... | |
Bool_t | fwendcap |
Bool_t | bwendcap |
Flag for the new FwEndCap geometry. More... | |
TString | fgeoName2 |
Flag for the new BwEndCap geometry. More... | |
TString | fgeoName3 |
TString | fgeoName4 |
Int_t | MapperVersion |
PndEmc::PndEmc | ( | ) |
Default constructor
Definition at line 59 of file PndEmc.cxx.
References fEmcCollection.
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 70 of file PndEmc.cxx.
References fEmcCollection.
|
virtual |
|
private |
PndEmcPoint * PndEmc::AddHit | ( | Int_t | trackID, |
Int_t | detID, | ||
Int_t | evtID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Short_t | mod, | ||
Short_t | row, | ||
Short_t | crys, | ||
Short_t | copy, | ||
Bool_t | enterning, | ||
Bool_t | exiting | ||
) |
Definition at line 1721 of file PndEmc.cxx.
References fEmcCollection.
Referenced by ProcessHits().
|
virtual |
Definition at line 106 of file PndEmc.cxx.
void PndEmc::ConstructASCIIGeometry | ( | ) |
Definition at line 1481 of file PndEmc.cxx.
References bIsFastFsc, Bool_t, CbmMediumPWO, Double_t, geobuild, geoFace, geoLoad, PndEmcReader::GetData(), PndEmcReader::GetMaxCrystals(), PndEmcReader::GetMaxModules(), PndEmcReader::GetMaxRows(), PndEmcReader::GetMinCrystals(), PndEmcReader::GetMinModules(), PndEmcReader::GetMinRows(), gGeoManager, Media, DataG4::module, n, DataG4::pAlp1, DataG4::pAlp2, DataG4::pDx1, DataG4::pDx2, DataG4::pDx3, DataG4::pDx4, DataG4::pDy1, DataG4::pDy2, DataG4::pDz, DataG4::phi, DataG4::posX, DataG4::posY, DataG4::posZ, DataG4::pPhi, DataG4::pTheta, reflection, rot, rot1, row, DataG4::tau, DataG4::theta, and TString.
Referenced by ConstructGeometry().
|
virtual |
Virtual method Construct geometry
Definition at line 1164 of file PndEmc.cxx.
References Bool_t, bwendcap, ConstructASCIIGeometry(), ConstructRootGeometry(), ConstructRootGeomMod12(), ConstructRootGeomMod4(), ConstructRootGeomMod5(), fgeoName2, fgeoName3, fgeoName4, fwendcap, and TString.
void PndEmc::ConstructRootGeometry | ( | ) |
Definition at line 1240 of file PndEmc.cxx.
References Cave, ExpandNode(), f, fgeoName2, filename, fwendcap, gGeoManager, global, n, printf(), and TString.
Referenced by ConstructGeometry().
void PndEmc::ConstructRootGeomMod12 | ( | ) |
Definition at line 1296 of file PndEmc.cxx.
References Cave, ExpandNode(), f, gGeoManager, global, and n.
Referenced by ConstructGeometry().
void PndEmc::ConstructRootGeomMod4 | ( | ) |
Definition at line 1322 of file PndEmc.cxx.
References bwendcap, Cave, Double_t, ExpandNode(), fb, fgeoName3, gGeoManager, global, n, printf(), and shape.
Referenced by ConstructGeometry().
void PndEmc::ConstructRootGeomMod5 | ( | ) |
Definition at line 1382 of file PndEmc.cxx.
References Cave, ExpandNode(), fb, fgeoName4, FileName, gGeoManager, global, n, and TString.
Referenced by ConstructGeometry().
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 950 of file PndEmc.cxx.
References fPosIndex, i, offset(), and PndEmcPoint::SetTrackID().
|
virtual |
Virtual method EndOfEvent
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 895 of file PndEmc.cxx.
References Print(), and Reset().
void PndEmc::ExpandNode | ( | TGeoVolume * | fVol, |
TGeoVolume * | Cave | ||
) |
Definition at line 1424 of file PndEmc.cxx.
References geobuild, geoFace, geoLoad, gGeoManager, Media, name, nmed, TString, and v.
Referenced by ConstructRootGeometry(), ConstructRootGeomMod12(), ConstructRootGeomMod4(), and ConstructRootGeomMod5().
|
virtual |
Accessor to the hit collection
Definition at line 910 of file PndEmc.cxx.
References fEmcCollection.
|
virtual |
Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.
Definition at line 95 of file PndEmc.cxx.
References Initialize(), par, rtdb, and sim().
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 918 of file PndEmc.cxx.
References fEmcCollection, i, and nHits.
Referenced by EndOfEvent().
|
virtual |
Virtual method ProcessHits
Defines the action to be taken when a step is inside the active volume. Creates PndEmcPoints and PndEmcMirrorPoints and adds them to the collections.
vol | Pointer to the active volume |
Definition at line 113 of file PndEmc.cxx.
References AddHit(), PndStack::AddPoint(), bIsFastFsc, col, fELoss, fEventID, fLength, fMom, fPos, fTime, fTrackID, fVolumeID, getsign(), kEMC, nam, next, pos, ResetParameters(), sign(), and TString.
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 902 of file PndEmc.cxx.
References fEmcCollection, and fStoreData.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 931 of file PndEmc.cxx.
References fEmcCollection, and fPosIndex.
Referenced by EndOfEvent().
|
inlineprivate |
|
virtual |
Definition at line 1096 of file PndEmc.cxx.
References bwendcap, fgeoName2, fgeoName3, fwendcap, SetGeometryFileName(), and TString.
Referenced by Mrun_sim1_PndFlatGen(), mvdgem_sim(), run_sim(), run_sim_tpcmvd(), runMC(), runMC_dpm(), runsim(), sim(), sim_all(), sim_BARREL(), and sim_gg().
|
virtual |
Definition at line 1137 of file PndEmc.cxx.
References bwendcap, fgeoName2, fgeoName3, fgeoName4, fwendcap, SetGeometryFileName(), and TString.
Referenced by SetGeometryVersion().
|
virtual |
Definition at line 1116 of file PndEmc.cxx.
References bwendcap, fgeoName2, fgeoName3, fwendcap, SetGeometryFileName(), and TString.
Referenced by run_sim_sttcombi(), run_sim_tpccombi(), run_sim_tpccombi_evtgen(), run_sim_tpccombi_pgun(), SetGeometryVersion(), sim_emc_test(), and SimComplete().
|
virtual |
Definition at line 966 of file PndEmc.cxx.
References fRun, MapperVersion, par, rtdb, SetGeometryFileName(), SetGeometryFileNameQuadruple(), SetGeometryFileNameTriple(), PndEmcGeoPar::SetGeometryVersion(), and PndEmcGeoPar::SetMapperVersion().
Referenced by PndMasterRunSim::CreateGeometryDay1(), PndMasterRunSim::CreateGeometryDefault(), PndMasterRunSim::CreateGeometryPhase1(), emc(), emc_complete(), emc_complete_corr(), emc_correction_data_production(), emc_correction_QA_data_production(), error_matrix_data_production(), prod_sim(), QAmacro_emc_1(), QAmacro_stt_1(), rad_complete(), run0AllSysDPMbkg(), run_sim(), run_sim_complete(), run_sim_llbar_evtgen(), run_sim_stt_dpm(), run_sim_stt_evt(), run_sim_stt_evt_fix(), run_sim_sttcombi_dpm(), run_sim_sttcombi_evtgen(), run_sim_sttcombi_pgun(), run_sim_tpc_dpm(), run_sim_tpc_evt(), run_sim_tpccombi(), run_sim_tpccombi_dpm(), runLumiPixel0SimDPMDirect_all(), runMvdSim(), runMvdSimLambdaDisks(), runSim(), runSimPions(), sim(), sim_complete(), sim_complete_newSTT(), sim_complete_pbarA(), sim_complete_runs(), sim_complete_vis(), sim_emc(), sim_evtgen(), sim_filter_ex1(), sim_muo_P8(), sim_radgrid(), sim_radlength_complete(), sim_rich(), sim_stt_bg(), sim_stt_signal1(), sim_stt_signal2(), sim_sttcombi_pgun(), sim_test(), sim_theta(), sim_toy(), simExclusive(), simInclusive(), and tb_sim_complete().
|
virtual |
gammas (GeV)
electrons (GeV)
neutral hadrons (GeV)
charged hadrons (GeV)
muons (GeV)
electron bremsstrahlung (GeV)
muon and hadron bremsstrahlung(GeV)
delta-rays by electrons (GeV)
delta-rays by muons (GeV)
direct pair production by muons (GeV)
Definition at line 1746 of file PndEmc.cxx.
References fRun, gGeoManager, i, and medium.
void PndEmc::SetStorageOfData | ( | Bool_t | val | ) |
Definition at line 941 of file PndEmc.cxx.
References fStoreData, and val.
Referenced by PndMasterRunSim::CreateGeometryDay1(), PndMasterRunSim::CreateGeometryDefault(), PndMasterRunSim::CreateGeometryPhase1(), emc(), emc_complete(), emc_complete_corr(), emc_correction_data_production(), emc_correction_QA_data_production(), error_matrix_data_production(), prod_sim(), QAmacro_stt_1(), rad_complete(), run0AllSysDPMbkg(), run_sim(), run_sim_complete(), run_sim_llbar_evtgen(), run_sim_stt_dpm(), run_sim_stt_evt(), run_sim_stt_evt_fix(), run_sim_sttcombi(), run_sim_sttcombi_dpm(), run_sim_sttcombi_evtgen(), run_sim_sttcombi_pgun(), run_sim_tpc_dpm(), run_sim_tpc_evt(), run_sim_tpccombi(), run_sim_tpccombi_dpm(), run_sim_tpccombi_evtgen(), run_sim_tpccombi_pgun(), runLumiPixel0SimDPMDirect_all(), runMvdSim(), runMvdSimLambdaDisks(), runSim(), runSimPions(), sim(), sim_complete(), sim_complete_newSTT(), sim_complete_pbarA(), sim_complete_runs(), sim_complete_vis(), sim_emc(), sim_emc_test(), sim_evtgen(), sim_filter_ex1(), sim_muo_P8(), sim_radgrid(), sim_radlength_complete(), sim_rich(), sim_stt_bg(), sim_stt_signal1(), sim_stt_signal2(), sim_sttcombi_pgun(), sim_test(), sim_theta(), sim_toy(), SimComplete(), simExclusive(), simInclusive(), and tb_sim_complete().
|
private |
Hit collection.
Definition at line 163 of file PndEmc.h.
Referenced by ConstructASCIIGeometry(), and ProcessHits().
|
private |
Flag for the new FwEndCap geometry.
Definition at line 166 of file PndEmc.h.
Referenced by ConstructGeometry(), ConstructRootGeomMod4(), SetGeometryFileNameDouble(), SetGeometryFileNameQuadruple(), and SetGeometryFileNameTriple().
|
private |
|
private |
Definition at line 161 of file PndEmc.h.
Referenced by AddHit(), GetCollection(), PndEmc(), Print(), Register(), Reset(), and ~PndEmc().
|
private |
volume id
Definition at line 154 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Flag for the new BwEndCap geometry.
Definition at line 169 of file PndEmc.h.
Referenced by ConstructGeometry(), ConstructRootGeometry(), SetGeometryFileNameDouble(), SetGeometryFileNameQuadruple(), and SetGeometryFileNameTriple().
|
private |
Definition at line 170 of file PndEmc.h.
Referenced by ConstructGeometry(), ConstructRootGeomMod4(), SetGeometryFileNameDouble(), SetGeometryFileNameQuadruple(), and SetGeometryFileNameTriple().
|
private |
Definition at line 171 of file PndEmc.h.
Referenced by ConstructGeometry(), ConstructRootGeomMod5(), and SetGeometryFileNameQuadruple().
|
private |
|
private |
position
Definition at line 156 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
event id
Definition at line 155 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
|
private |
Flag for fast fsc geometry.
Definition at line 164 of file PndEmc.h.
Referenced by Register(), and SetStorageOfData().
|
private |
momentum
Definition at line 157 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 152 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 153 of file PndEmc.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 165 of file PndEmc.h.
Referenced by ConstructGeometry(), ConstructRootGeometry(), SetGeometryFileNameDouble(), SetGeometryFileNameQuadruple(), and SetGeometryFileNameTriple().
|
private |
Definition at line 173 of file PndEmc.h.
Referenced by SetGeometryVersion().