CMS 3D CMS Logo

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::L1MuDTTFMasks ( )
inline

constructor

Definition at line 39 of file L1MuDTTFMasks.h.

39 { reset(); }

References reset().

◆ ~L1MuDTTFMasks()

virtual L1MuDTTFMasks::~L1MuDTTFMasks ( )
inlinevirtual

destructor

Definition at line 42 of file L1MuDTTFMasks.h.

42 {}

Member Function Documentation

◆ check()

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 }

◆ get_etsoc_chdis_st1()

bool L1MuDTTFMasks::get_etsoc_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 129 of file L1MuDTTFMasks.cc.

129  {
130  if (check(wh, sc) == -99)
131  return false;
132  return etsoc_chdis_st1[check(wh, sc)][sc];
133 }

References RPCNoise_example::check.

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

◆ get_etsoc_chdis_st2()

bool L1MuDTTFMasks::get_etsoc_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 141 of file L1MuDTTFMasks.cc.

141  {
142  if (check(wh, sc) == -99)
143  return false;
144  return etsoc_chdis_st2[check(wh, sc)][sc];
145 }

References RPCNoise_example::check.

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

◆ get_etsoc_chdis_st3()

bool L1MuDTTFMasks::get_etsoc_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 153 of file L1MuDTTFMasks.cc.

153  {
154  if (check(wh, sc) == -99)
155  return false;
156  return etsoc_chdis_st3[check(wh, sc)][sc];
157 }

References RPCNoise_example::check.

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

◆ get_inrec_chdis_csc()

bool L1MuDTTFMasks::get_inrec_chdis_csc ( int  wh,
int  sc 
) const

Definition at line 117 of file L1MuDTTFMasks.cc.

117  {
118  if (check(wh, sc) == -99)
119  return false;
120  return inrec_chdis_csc[check(wh, sc)][sc];
121 }

References RPCNoise_example::check.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

◆ get_inrec_chdis_st1()

bool L1MuDTTFMasks::get_inrec_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 69 of file L1MuDTTFMasks.cc.

69  {
70  if (check(wh, sc) == -99)
71  return false;
72  return inrec_chdis_st1[check(wh, sc)][sc];
73 }

References RPCNoise_example::check.

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

◆ get_inrec_chdis_st2()

bool L1MuDTTFMasks::get_inrec_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 81 of file L1MuDTTFMasks.cc.

81  {
82  if (check(wh, sc) == -99)
83  return false;
84  return inrec_chdis_st2[check(wh, sc)][sc];
85 }

References RPCNoise_example::check.

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

◆ get_inrec_chdis_st3()

bool L1MuDTTFMasks::get_inrec_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 93 of file L1MuDTTFMasks.cc.

93  {
94  if (check(wh, sc) == -99)
95  return false;
96  return inrec_chdis_st3[check(wh, sc)][sc];
97 }

References RPCNoise_example::check.

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

◆ get_inrec_chdis_st4()

bool L1MuDTTFMasks::get_inrec_chdis_st4 ( int  wh,
int  sc 
) const

Definition at line 105 of file L1MuDTTFMasks.cc.

105  {
106  if (check(wh, sc) == -99)
107  return false;
108  return inrec_chdis_st4[check(wh, sc)][sc];
109 }

References RPCNoise_example::check.

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

◆ print()

void L1MuDTTFMasks::print ( void  ) const

Definition at line 169 of file L1MuDTTFMasks.cc.

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 }

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

Referenced by L1TConfigDumper::analyze().

◆ reset()

void L1MuDTTFMasks::reset ( void  )

reset parameters to zero

Definition at line 48 of file L1MuDTTFMasks.cc.

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 }

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

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

◆ serialize()

template<class Archive >
void L1MuDTTFMasks::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ set_etsoc_chdis_st1()

void L1MuDTTFMasks::set_etsoc_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 123 of file L1MuDTTFMasks.cc.

123  {
124  if (check(wh, sc) == -99)
125  return;
126  etsoc_chdis_st1[check(wh, sc)][sc] = val;
127 }

References RPCNoise_example::check, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

◆ set_etsoc_chdis_st2()

void L1MuDTTFMasks::set_etsoc_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 135 of file L1MuDTTFMasks.cc.

135  {
136  if (check(wh, sc) == -99)
137  return;
138  etsoc_chdis_st2[check(wh, sc)][sc] = val;
139 }

References RPCNoise_example::check, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

◆ set_etsoc_chdis_st3()

void L1MuDTTFMasks::set_etsoc_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 147 of file L1MuDTTFMasks.cc.

147  {
148  if (check(wh, sc) == -99)
149  return;
150  etsoc_chdis_st3[check(wh, sc)][sc] = val;
151 }

References RPCNoise_example::check, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

◆ set_inrec_chdis_csc()

void L1MuDTTFMasks::set_inrec_chdis_csc ( int  wh,
int  sc,
const bool  val 
)

Definition at line 111 of file L1MuDTTFMasks.cc.

111  {
112  if (check(wh, sc) == -99)
113  return;
114  inrec_chdis_csc[check(wh, sc)][sc] = val;
115 }

References RPCNoise_example::check, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy().

◆ set_inrec_chdis_st1()

void L1MuDTTFMasks::set_inrec_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 63 of file L1MuDTTFMasks.cc.

63  {
64  if (check(wh, sc) == -99)
65  return;
66  inrec_chdis_st1[check(wh, sc)][sc] = val;
67 }

References RPCNoise_example::check, and heppy_batch::val.

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

◆ set_inrec_chdis_st2()

void L1MuDTTFMasks::set_inrec_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 75 of file L1MuDTTFMasks.cc.

75  {
76  if (check(wh, sc) == -99)
77  return;
78  inrec_chdis_st2[check(wh, sc)][sc] = val;
79 }

References RPCNoise_example::check, and heppy_batch::val.

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

◆ set_inrec_chdis_st3()

void L1MuDTTFMasks::set_inrec_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 87 of file L1MuDTTFMasks.cc.

87  {
88  if (check(wh, sc) == -99)
89  return;
90  inrec_chdis_st3[check(wh, sc)][sc] = val;
91 }

References RPCNoise_example::check, and heppy_batch::val.

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

◆ set_inrec_chdis_st4()

void L1MuDTTFMasks::set_inrec_chdis_st4 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 99 of file L1MuDTTFMasks.cc.

99  {
100  if (check(wh, sc) == -99)
101  return;
102  inrec_chdis_st4[check(wh, sc)][sc] = val;
103 }

References RPCNoise_example::check, and heppy_batch::val.

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 79 of file L1MuDTTFMasks.h.

◆ cond::serialization::access

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

Definition at line 79 of file L1MuDTTFMasks.h.

Member Data Documentation

◆ etsoc_chdis_st1

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

Definition at line 75 of file L1MuDTTFMasks.h.

◆ etsoc_chdis_st2

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

Definition at line 76 of file L1MuDTTFMasks.h.

◆ etsoc_chdis_st3

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

Definition at line 77 of file L1MuDTTFMasks.h.

◆ inrec_chdis_csc

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

Definition at line 74 of file L1MuDTTFMasks.h.

◆ inrec_chdis_st1

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

Definition at line 70 of file L1MuDTTFMasks.h.

◆ inrec_chdis_st2

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

Definition at line 71 of file L1MuDTTFMasks.h.

◆ inrec_chdis_st3

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

Definition at line 72 of file L1MuDTTFMasks.h.

◆ inrec_chdis_st4

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

Definition at line 73 of file L1MuDTTFMasks.h.

mps_fire.i
i
Definition: mps_fire.py:355
L1MuDTTFMasks::reset
void reset()
reset parameters to zero
Definition: L1MuDTTFMasks.cc:48
L1MuDTTFMasks::check
int check(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:159
L1MuDTTFMasks::etsoc_chdis_st3
bool etsoc_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:77
L1MuDTTFMasks::get_etsoc_chdis_st3
bool get_etsoc_chdis_st3(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:153
L1MuDTTFMasks::get_inrec_chdis_st1
bool get_inrec_chdis_st1(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:69
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1MuDTTFMasks::inrec_chdis_st1
bool inrec_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:70
L1MuDTTFMasks::inrec_chdis_st3
bool inrec_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:72
L1MuDTTFMasks::get_inrec_chdis_st2
bool get_inrec_chdis_st2(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:81
L1MuDTTFMasks::get_inrec_chdis_st3
bool get_inrec_chdis_st3(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:93
L1MuDTTFMasks::inrec_chdis_st4
bool inrec_chdis_st4[6][12]
Definition: L1MuDTTFMasks.h:73
L1MuDTTFMasks::get_etsoc_chdis_st2
bool get_etsoc_chdis_st2(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:141
L1MuDTTFMasks::etsoc_chdis_st2
bool etsoc_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:76
L1MuDTTFMasks::get_inrec_chdis_st4
bool get_inrec_chdis_st4(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:105
heppy_batch.val
val
Definition: heppy_batch.py:351
L1MuDTTFMasks::get_etsoc_chdis_st1
bool get_etsoc_chdis_st1(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:129
L1MuDTTFMasks::inrec_chdis_csc
bool inrec_chdis_csc[6][12]
Definition: L1MuDTTFMasks.h:74
L1MuDTTFMasks::etsoc_chdis_st1
bool etsoc_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:75
L1MuDTTFMasks::get_inrec_chdis_csc
bool get_inrec_chdis_csc(int wh, int sc) const
Definition: L1MuDTTFMasks.cc:117
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1MuDTTFMasks::inrec_chdis_st2
bool inrec_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:71