77 double eta = -
log(
tan(0.5 * atan(
sqrt((iX - 50.0) * (iX - 50.0) + (iY - 50.0) * (iY - 50.0)) * 2.98 / 328.)));
112 }
else if (
z > 0.98) {
116 double result =
model.LightCollectionEfficiencyWeighted(zcor, muTot) *
v;
126 double result =
model.LightCollectionEfficiencyWeighted(
z, mu_ind) *
v;
135 double muH =
model.InducedAbsorptionHadronic(totLumi,
eta);
136 double result = muEM + muH;
144 double result =
model.DegradationMeanEM50GeV(muEM + muHD);
159 double result = tra * pho;
191 double result =
model.ResolutionConstantTermEM50GeV(muEM + muHD);
216 S /=
sqrt(
d.ampDropTotal);
217 Nadc *=
d.noiseIncreaseADC;
218 adc2GeV /=
d.ampDropTotal;
219 double N = Nadc * adc2GeV * 3.0;
220 C =
sqrt(
C *
C +
d.resolutitonConstantTerm *
d.resolutitonConstantTerm);
222 return sqrt(
S *
S / ene +
N *
N / ene / ene +
C *
C);
double Resolution(double eta, double ene)
double calcampDropPhotoDetector(double eta)
double calcresolutitonConstantTerm(double eta)
int ieta() const
get the crystal ieta
double calcnoiseIncreaseADC(double eta)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
double calcampDropTransparency(double eta)
double calcLightCollectionEfficiencyWeighted2(double eta, double z, double mu_ind=-1.0)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
DegradationAtEta CalculateDegradation(double eta)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
double calcmuHD(double eta)
static const int MAX_IETA
double calcLightCollectionEfficiencyWeighted(DetId id, double z)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
double calcampDropTotal(double eta)
double calcnoiseADC(double eta)
double calcmuEM(double eta)