Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:08

0001 #include "TBDataFormats/HcalTBObjects/interface/HcalTBBeamCounters.h"
0002 
0003 using namespace std;
0004 
0005 HcalTBBeamCounters::HcalTBBeamCounters()
0006     : VMadc_(0),
0007       V3adc_(0),
0008       V6adc_(0),
0009       VH1adc_(0),
0010       VH2adc_(0),
0011       VH3adc_(0),
0012       VH4adc_(0),
0013       Ecal7x7_(0.),
0014       Sci521adc_(0),
0015       Sci528adc_(0),
0016       CK1adc_(0),
0017       CK2adc_(0),
0018       CK3adc_(0),
0019       SciVLEadc_(0),
0020       S1adc_(0),
0021       S2adc_(0),
0022       S3adc_(0),
0023       S4adc_(0),
0024       VMFadc_(0),
0025       VMBadc_(0),
0026       VM1adc_(0),
0027       VM2adc_(0),
0028       VM3adc_(0),
0029       VM4adc_(0),
0030       VM5adc_(0),
0031       VM6adc_(0),
0032       VM7adc_(0),
0033       VM8adc_(0),
0034       TOF1Sadc_(0),
0035       TOF1Jadc_(0),
0036       TOF2Sadc_(0),
0037       TOF2Jadc_(0),
0038       BH1adc_(0),
0039       BH2adc_(0),
0040       BH3adc_(0),
0041       BH4adc_(0) {}
0042 
0043 void HcalTBBeamCounters::setADCs04(double VMadc,
0044                                    double V3adc,
0045                                    double V6adc,
0046                                    double VH1adc,
0047                                    double VH2adc,
0048                                    double VH3adc,
0049                                    double VH4adc,
0050                                    double CK2adc,
0051                                    double CK3adc,
0052                                    double SciVLEadc,
0053                                    double Sci521adc,
0054                                    double Sci528adc,
0055                                    double S1adc,
0056                                    double S2adc,
0057                                    double S3adc,
0058                                    double S4adc,
0059                                    double Ecal7x7)
0060 
0061 {
0062   VMadc_ = VMadc;
0063   V3adc_ = V3adc;
0064   V6adc_ = V6adc;
0065   VH1adc_ = VH1adc;
0066   VH2adc_ = VH2adc;
0067   VH3adc_ = VH3adc;
0068   VH4adc_ = VH4adc;
0069   CK2adc_ = CK2adc;
0070   CK3adc_ = CK3adc;
0071   SciVLEadc_ = SciVLEadc;
0072   Sci521adc_ = Sci521adc;
0073   Sci528adc_ = Sci528adc;
0074   S1adc_ = S1adc;
0075   S2adc_ = S2adc;
0076   S3adc_ = S3adc;
0077   S4adc_ = S4adc;
0078   Ecal7x7_ = Ecal7x7;
0079 }
0080 void HcalTBBeamCounters::setADCs06(double VMFadc,
0081                                    double VMBadc,
0082                                    double VM1adc,
0083                                    double VM2adc,
0084                                    double VM3adc,
0085                                    double VM4adc,
0086                                    double VM5adc,
0087                                    double VM6adc,
0088                                    double VM7adc,
0089                                    double VM8adc,
0090                                    double CK1adc,
0091                                    double CK2adc,
0092                                    double CK3adc,
0093                                    double S1adc,
0094                                    double S2adc,
0095                                    double S3adc,
0096                                    double S4adc,
0097                                    double TOF1Sadc,
0098                                    double TOF1Jadc,
0099                                    double TOF2Sadc,
0100                                    double TOF2Jadc,
0101                                    double Sci521adc,
0102                                    double Sci528adc,
0103                                    double BH1adc,
0104                                    double BH2adc,
0105                                    double BH3adc,
0106                                    double BH4adc) {
0107   VMFadc_ = VMFadc;
0108   VMBadc_ = VMBadc;
0109   VM1adc_ = VM1adc;
0110   VM2adc_ = VM2adc;
0111   VM3adc_ = VM3adc;
0112   VM4adc_ = VM4adc;
0113   VM5adc_ = VM5adc;
0114   VM6adc_ = VM6adc;
0115   VM7adc_ = VM7adc;
0116   VM8adc_ = VM8adc;
0117   CK1adc_ = CK1adc;
0118   CK2adc_ = CK2adc;
0119   CK3adc_ = CK3adc;
0120   S1adc_ = S1adc;
0121   S2adc_ = S2adc;
0122   S3adc_ = S3adc;
0123   S4adc_ = S4adc;
0124   TOF1Sadc_ = TOF1Sadc;
0125   TOF1Jadc_ = TOF1Jadc;
0126   TOF2Sadc_ = TOF2Sadc;
0127   TOF2Jadc_ = TOF2Jadc;
0128   Sci521adc_ = Sci521adc;
0129   Sci528adc_ = Sci528adc;
0130   BH1adc_ = BH1adc;
0131   BH2adc_ = BH2adc;
0132   BH3adc_ = BH3adc;
0133   BH4adc_ = BH4adc;
0134 }
0135 
0136 ostream& operator<<(ostream& s, const HcalTBBeamCounters& htbcnt) {
0137   s << "S1 adc     = " << htbcnt.S1adc() << endl;
0138   s << "S2 adc     = " << htbcnt.S2adc() << endl;
0139   s << "S3 adc     = " << htbcnt.S3adc() << endl;
0140   s << "S4 adc     = " << htbcnt.S4adc() << endl;
0141 
0142   return s;
0143 }