Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HCALTBBEAMCOUNTERS_H
0002 #define HCALTBBEAMCOUNTERS_H 1
0003 
0004 #include <string>
0005 #include <iostream>
0006 #include <vector>
0007 
0008 class HcalTBBeamCounters {
0009 public:
0010   HcalTBBeamCounters();
0011 
0012   // Getter methods
0013 
0014   /// Muon Veto adc
0015   double VMadc() const { return VMadc_; }
0016   double V3adc() const { return V3adc_; }
0017   double V6adc() const { return V6adc_; }
0018   double VH1adc() const { return VH1adc_; }
0019   double VH2adc() const { return VH2adc_; }
0020   double VH3adc() const { return VH3adc_; }
0021   double VH4adc() const { return VH4adc_; }
0022   double Ecal7x7() const { return Ecal7x7_; }
0023   double CK1adc() const { return CK1adc_; }
0024   double CK2adc() const { return CK2adc_; }
0025   double CK3adc() const { return CK3adc_; }
0026   double SciVLEadc() const { return SciVLEadc_; }
0027   double Sci521adc() const { return Sci521adc_; }
0028   double Sci528adc() const { return Sci528adc_; }
0029   double S1adc() const { return S1adc_; }
0030   double S2adc() const { return S2adc_; }
0031   double S3adc() const { return S3adc_; }
0032   double S4adc() const { return S4adc_; }
0033   double VMFadc() const { return VMFadc_; }
0034   double VMBadc() const { return VMBadc_; }
0035   double VM1adc() const { return VM1adc_; }
0036   double VM2adc() const { return VM2adc_; }
0037   double VM3adc() const { return VM3adc_; }
0038   double VM4adc() const { return VM4adc_; }
0039   double VM5adc() const { return VM5adc_; }
0040   double VM6adc() const { return VM6adc_; }
0041   double VM7adc() const { return VM7adc_; }
0042   double VM8adc() const { return VM8adc_; }
0043   double TOF1Sadc() const { return TOF1Sadc_; }
0044   double TOF1Jadc() const { return TOF1Jadc_; }
0045   double TOF2Sadc() const { return TOF2Sadc_; }
0046   double TOF2Jadc() const { return TOF2Jadc_; }
0047   double BH1adc() const { return BH1adc_; }
0048   double BH2adc() const { return BH2adc_; }
0049   double BH3adc() const { return BH3adc_; }
0050   double BH4adc() const { return BH4adc_; }
0051 
0052   // Setter methods
0053   void setADCs04(double VMadc,
0054                  double V3adc,
0055                  double V6adc,
0056                  double VH1adc,
0057                  double VH2adc,
0058                  double VH3adc,
0059                  double VH4adc,
0060                  double CK2adc,
0061                  double CK3adc,
0062                  double SciVLEadc,
0063                  double Sci521adc,
0064                  double Sci528adc,
0065                  double S1adc,
0066                  double S2adc,
0067                  double S3adc,
0068                  double S4adc,
0069                  double Ecal7x7);
0070   void setADCs06(double VMFadc,
0071                  double VMBadc,
0072                  double VM1adc,
0073                  double VM2adc,
0074                  double VM3adc,
0075                  double VM4adc,
0076                  double VM5adc,
0077                  double VM6adc,
0078                  double VM7adc,
0079                  double VM8adc,
0080                  double CK1adc,
0081                  double CK2adc,
0082                  double CK3adc,
0083                  double S1adc,
0084                  double S2adc,
0085                  double S3adc,
0086                  double S4adc,
0087                  double TOF1Sadc,
0088                  double TOF1Jadc,
0089                  double TOF2Sadc,
0090                  double TOF2Jadc,
0091                  double Sci521adc,
0092                  double Sci528adc,
0093                  double BH1adc,
0094                  double BH2adc,
0095                  double BH3adc,
0096                  double BH4adc);
0097 
0098 private:
0099   //    TB2004 specific
0100   double VMadc_;      // behind HO
0101   double V3adc_;      // behind HB at (eta,phi)=(7,3)
0102   double V6adc_;      // behind HB at (eta,phi)=(7,6)
0103   double VH1adc_;     // part of extra muon veto wall - the end of TB04 data taking
0104   double VH2adc_;     // part of extra muon veto wall - the end of TB04 data taking
0105   double VH3adc_;     // part of extra muon veto wall - the end of TB04 data taking
0106   double VH4adc_;     // part of extra muon veto wall - the end of TB04 data taking
0107   double Ecal7x7_;    // Ecal energy - sum of all 49 crustals
0108                       //   Common for TB2004 and TB2006
0109   double Sci521adc_;  // Scintilator at 521m (see beam line drawings)
0110   double Sci528adc_;  // Scintilator at 522m (see beam line drawings)
0111   double CK1adc_;     // TB2006
0112   double CK2adc_;     // Cerenkov 2 : electron id
0113   double CK3adc_;     // Cerenkov 3 : pi/proton separation
0114   double SciVLEadc_;  // Scintillator in VLE beam line
0115   double S1adc_;      // Trigger scintilator 14x14 cm
0116   double S2adc_;      // Trigger scintilator 4x4 cm
0117   double S3adc_;      // Trigger scintilator 2x2 cm
0118   double S4adc_;      // Trigger scintilator 14x14 cm
0119                       //    TB2006 specific
0120   double VMFadc_;     // VM front
0121   double VMBadc_;     // VM back
0122   double VM1adc_;     // Muon veto wall
0123   double VM2adc_;     // Muon veto wall
0124   double VM3adc_;     // Muon veto wall
0125   double VM4adc_;     // Muon veto wall
0126   double VM5adc_;     // Muon veto wall
0127   double VM6adc_;     // Muon veto wall
0128   double VM7adc_;     // Muon veto wall
0129   double VM8adc_;     // Muon veto wall
0130   double TOF1Sadc_;   // TOF1S (Saleve side)
0131   double TOF1Jadc_;   // TOF1J (Jura side)
0132   double TOF2Sadc_;   // TOF2S (Saleve side)
0133   double TOF2Jadc_;   // TOF2J (Jura side)
0134   double BH1adc_;     // beam halo up
0135   double BH2adc_;     // beam halo left from particle view
0136   double BH3adc_;     // beam halo right from particle view
0137   double BH4adc_;     // beam halo down
0138 };
0139 
0140 std::ostream& operator<<(std::ostream& s, const HcalTBBeamCounters& htbcnt);
0141 
0142 #endif