19 double attenuation_length,
double c_effective,
double track_p0,
double track_p1,
20 double track_p2,
const DBCALGeometry *locGeom) : m_BCALGeom(locGeom)
26 assert( hit1.
end != hit2.
end );
47 double tDown = downHit.
t;
55 m_zGlobal = track_p0 + track_p1 * ( tUp - tDown ) + track_p2 * ( tUp - tDown ) * ( tUp - tDown );
89 m_t = 0.5 * ( tUp + tDown - fibLen / c_effective );
97 float dDown = 0.5 * fibLen -
m_zLocal;
98 if (dUp>fibLen) dUp=fibLen;
100 if (dDown>fibLen) dDown=fibLen;
101 if (dDown<0) dDown=0;
102 float attUp = exp( -dUp / attenuation_length );
103 float attDown = exp( -dDown / attenuation_length );
107 m_E_DS = ( downHit.
E / attDown );
161 float d_rho_d_z = m_z /
sqrt(
m_r *
m_r + m_z * m_z );
166 float d_theta_d_r = m_z / (
m_r *
m_r + m_z *
m_z );
void convertCylindricalToSpherical()
DBCALPoint(const DBCALUnifiedHit &hit1, const DBCALUnifiedHit &hit2, double z_target_center, double attenutation_length, double c_effective, double track_p0, double track_p1, double track_p2, const DBCALGeometry *locGeom)
float tInnerRadius() const
float m_sig_r
distance from beam axis
float rSize(int fADC_cellId) const
float m_E
Energy of the Point used in higher objects.
float m_sig_rho
spherical distance wrt target center
float phi(int fADC_cellId) const
these functions are about the physical location and dimensions of a readout cell
float m_zLocal
z-coordinate relative to the center of BCAL
float GetBCAL_length() const
float m_zGlobal
z-coordinate relative to the beginning of the BCAL
float m_E_DS
Attenuation corrected Energy of DS Hit that contributed to the Point.
float m_sig_z
z-coordinate relative to the center of the target
bool has_TDC_hit
Flag if the Unified Time is the TDC time.
float GetBCAL_inner_rad() const
float phiSize(int fADC_cellId) const
float m_t_US
Time of DS Hit that contributed to the Point.
float r(int fADC_cellId) const
float m_sig_phi
azimuthal angle
float GetBCAL_center() const
const DBCALGeometry * m_BCALGeom
int cellId(int module, int layer, int sector) const
these functions are about encoding/decoding module/layer/sector info in a cellId
float m_t_DS
Time of DS Hit that contributed to the Point.
float m_E_US
Attenuation corrected Energy of US Hit that contributed to the Point.
float m_sig_theta
polar angle wrt target center
float t
Unified time, obtained from ADC and/or TDC and used for further analysis.