CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1MuDTTFMasks Class Reference

#include <L1MuDTTFMasks.h>

Public Member Functions

bool get_etsoc_chdis_st1 (int wh, int sc) const
 
bool get_etsoc_chdis_st2 (int wh, int sc) const
 
bool get_etsoc_chdis_st3 (int wh, int sc) const
 
bool get_inrec_chdis_csc (int wh, int sc) const
 
bool get_inrec_chdis_st1 (int wh, int sc) const
 
bool get_inrec_chdis_st2 (int wh, int sc) const
 
bool get_inrec_chdis_st3 (int wh, int sc) const
 
bool get_inrec_chdis_st4 (int wh, int sc) const
 
 L1MuDTTFMasks ()
 constructor More...
 
void print () const
 
void reset ()
 reset parameters to zero More...
 
void set_etsoc_chdis_st1 (int wh, int sc, const bool val)
 
void set_etsoc_chdis_st2 (int wh, int sc, const bool val)
 
void set_etsoc_chdis_st3 (int wh, int sc, const bool val)
 
void set_inrec_chdis_csc (int wh, int sc, const bool val)
 
void set_inrec_chdis_st1 (int wh, int sc, const bool val)
 
void set_inrec_chdis_st2 (int wh, int sc, const bool val)
 
void set_inrec_chdis_st3 (int wh, int sc, const bool val)
 
void set_inrec_chdis_st4 (int wh, int sc, const bool val)
 
virtual ~L1MuDTTFMasks ()
 destructor More...
 

Private Member Functions

int check (int wh, int sc) const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

bool etsoc_chdis_st1 [6][12]
 
bool etsoc_chdis_st2 [6][12]
 
bool etsoc_chdis_st3 [6][12]
 
bool inrec_chdis_csc [6][12]
 
bool inrec_chdis_st1 [6][12]
 
bool inrec_chdis_st2 [6][12]
 
bool inrec_chdis_st3 [6][12]
 
bool inrec_chdis_st4 [6][12]
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

DTTF Masks from OMDS

Date:
2008/05/14 14:58:02
Revision:
1.1

J. Troconiz UAM Madrid

Definition at line 36 of file L1MuDTTFMasks.h.

Constructor & Destructor Documentation

L1MuDTTFMasks::L1MuDTTFMasks ( )
inline

constructor

Definition at line 39 of file L1MuDTTFMasks.h.

References reset().

39 { reset(); }
void reset()
reset parameters to zero
virtual L1MuDTTFMasks::~L1MuDTTFMasks ( )
inlinevirtual

destructor

Definition at line 42 of file L1MuDTTFMasks.h.

42 {}

Member Function Documentation

int L1MuDTTFMasks::check ( int  wh,
int  sc 
) const
private

Definition at line 159 of file L1MuDTTFMasks.cc.

159  {
160  if (sc < 0 || sc > 11 || wh == 0 || wh > 3 || wh < -3)
161  return -99;
162 
163  if (wh < 0)
164  return wh + 3;
165  else
166  return wh + 2;
167 }
bool L1MuDTTFMasks::get_etsoc_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 129 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMEtaProcessor::receiveData().

129  {
130  if (check(wh, sc) == -99)
131  return false;
132  return etsoc_chdis_st1[check(wh, sc)][sc];
133 }
int check(int wh, int sc) const
bool etsoc_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:75
bool L1MuDTTFMasks::get_etsoc_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 141 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMEtaProcessor::receiveData().

141  {
142  if (check(wh, sc) == -99)
143  return false;
144  return etsoc_chdis_st2[check(wh, sc)][sc];
145 }
int check(int wh, int sc) const
bool etsoc_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:76
bool L1MuDTTFMasks::get_etsoc_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 153 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMEtaProcessor::receiveData().

153  {
154  if (check(wh, sc) == -99)
155  return false;
156  return etsoc_chdis_st3[check(wh, sc)][sc];
157 }
int check(int wh, int sc) const
bool etsoc_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:77
bool L1MuDTTFMasks::get_inrec_chdis_csc ( int  wh,
int  sc 
) const

Definition at line 117 of file L1MuDTTFMasks.cc.

References trackerTree::check().

117  {
118  if (check(wh, sc) == -99)
119  return false;
120  return inrec_chdis_csc[check(wh, sc)][sc];
121 }
bool inrec_chdis_csc[6][12]
Definition: L1MuDTTFMasks.h:74
int check(int wh, int sc) const
bool L1MuDTTFMasks::get_inrec_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 69 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMSectorReceiver::receiveBBMXData().

69  {
70  if (check(wh, sc) == -99)
71  return false;
72  return inrec_chdis_st1[check(wh, sc)][sc];
73 }
int check(int wh, int sc) const
bool inrec_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:70
bool L1MuDTTFMasks::get_inrec_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 81 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMSectorReceiver::receiveBBMXData().

81  {
82  if (check(wh, sc) == -99)
83  return false;
84  return inrec_chdis_st2[check(wh, sc)][sc];
85 }
bool inrec_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:71
int check(int wh, int sc) const
bool L1MuDTTFMasks::get_inrec_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 93 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMSectorReceiver::receiveBBMXData().

93  {
94  if (check(wh, sc) == -99)
95  return false;
96  return inrec_chdis_st3[check(wh, sc)][sc];
97 }
int check(int wh, int sc) const
bool inrec_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:72
bool L1MuDTTFMasks::get_inrec_chdis_st4 ( int  wh,
int  sc 
) const

Definition at line 105 of file L1MuDTTFMasks.cc.

References trackerTree::check().

Referenced by L1TMuonBarrelKalmanStubProcessor::makeStubs(), and L1MuBMSectorReceiver::receiveBBMXData().

105  {
106  if (check(wh, sc) == -99)
107  return false;
108  return inrec_chdis_st4[check(wh, sc)][sc];
109 }
int check(int wh, int sc) const
bool inrec_chdis_st4[6][12]
Definition: L1MuDTTFMasks.h:73
void L1MuDTTFMasks::print ( void  ) const

Definition at line 169 of file L1MuDTTFMasks.cc.

References gather_cfg::cout, mps_fire::i, and dqmiolumiharvest::j.

169  {
170  cout << endl;
171  cout << "L1 barrel Track Finder Masks :" << endl;
172  cout << "==============================" << endl;
173  cout << endl;
174 
175  cout << endl;
176  cout << "Disable PHTF St.1 :" << endl;
177  cout << "===================" << endl;
178  cout << endl;
179  for (int i = -3; i < 4; i++) {
180  if (i == 0)
181  continue;
182  for (int j = 0; j < 12; j++) {
183  cout << " " << setw(1) << get_inrec_chdis_st1(i, j);
184  }
185  cout << endl;
186  }
187 
188  cout << endl;
189  cout << "Disable PHTF St.2 :" << endl;
190  cout << "===================" << endl;
191  cout << endl;
192  for (int i = -3; i < 4; i++) {
193  if (i == 0)
194  continue;
195  for (int j = 0; j < 12; j++) {
196  cout << " " << setw(1) << get_inrec_chdis_st2(i, j);
197  }
198  cout << endl;
199  }
200 
201  cout << endl;
202  cout << "Disable PHTF St.3 :" << endl;
203  cout << "===================" << endl;
204  cout << endl;
205  for (int i = -3; i < 4; i++) {
206  if (i == 0)
207  continue;
208  for (int j = 0; j < 12; j++) {
209  cout << " " << setw(1) << get_inrec_chdis_st3(i, j);
210  }
211  cout << endl;
212  }
213 
214  cout << endl;
215  cout << "Disable PHTF St.4 :" << endl;
216  cout << "===================" << endl;
217  cout << endl;
218  for (int i = -3; i < 4; i++) {
219  if (i == 0)
220  continue;
221  for (int j = 0; j < 12; j++) {
222  cout << " " << setw(1) << get_inrec_chdis_st4(i, j);
223  }
224  cout << endl;
225  }
226 
227  cout << endl;
228  cout << "Disable CSC :" << endl;
229  cout << "=============" << endl;
230  cout << endl;
231  for (int i = -3; i < 4; i++) {
232  if (i == 0)
233  continue;
234  for (int j = 0; j < 12; j++) {
235  cout << " " << setw(1) << get_inrec_chdis_csc(i, j);
236  }
237  cout << endl;
238  }
239 
240  cout << endl;
241  cout << "Disable ETTF St.1 :" << endl;
242  cout << "===================" << endl;
243  cout << endl;
244  for (int i = -3; i < 4; i++) {
245  if (i == 0)
246  continue;
247  for (int j = 0; j < 12; j++) {
248  cout << " " << setw(1) << get_etsoc_chdis_st1(i, j);
249  }
250  cout << endl;
251  }
252 
253  cout << endl;
254  cout << "Disable ETTF St.2 :" << endl;
255  cout << "===================" << endl;
256  cout << endl;
257  for (int i = -3; i < 4; i++) {
258  if (i == 0)
259  continue;
260  for (int j = 0; j < 12; j++) {
261  cout << " " << setw(1) << get_etsoc_chdis_st2(i, j);
262  }
263  cout << endl;
264  }
265 
266  cout << endl;
267  cout << "Disable ETTF St.3 :" << endl;
268  cout << "===================" << endl;
269  cout << endl;
270  for (int i = -3; i < 4; i++) {
271  if (i == 0)
272  continue;
273  for (int j = 0; j < 12; j++) {
274  cout << " " << setw(1) << get_etsoc_chdis_st3(i, j);
275  }
276  cout << endl;
277  }
278 }
bool get_etsoc_chdis_st3(int wh, int sc) const
bool get_inrec_chdis_st1(int wh, int sc) const
bool get_inrec_chdis_st3(int wh, int sc) const
bool get_inrec_chdis_st2(int wh, int sc) const
bool get_etsoc_chdis_st2(int wh, int sc) const
bool get_inrec_chdis_st4(int wh, int sc) const
bool get_inrec_chdis_csc(int wh, int sc) const
tuple cout
Definition: gather_cfg.py:144
bool get_etsoc_chdis_st1(int wh, int sc) const
void L1MuDTTFMasks::reset ( void  )

reset parameters to zero

Definition at line 48 of file L1MuDTTFMasks.cc.

References mps_fire::i, and dqmiolumiharvest::j.

Referenced by MatrixReader.MatrixReader::__init__(), L1TMuonBarrelParamsHelper::configFromDB(), L1MuDTTFMasks(), and MatrixReader.MatrixReader::showRaw().

48  {
49  for (int i = 0; i < 6; i++) {
50  for (int j = 0; j < 12; j++) {
51  inrec_chdis_st1[i][j] = false;
52  inrec_chdis_st2[i][j] = false;
53  inrec_chdis_st3[i][j] = false;
54  inrec_chdis_st4[i][j] = false;
55  inrec_chdis_csc[i][j] = false;
56  etsoc_chdis_st1[i][j] = false;
57  etsoc_chdis_st2[i][j] = false;
58  etsoc_chdis_st3[i][j] = false;
59  }
60  }
61 }
bool inrec_chdis_csc[6][12]
Definition: L1MuDTTFMasks.h:74
bool inrec_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:71
bool etsoc_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:76
bool etsoc_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:75
bool inrec_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:70
bool etsoc_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:77
bool inrec_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:72
bool inrec_chdis_st4[6][12]
Definition: L1MuDTTFMasks.h:73
template<class Archive >
void L1MuDTTFMasks::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1MuDTTFMasks::set_etsoc_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 123 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

123  {
124  if (check(wh, sc) == -99)
125  return;
126  etsoc_chdis_st1[check(wh, sc)][sc] = val;
127 }
int check(int wh, int sc) const
bool etsoc_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:75
void L1MuDTTFMasks::set_etsoc_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 135 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

135  {
136  if (check(wh, sc) == -99)
137  return;
138  etsoc_chdis_st2[check(wh, sc)][sc] = val;
139 }
int check(int wh, int sc) const
bool etsoc_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:76
void L1MuDTTFMasks::set_etsoc_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 147 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

147  {
148  if (check(wh, sc) == -99)
149  return;
150  etsoc_chdis_st3[check(wh, sc)][sc] = val;
151 }
int check(int wh, int sc) const
bool etsoc_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:77
void L1MuDTTFMasks::set_inrec_chdis_csc ( int  wh,
int  sc,
const bool  val 
)

Definition at line 111 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

111  {
112  if (check(wh, sc) == -99)
113  return;
114  inrec_chdis_csc[check(wh, sc)][sc] = val;
115 }
bool inrec_chdis_csc[6][12]
Definition: L1MuDTTFMasks.h:74
int check(int wh, int sc) const
void L1MuDTTFMasks::set_inrec_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 63 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonBarrelParamsHelper::configFromPy().

63  {
64  if (check(wh, sc) == -99)
65  return;
66  inrec_chdis_st1[check(wh, sc)][sc] = val;
67 }
int check(int wh, int sc) const
bool inrec_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:70
void L1MuDTTFMasks::set_inrec_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 75 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonBarrelParamsHelper::configFromPy().

75  {
76  if (check(wh, sc) == -99)
77  return;
78  inrec_chdis_st2[check(wh, sc)][sc] = val;
79 }
bool inrec_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:71
int check(int wh, int sc) const
void L1MuDTTFMasks::set_inrec_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 87 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonBarrelParamsHelper::configFromPy().

87  {
88  if (check(wh, sc) == -99)
89  return;
90  inrec_chdis_st3[check(wh, sc)][sc] = val;
91 }
int check(int wh, int sc) const
bool inrec_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:72
void L1MuDTTFMasks::set_inrec_chdis_st4 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 99 of file L1MuDTTFMasks.cc.

References trackerTree::check(), and hgcalPerformanceValidation::val.

Referenced by L1TMuonBarrelParamsHelper::configFromDB(), and L1TMuonBarrelParamsHelper::configFromPy().

99  {
100  if (check(wh, sc) == -99)
101  return;
102  inrec_chdis_st4[check(wh, sc)][sc] = val;
103 }
int check(int wh, int sc) const
bool inrec_chdis_st4[6][12]
Definition: L1MuDTTFMasks.h:73

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 79 of file L1MuDTTFMasks.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 79 of file L1MuDTTFMasks.h.

Member Data Documentation

bool L1MuDTTFMasks::etsoc_chdis_st1[6][12]
private

Definition at line 75 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::etsoc_chdis_st2[6][12]
private

Definition at line 76 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::etsoc_chdis_st3[6][12]
private

Definition at line 77 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_csc[6][12]
private

Definition at line 74 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st1[6][12]
private

Definition at line 70 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st2[6][12]
private

Definition at line 71 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st3[6][12]
private

Definition at line 72 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st4[6][12]
private

Definition at line 73 of file L1MuDTTFMasks.h.