76 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nCrystal <<
" crystals";
88 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nTower <<
" HCal towers";
98 eBeam = (float)(energy);
101 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setPrimary: nPrimary " <<
nPrimary <<
" partID " <<
idBeam <<
" initE "
113 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdep: simEtot " <<
simEtot <<
" simEEc " <<
simEEc <<
" simEHc "
120 if (
i <
int(esim.size()))
123 esime.push_back(edep);
124 if (i <
int(eqie.size()))
125 edige.push_back(eqie[i]);
127 edige.push_back(edep);
129 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepEcal [" << i <<
"] Esim = " <<
esime[
i] <<
" Edig = " <<
edige[
i];
136 if (
i <
int(esim.size()))
139 esimh.push_back(edep);
140 if (i <
int(eqie.size()))
141 edigh.push_back(eqie[i]);
143 edigh.push_back(edep);
145 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepHcal [" << i <<
"] Esim = " <<
esimh[
i] <<
" Edig = " <<
edigh[
i];
150 const std::vector<double>& eq1,
151 const std::vector<double>& es2,
152 const std::vector<double>& eq2) {
153 int siz = (int)(es1.size());
159 for (
int i = 0;
i < siz;
i++) {
164 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setTrnsProf [" << i <<
"] latsimEta = " <<
latsimEta[
i]
172 int siz = (int)(es.size());
176 for (
int i = 0;
i < siz;
i++) {
178 longdig.push_back((
float)(eq[i]));
179 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setLongProf [" << i <<
"] longsim = " <<
longsim[
i]
192 eHit.push_back((
float)(e));
193 tHit.push_back((
float)(t));
199 int evNum,
int type,
double x,
double y,
double z,
double u,
double v,
double w,
double px,
double py,
double pz) {
202 double r =
sqrt(x * x + y * y + z * z);
213 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setVtxPrim: EvNum " <<
v1EvNum <<
" Type " <<
v1Type <<
" X/Y/Z/R " <<
v1X
214 <<
"/" <<
v1Y <<
"/" <<
v1Z <<
"/" <<
v1R <<
" Px/Py/Pz " <<
v1Px <<
"/" <<
v1Py <<
"/"
223 v1secPx.push_back((
float)(px));
224 v1secPy.push_back((
float)(py));
225 v1secPz.push_back((
float)(pz));
226 v1secEk.push_back((
float)(ek));
void setLongProf(const std::vector< double > &es, const std::vector< double > &eq)
uint16_t *__restrict__ id
void setEdepEcal(const std::vector< double > &esim, const std::vector< double > &edig)
void setPrimary(int primary, int id, double energy, double eta, double phi)
void setEdep(double simtot, double sime, double simh, double digtot, double dige, double digh)
void setTrnsProf(const std::vector< double > &es1, const std::vector< double > &eq1, const std::vector< double > &es2, const std::vector< double > &eq2)
void saveHit(int det, int lay, int eta, int phi, double e, double t)
void setIDs(const std::vector< int > &, const std::vector< int > &)
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
void setEdepHcal(const std::vector< double > &esim, const std::vector< double > &edig)
uint16_t const *__restrict__ x
void setVtxPrim(int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)