CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonTemplate.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_MuonTemplate_h
2 #define L1Trigger_L1TGlobal_MuonTemplate_h
3 
20 // system include files
21 #include <string>
22 #include <iosfwd>
23 
24 // user include files
25 
26 // base class
28 
29 // forward declarations
30 
31 // class declaration
32 class MuonTemplate : public GtCondition
33 {
34 
35 public:
36 
37  // constructor
38  MuonTemplate();
39 
40  // constructor
41  MuonTemplate(const std::string& );
42 
43  // constructor
45 
46  // copy constructor
47  MuonTemplate( const MuonTemplate& );
48 
49  // destructor
50  virtual ~MuonTemplate();
51 
52  // assign operator
54 
55 public:
56 
57  // typedef for a single object template
59  {
60  unsigned int ptHighThreshold;
61  unsigned int ptLowThreshold;
62  bool enableMip;
63  bool enableIso;
64  bool requestIso;
65  unsigned int qualityRange;
66  unsigned long long etaRange;
67  unsigned int phiHigh;
68  unsigned int phiLow;
69  };
70 
71  // typedef for correlation parameters
72  // chargeCorrelation is defined always
73  // see documentation for meaning
75  {
76  unsigned int chargeCorrelation;
77  unsigned long long deltaEtaRange;
78 
79  unsigned long long deltaPhiRange0Word;
80  unsigned long long deltaPhiRange1Word;
81  unsigned int deltaPhiMaxbits;
82  };
83 
84 public:
85 
86  inline const std::vector<ObjectParameter>* objectParameter() const
87  {
88  return &m_objectParameter;
89  }
90 
92  {
93  return &m_correlationParameter;
94  }
95 
96 
98  void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
99  const CorrelationParameter& corrParameter);
100 
101 
103  virtual void print(std::ostream& myCout) const;
104 
106  friend std::ostream& operator<<(std::ostream&, const MuonTemplate&);
107 
108 
109 private:
110 
112  void copy( const MuonTemplate& cp);
113 
114 
115 private:
116 
118  std::vector<ObjectParameter> m_objectParameter;
120 
121 };
122 
123 #endif
void copy(const MuonTemplate &cp)
copy function for copy constructor and operator=
virtual ~MuonTemplate()
Definition: MuonTemplate.cc:74
GtConditionType
Definition: GtDefinitions.h:99
virtual void print(std::ostream &myCout) const
print the condition
Definition: MuonTemplate.cc:99
MuonTemplate & operator=(const MuonTemplate &)
Definition: MuonTemplate.cc:80
const std::vector< ObjectParameter > * objectParameter() const
Definition: MuonTemplate.h:86
unsigned long long etaRange
Definition: MuonTemplate.h:66
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: MuonTemplate.h:118
unsigned long long deltaPhiRange0Word
Definition: MuonTemplate.h:79
unsigned long long deltaPhiRange1Word
Definition: MuonTemplate.h:80
void setConditionParameter(const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
set functions
Definition: MuonTemplate.cc:89
unsigned long long deltaEtaRange
Definition: MuonTemplate.h:77
const CorrelationParameter * correlationParameter() const
Definition: MuonTemplate.h:91
CorrelationParameter m_correlationParameter
Definition: MuonTemplate.h:119
friend std::ostream & operator<<(std::ostream &, const MuonTemplate &)
output stream operator