56 #ifndef STBTOFSIMMAKER_HH
57 #define STBTOFSIMMAKER_HH
60 #include "St_DataSet.h"
69 struct g2t_ctf_hit_st;
73 #include "tables/St_g2t_ctf_hit_Table.h"
74 #include "tables/St_g2t_track_Table.h"
75 #include "tables/St_g2t_tpc_hit_Table.h"
76 #include "StBTofUtil/StVpdSimConfig.h"
78 #include "StMcEvent/StMcEvent.hh"
79 #include "StMcEvent/StMcBTofHitCollection.hh"
80 #include "StMcEvent/StMcBTofHit.hh"
81 #include "StThreeVectorF.hh"
116 static const bool kSimulation = kFALSE;
117 static const bool kEmbedding = kTRUE;
144 typedef std::vector<TrackHit> TrackVec;
145 typedef std::vector<int> IntVec;
149 string mHistoFileName;
156 TH2F* mCalcBetaVsMom;
159 TH2F* Electron_BetaVsMom;
160 TH2F* Muon_BetaVsMom;
161 TH2F* Pion_BetaVsMom;
162 TH2F* Kaon_BetaVsMom;
163 TH2F* Proton_BetaVsMom;
172 TH1F* mTofCalculated;
173 TH2F* tof_RealVsCalc;
232 IntVec
CalcCellId(
int volume_id,
float ylocal);
233 int CellXtalk(
int icell,
float ylocal,
float& wt,
int& icellx);
238 float slatResponseExp(
float&);
239 double GammaRandom();
265 void setEmbeddingMode(
bool mode = kEmbedding) {
268 void setCellXtalk(
bool val) {
mCellXtalk = val; }
269 string setHistFileName();
270 void setBookHist(
bool val) { mBookHisto = val; }
271 Int_t writeHistograms();
274 virtual const char *GetCVS()
const
275 {
static const char cvs[]=
"Tag $Name: $ $Id: StBTofSimMaker.h,v 1.10 2021/01/27 14:58:56 geurts Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
TH2F * mCellReco
cellId after recon
static const float mBTofPadWidth
Pad Width.
TH2F * mCellSeen
cellId after DetectorResponse
double dQdt[600]
this 600 (nTimebins) comes from the /TofUtil/StTofParam file
IntVec CalcCellId(int volume_id, float ylocal)
TH2F * mCellGeant
cellId of geant hit
bool mWriteStEvent
switch to enable Maker to write out simulated hits to StEvent
TH1F * mDeSeen
deposited-energy after DetectorResponse
StMcBTofHitCollection * mMcBTofHitCollection
barrel tof hit
int CellXtalk(int icell, float ylocal, float &wt, int &icellx)
static const float mHRBIN2PS
High resolution mode, ps/bin.
int fillRaw(void)
digitize to ADC and TDC entries (empty)
bool mVpdSim
True when StVpdSimMaker has been run. False otherwise (default)
TH2F * mBetaVsMom
1/beta vs momentum
static const float mVHRBIN2PS
Very High resolution mode, ps/bin.
string mHistoFile
for QA histograms
TH1F * mModHist
T-A Slewing Correlation.
TH2F * m2VsP
Mass Squared versus momentum.
TH1F * mTofResReco
time resolution after recon
TH2F * mNCellReco
of cells after recon
TH1F * mBetaHist
speed of particles hitting tof
bool mSlow
If True, runs the slow Tof Simulation, including CellResponse and CellTimePassTh. ...
TH1F * mRecMass
reconstructed mass of particle
TH1F * mTofGeant
tof in geant hit
bool mCellXtalk
switch for cell xtalk
TH1F * mTofSeen
smeared-tof after DetectorResponse
TH1F * mdE
TOFp histograms.
TH1F * mDeGeant
deposited-energy in geant hit
TH1F * mTofResSeen
time resolution after Detector Response
TH2F * mTACorr
T-A Slewing Correlation.
bool mIsEmbedding
True when embedding BTof data. False for pure simulation (default)
TH2F * mNCellSeen
of cells after DetectorResponse
TH1F * mADCReco
ADC recon – empty.
double t0
t0 (in ps) as the start of this tof hit – was ns - changed for consistency
int CellTimePassTh(TrackVec &trackVec)
Slow simulation step two.
TH2F * mNCellGeant
of cells of geant hit
StBTofDaqMap * mDaqMap
Tof Daq map.
St_DataSet * mGeantData
geant table
int electronicNoise(void)
simulate electronic noise (empty)
StBTofSimMaker(const char *name="TofSim")
Pad Width.
int storeMcBTofHit(StMcBTofHit *mcCellHit)
TH1F * mTDCReco
TDC recon.
TH1F * mRawTofHist
total time of flight of particle before resolution smearing
bool mUseVpdStart
switch for vpd start
TH1F * mPathLHist
speed of particles hitting tof
int FastCellResponse(g2t_ctf_hit_st *tof_hit, StBTofCollection *btofColl)
Event data structure to hold all information from a Monte Carlo simulation. This class is the interfa...
Time-of-Flight Simulation Utilities.
TH1F * mTofHist
total time of flight of partilce
int mTofHitFlag[mNTray][mNTOF]
hit flag for tof geant hits
int CellResponse(g2t_ctf_hit_st *tof_hit, TrackVec &trackVec)
Slow simulation step one.