Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:30

0001 #ifndef L1Trigger_L1TGlobal_MuonShowerTemplate_h
0002 #define L1Trigger_L1TGlobal_MuonShowerTemplate_h
0003 
0004 /**
0005  * \class MuonShowerTemplate
0006  *
0007  *
0008  * Description: L1 Global Trigger muon shower template.
0009  *
0010  * \author: Sven Dildick (Rice University)
0011  *
0012  */
0013 
0014 // system include files
0015 #include <string>
0016 #include <iosfwd>
0017 
0018 // user include files
0019 
0020 //   base class
0021 #include "L1Trigger/L1TGlobal/interface/GlobalCondition.h"
0022 
0023 // forward declarations
0024 
0025 // class declaration
0026 class MuonShowerTemplate : public GlobalCondition {
0027 public:
0028   // constructor
0029   MuonShowerTemplate();
0030 
0031   // constructor
0032   MuonShowerTemplate(const std::string&);
0033 
0034   // constructor
0035   MuonShowerTemplate(const std::string&, const l1t::GtConditionType&);
0036 
0037   // copy constructor
0038   MuonShowerTemplate(const MuonShowerTemplate&);
0039 
0040   // destructor
0041   ~MuonShowerTemplate() override;
0042 
0043   // assign operator
0044   MuonShowerTemplate& operator=(const MuonShowerTemplate&);
0045 
0046   // typedef for a single object template
0047   struct ObjectParameter {
0048     bool MuonShower0;
0049     bool MuonShower1;
0050     bool MuonShower2;
0051     bool MuonShowerOutOfTime0;
0052     bool MuonShowerOutOfTime1;
0053   };
0054 
0055 public:
0056   inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
0057 
0058   /// set functions
0059   void setConditionParameter(const std::vector<ObjectParameter>& objParameter);
0060 
0061   /// print the condition
0062   void print(std::ostream& myCout) const override;
0063 
0064   /// output stream operator
0065   friend std::ostream& operator<<(std::ostream&, const MuonShowerTemplate&);
0066 
0067 private:
0068   /// copy function for copy constructor and operator=
0069   void copy(const MuonShowerTemplate& cp);
0070 
0071   /// variables containing the parameters
0072   std::vector<ObjectParameter> m_objectParameter;
0073 };
0074 
0075 #endif