#ifndef CALCALIB_CHN_HPP #define CALCALIB_CHN_HPP //////////////////////////////////////////////////////////////////// // // CalCalib_Chn.hpp // // Created: October 21st. 1998 Mrinmoy Bhattacharjee // Purpose: HPP file for Calorimeter Channel // Data Definition for Online Calibration // -- Contains mean & sigma for *1 & *8 Gain paths // + Null Error code to be set at validation // + event count per channel // // Output : CalCalib_Chn Object // //////////////////////////////////////////////////////////////////// // Include Files // #include //#include "d0om/d0_Object.hpp" //#include "d0om/d0_Ref.hpp" using std::cout; using std::endl; //class CalCalib_Chn : public d0_Object { class CalCalib_Chn { public: // Default Constructor & Destructor // CalCalib_Chn (); ~CalCalib_Chn(); // Constructor with Channel ID // CalCalib_Chn(int ChId); // Constructor with Arguments // CalCalib_Chn(int ChId, float Mean1, float Mean8, float Sigma1, float Sigma8); // Access Functions // int getBLS() const; //Return BLS ID// int getTWR() const; //Return TWR ID// int getDPTH() const; //Return Depth// int getChId() const; //Return Channel ID// int getError() const; //Return 32 bit Error code// int getEvtCnt() const; //Return Num Event/channel// int getPattrn() const; //Return Pulser Pattern Id// float getMean1() const; //Return 1st. Moment for *1 Gain// float getMean8() const; //Return 1st. Moment for *8 Gain// float getSigma1() const; //Return 2nd. Moment for *1 Gain// float getSigma8() const; //Return 2nd. Moment for *8 Gain// void updtEvtCnt(); //Update event count// void setError(int error); //Set the Error code// void adtoMean(float Mean1, float Mean8); //Update 1st. Moment// void adtoSigma(float Sigma1, float Sigma8); //Update 2nd. Moment// void mkMean(int offset1, int offset8); //Calculate mean// void mkSigma(int offset1, int offset8); //Calculate sigma// //D0_OBJECT_SETUP( CalCalib_Chn ); private: int _Bls; //BLS ID // int _Twr; //Tower ID // int _Dpth; //Depth ID// int _ChId; //Channel ID// int _Error; //32bit Error code// int _EvtCnt; //Event count// int _PatternId; //Pulser Pattern ID// float _Mean1; //Mean *1 // float _Mean8; //Mean *8 // float _Sigma1; //Sigma *1 // float _Sigma8; //Sigma *8 // }; #endif