82 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nCrystal <<
" crystals";
94 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nTower <<
" HCal towers";
107 eBeam = (float)(energy);
114 double digtot,
double dige,
double digh) {
127 const std::vector<double>& eqie) {
131 if (
i<
int(esim.size()))
esime.push_back(esim[
i]);
132 else esime.push_back(edep);
133 if (i<
int(eqie.size()))
edige.push_back(eqie[i]);
134 else edige.push_back(edep);
136 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepEcal [" << i <<
"] Esim = " <<
esime[
i] <<
" Edig = " <<
edige[
i];
141 const std::vector<double>& eqie) {
145 if (
i<
int(esim.size()))
esimh.push_back(esim[
i]);
146 else esimh.push_back(edep);
147 if (i<
int(eqie.size()))
edigh.push_back(eqie[i]);
148 else edigh.push_back(edep);
150 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepHcal [" << i <<
"] Esim = " <<
esimh[
i] <<
" Edig = " <<
edigh[
i];
155 const std::vector<double>& eq1,
156 const std::vector<double>& es2,
157 const std::vector<double>& eq2) {
159 int siz = (int)(es1.size());
165 for (
int i=0;
i<siz;
i++) {
176 const std::vector<double>&
eq) {
178 int siz = (int)(es.size());
182 for (
int i=0;
i<siz;
i++) {
184 longdig.push_back((
float)(eq[i]));
185 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setLongProf [" << i <<
"] longsim = " <<
longsim[
i] <<
" longdig = " <<
longdig[
i];
199 eHit.push_back((
float)(e));
200 tHit.push_back((
float)(t));
205 double z,
double u,
double v,
double w,
206 double px,
double py,
double pz) {
210 double r=
sqrt(x*x+y*y+z*z);
231 v1secPx.push_back((
float)(px));
232 v1secPy.push_back((
float)(py));
233 v1secPz.push_back((
float)(pz));
234 v1secEk.push_back((
float)(ek));
void setLongProf(const std::vector< double > &es, const std::vector< double > &eq)
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)
void setVtxPrim(int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)