Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-09 00:01:06

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 MuonShowerOutOfTime0;
0051     bool MuonShowerOutOfTime1;
0052   };
0053 
0054 public:
0055   inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
0056 
0057   /// set functions
0058   void setConditionParameter(const std::vector<ObjectParameter>& objParameter);
0059 
0060   /// print the condition
0061   void print(std::ostream& myCout) const override;
0062 
0063   /// output stream operator
0064   friend std::ostream& operator<<(std::ostream&, const MuonShowerTemplate&);
0065 
0066 private:
0067   /// copy function for copy constructor and operator=
0068   void copy(const MuonShowerTemplate& cp);
0069 
0070   /// variables containing the parameters
0071   std::vector<ObjectParameter> m_objectParameter;
0072 };
0073 
0074 #endif