83 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nCrystal <<
" crystals";
86 LogDebug(
"SimHCalData") <<
"\tIndex for " << i <<
" = 0x" << std::hex <<
idEcal[
i] << std::dec;
95 LogDebug(
"SimHCalData") <<
"PHcalTB04Info:: Called with " <<
nTower <<
" HCal towers";
98 LogDebug(
"SimHCalData") <<
"\tIndex for " << i <<
" = 0x" << std::hex <<
idHcal[
i] << std::dec;
108 eBeam = (float)(energy);
115 double digtot,
double dige,
double digh) {
128 const std::vector<double>& eqie) {
132 if (
i<
int(esim.size()))
esime.push_back(esim[
i]);
133 else esime.push_back(edep);
134 if (i<
int(eqie.size()))
edige.push_back(eqie[i]);
135 else edige.push_back(edep);
137 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepEcal [" << i <<
"] Esim = " <<
esime[
i] <<
" Edig = " <<
edige[
i];
142 const std::vector<double>& eqie) {
146 if (
i<
int(esim.size()))
esimh.push_back(esim[
i]);
147 else esimh.push_back(edep);
148 if (i<
int(eqie.size()))
edigh.push_back(eqie[i]);
149 else edigh.push_back(edep);
151 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setEdepHcal [" << i <<
"] Esim = " <<
esimh[
i] <<
" Edig = " <<
edigh[
i];
156 const std::vector<double>& eq1,
157 const std::vector<double>& es2,
158 const std::vector<double>& eq2) {
160 int siz = (int)(es1.size());
166 for (
int i=0;
i<siz;
i++) {
177 const std::vector<double>&
eq) {
179 int siz = (int)(es.size());
183 for (
int i=0;
i<siz;
i++) {
185 longdig.push_back((
float)(eq[i]));
186 LogDebug(
"SimHCalData") <<
"PHcalTB04Info::setLongProf [" << i <<
"] longsim = " <<
longsim[
i] <<
" longdig = " <<
longdig[
i];
200 eHit.push_back((
float)(e));
201 tHit.push_back((
float)(t));
206 double z,
double u,
double v,
double w,
207 double px,
double py,
double pz) {
211 double r=
sqrt(x*x+y*y+z*z);
232 v1secPx.push_back((
float)(px));
233 v1secPy.push_back((
float)(py));
234 v1secPz.push_back((
float)(pz));
235 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)