Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:05:18

0001 #ifndef HCALTBRUNDATA_H
0002 #define HCALTBRUNDATA_H 1
0003 
0004 #include <string>
0005 #include <iostream>
0006 
0007 /** \class HcalTBRunData
0008 
0009   This class contains data associated with a run, such as character
0010   strings describing the run type, beam mode, and also the beam energy.
0011 
0012   $Date: 2005/10/06 22:21:33 $
0013   $Revision: 1.2 $
0014   \author P. Dudero - Minnesota
0015   */
0016 class HcalTBRunData {
0017 public:
0018   HcalTBRunData();
0019 
0020   // Getter methods
0021   /// Returns the run type string
0022   const std::string& runType() const { return runType_; }
0023   /// Returns the beam mode string
0024   const std::string& beamMode() const { return beamMode_; }
0025 
0026   /// Returns the beam energy in GeV
0027   double beamEnergyGeV() const { return beamEnergyGeV_; }
0028 
0029   // Setter methods
0030   void setRunData(const char* run_type, const char* beam_mode, double beam_energy_gev);
0031 
0032 private:
0033   std::string runType_;
0034   std::string beamMode_;
0035   double beamEnergyGeV_;
0036 };
0037 
0038 std::ostream& operator<<(std::ostream& s, const HcalTBRunData& htbrd);
0039 
0040 #endif