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 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 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 std::vector<double> eq1,
157 std::vector<double> es2,
158 std::vector<double> eq2) {
160 int siz = (int)(es1.size());
166 for (
int i=0;
i<siz;
i++) {
177 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 setPrimary(int primary, int id, double energy, double eta, double phi)
void setLongProf(std::vector< double > es, std::vector< double > eq)
void setEdepHcal(std::vector< double > esim, std::vector< double > edig)
void setEdep(double simtot, double sime, double simh, double digtot, double dige, double digh)
void setEdepEcal(std::vector< double > esim, std::vector< double > edig)
void saveHit(int det, int lay, int eta, int phi, double e, double t)
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
void setIDs(std::vector< int >, std::vector< int >)
void setVtxPrim(int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)
void setTrnsProf(std::vector< double > es1, std::vector< double > eq1, std::vector< double > es2, std::vector< double > eq2)