6 #define M_PI_2 1.57079632679489661923
24 LogTrace(
"CSCGattiFunction") <<
"CSCGattiFunction::initChamberSpecs setting new values.";
28 static const double parm[5] = {.1989337e-02, -.6901542e-04, .8665786,
29 154.6177, -.6801630e-03 };
30 k3 = (parm[0]*s/
h + parm[1])
31 * (parm[2]*s/ra + parm[3] + parm[4]*s*s/ra/ra);
39 LogTrace(
"CSCGattiFunction") <<
"CSCGattiFunction: constants k1=" <<
40 k1 <<
", k2=" <<
k2 <<
", k3=" <<
k3 <<
41 ", h=" <<
h <<
", norm=" <<
norm;
46 double tanh1 = tanh(
k2 * (x+stripWidth*0.5)/
h );
47 double tanh2 = tanh(
k2 * (x-stripWidth*0.5)/
h );
double binValue(double x, double stripWidth) const
void initChamberSpecs(const CSCChamberSpecs &)
Calculates k1, k2, k3, h per chamber type, if necessary.
const CSCChamberSpecs * thePreviousSpecs
float wireSpacing() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
float anodeCathodeSpacing() const