CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/TBDataFormats/HcalTBObjects/src/HcalTBBeamCounters.cc

Go to the documentation of this file.
00001 #include "TBDataFormats/HcalTBObjects/interface/HcalTBBeamCounters.h"
00002 
00003 using namespace std;
00004 
00005   HcalTBBeamCounters::HcalTBBeamCounters() :
00006     VMadc_(0),V3adc_(0),V6adc_(0),VH1adc_(0),VH2adc_(0),VH3adc_(0),VH4adc_(0),Ecal7x7_(0.),
00007     Sci521adc_(0),Sci528adc_(0),CK1adc_(0),CK2adc_(0),CK3adc_(0),SciVLEadc_(0),
00008     S1adc_(0),S2adc_(0),S3adc_(0),S4adc_(0),VMFadc_(0),VMBadc_(0),
00009     VM1adc_(0),VM2adc_(0),VM3adc_(0),VM4adc_(0),VM5adc_(0),VM6adc_(0),VM7adc_(0),VM8adc_(0),
00010     TOF1Sadc_(0),TOF1Jadc_(0),TOF2Sadc_(0),TOF2Jadc_(0),BH1adc_(0),BH2adc_(0),BH3adc_(0),BH4adc_(0){}
00011 
00012   void HcalTBBeamCounters::setADCs04  (double VMadc,double V3adc,double V6adc,
00013                                      double VH1adc ,double VH2adc,double VH3adc,double VH4adc,
00014                                      double CK2adc,double CK3adc,double SciVLEadc,
00015                                      double Sci521adc,double Sci528adc,
00016                                      double S1adc,double S2adc,double S3adc,double S4adc,double Ecal7x7)
00017 
00018   {
00019     VMadc_ = VMadc ;
00020     V3adc_ = V3adc ;
00021     V6adc_ = V6adc ;
00022     VH1adc_ = VH1adc ;
00023     VH2adc_ = VH2adc ;
00024     VH3adc_ = VH3adc ;
00025     VH4adc_ = VH4adc ;
00026     CK2adc_ = CK2adc ;
00027     CK3adc_ = CK3adc ;
00028     SciVLEadc_ = SciVLEadc ;
00029     Sci521adc_ = Sci521adc ;
00030     Sci528adc_ = Sci528adc ;
00031     S1adc_ = S1adc ;
00032     S2adc_ = S2adc ;
00033     S3adc_ = S3adc ;
00034     S4adc_ = S4adc ;
00035     Ecal7x7_ = Ecal7x7 ;
00036   }
00037    void  HcalTBBeamCounters::setADCs06 (double VMFadc,double VMBadc,
00038                                      double VM1adc ,double VM2adc,double VM3adc,double VM4adc,
00039                                      double VM5adc ,double VM6adc,double VM7adc,double VM8adc,
00040                                      double CK1adc,double CK2adc,double CK3adc,
00041                                      double S1adc,double S2adc,double S3adc,double S4adc,
00042                                      double TOF1Sadc,double TOF1Jadc,double TOF2Sadc,double TOF2Jadc,
00043                                      double Sci521adc,double Sci528adc,
00044                                      double BH1adc ,double BH2adc,double BH3adc,double BH4adc)
00045   {
00046    VMFadc_    = VMFadc ;
00047    VMBadc_    = VMBadc ;
00048    VM1adc_    = VM1adc ;
00049    VM2adc_    = VM2adc ;
00050    VM3adc_    = VM3adc ;
00051    VM4adc_    = VM4adc ;
00052    VM5adc_    = VM5adc ;
00053    VM6adc_    = VM6adc ;
00054    VM7adc_    = VM7adc ;
00055    VM8adc_    = VM8adc ;
00056    CK1adc_    = CK1adc ;
00057    CK2adc_    = CK2adc ;
00058    CK3adc_    = CK3adc ;
00059    S1adc_     = S1adc ;
00060    S2adc_     = S2adc ;
00061    S3adc_     = S3adc ;
00062    S4adc_     = S4adc ;
00063    TOF1Sadc_  = TOF1Sadc ;
00064    TOF1Jadc_  = TOF1Jadc ;
00065    TOF2Sadc_  = TOF2Sadc ;
00066    TOF2Jadc_  = TOF2Jadc ;
00067    Sci521adc_ = Sci521adc ;
00068    Sci528adc_ = Sci528adc ;
00069    BH1adc_ = BH1adc ;
00070    BH2adc_ = BH2adc ;
00071    BH3adc_ = BH3adc ;
00072    BH4adc_ = BH4adc ;
00073   }
00074 
00075 
00076   ostream& operator<<(ostream& s, const HcalTBBeamCounters& htbcnt) {
00077 
00078     s << "S1 adc     = " << htbcnt.S1adc() << endl;
00079     s << "S2 adc     = " << htbcnt.S2adc() << endl;
00080     s << "S3 adc     = " << htbcnt.S3adc() << endl;
00081     s << "S4 adc     = " << htbcnt.S4adc() << endl;
00082 
00083     return s;
00084   }