/** * @file * @author Christian Simon * @since 2017-06-01 */ #ifndef CBMTOFCHARGE_H #define CBMTOFCHARGE_H 1 #include "Rtypes.h" /** * @brief Describes the charge induced by a MC ToF point in the readout plane * of an MRPC in time and space. * @author Christian Simon * @since 2017-06-01 * @version 1.0 * @details ... */ class CbmTofCharge { public: /** * @brief Default constructor * @details ... */ CbmTofCharge(); /** * @brief Parameterized constructor * @details ... */ CbmTofCharge(Double_t dTime, Double_t dCharge, Double_t dLocalAcrossPosition, Double_t dLocalAlongPosition); /** * @brief Default destructor * @details ... */ virtual ~CbmTofCharge() {} /** * @brief Get the MC ToF point time * @details ... * @return MC ToF point time [ns] */ Double_t GetTime() const {return fdTime;} /** * @brief Get the charge induced by this point * @details ... * @return charge induced by this point [a.u.] */ Double_t GetCharge() const {return fdCharge;} /** * @brief Get the across position of the MC point in the counter c.s. * @details ... * @return across position in counter c.s. [cm] */ Double_t GetAcrossPosition() const {return fdLocalAcrossPosition;} /** * @brief Get the along position of the MC point in the counter c.s. * @details ... * @return along position in counter c.s. [cm] */ Double_t GetAlongPosition() const {return fdLocalAlongPosition;} /** * @brief Set the MC ToF point time * @details ... * @param[in] dTime MC ToF point time [ns] */ void SetTime(Double_t dTime) {fdTime = dTime;} /** * @brief Set the charge induced by this point * @details ... * @param[in] dCharge charge induced by this point [a.u.] */ void SetCharge(Double_t dCharge) {fdCharge = dCharge;} /** * @brief Set the across position of the MC point in the counter c.s. * @details ... * @param[in] dLocalAcrossPosition across position in counter c.s. [cm] */ void SetAcrossPosition(Double_t dLocalAcrossPosition) {fdLocalAcrossPosition = dLocalAcrossPosition;} /** * @brief Set the along position of the MC point in the counter c.s. * @details ... * @param[in] dLocalAlongPosition along position in counter c.s. [cm] */ void SetAlongPosition(Double_t dLocalAlongPosition) {fdLocalAlongPosition = dLocalAlongPosition;} protected: private: Double_t fdTime; ///< MC ToF point time [ns] Double_t fdCharge; ///< charge induced by this point [a.u.] Double_t fdLocalAcrossPosition; ///< across position in counter c.s. [cm] Double_t fdLocalAlongPosition; ///< along position in counter c.s. [cm] ClassDef(CbmTofCharge,1) }; #endif