Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:02

0001 #ifndef TPC_TPCCLUSTERZCROSSINGCORRECTION_H
0002 #define TPC_TPCCLUSTERZCROSSINGCORRECTION_H
0003 
0004 /*!
0005  * \file TpcClusterZCrossingCorrection.h
0006  * \brief applies correction to TPC cluster Z for bunch crossing time offset
0007  * \author Tony Frawley, March 2022
0008  */
0009 
0010 class TpcClusterZCrossingCorrection
0011 {
0012   public:
0013 
0014   //!@name accessors
0015   //@{
0016 
0017   //! drift velocity (cm/ns)
0018   static float get_vdrift() { return _vdrift; }
0019 
0020   //! time between crossing (ns)
0021   static float get_time_between_crossings() { return _time_between_crossings; }
0022 
0023   //! apply correction on a given z
0024   static float correctZ(float zinit, unsigned int side, short int crossing);
0025   //@}
0026 
0027   //!@name modifiers
0028   //@{
0029   //! drift velocity (cm/ns)
0030   static void set_vdrift( float value ) { _vdrift = value; }
0031 
0032   //! time between crossing (ns)
0033   static void set_time_between_crossings( float value ) { _time_between_crossings = value; }
0034   //@}
0035 
0036   // TODO: move to private
0037   //!@name parameters
0038   //@{
0039   //! drift velocity (cm/ns)
0040   static float _vdrift;
0041 
0042   private:
0043 
0044   //! time between crossing (ns)
0045   static float _time_between_crossings;
0046 
0047   //@}
0048 
0049 };
0050 
0051 #endif