CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 40 of file L1MuDTTFMasks.h.

Constructor & Destructor Documentation

L1MuDTTFMasks::L1MuDTTFMasks ( )
inline

constructor

Definition at line 45 of file L1MuDTTFMasks.h.

References reset().

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

destructor

Definition at line 48 of file L1MuDTTFMasks.h.

48 {}

Member Function Documentation

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

Definition at line 161 of file L1MuDTTFMasks.cc.

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

Definition at line 131 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

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

Definition at line 143 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

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

Definition at line 155 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

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

Definition at line 119 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

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

Definition at line 71 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 83 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 95 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 107 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 169 of file L1MuDTTFMasks.cc.

References gather_cfg::cout, i, and j.

169  {
170 
171  cout << endl;
172  cout << "L1 barrel Track Finder Masks :" << endl;
173  cout << "==============================" << endl;
174  cout << endl;
175 
176  cout << endl;
177  cout << "Disable PHTF St.1 :" << endl;
178  cout << "===================" << endl;
179  cout << endl;
180  for( int i=-3; i<4; i++ ) {
181  if ( i == 0 ) continue;
182  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st1(i,j); }
183  cout << endl; }
184 
185  cout << endl;
186  cout << "Disable PHTF St.2 :" << endl;
187  cout << "===================" << endl;
188  cout << endl;
189  for( int i=-3; i<4; i++ ) {
190  if ( i == 0 ) continue;
191  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st2(i,j); }
192  cout << endl; }
193 
194  cout << endl;
195  cout << "Disable PHTF St.3 :" << endl;
196  cout << "===================" << endl;
197  cout << endl;
198  for( int i=-3; i<4; i++ ) {
199  if ( i == 0 ) continue;
200  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st3(i,j); }
201  cout << endl; }
202 
203  cout << endl;
204  cout << "Disable PHTF St.4 :" << endl;
205  cout << "===================" << endl;
206  cout << endl;
207  for( int i=-3; i<4; i++ ) {
208  if ( i == 0 ) continue;
209  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st4(i,j); }
210  cout << endl; }
211 
212  cout << endl;
213  cout << "Disable CSC :" << endl;
214  cout << "=============" << endl;
215  cout << endl;
216  for( int i=-3; i<4; i++ ) {
217  if ( i == 0 ) continue;
218  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_csc(i,j); }
219  cout << endl; }
220 
221  cout << endl;
222  cout << "Disable ETTF St.1 :" << endl;
223  cout << "===================" << endl;
224  cout << endl;
225  for( int i=-3; i<4; i++ ) {
226  if ( i == 0 ) continue;
227  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st1(i,j); }
228  cout << endl; }
229 
230  cout << endl;
231  cout << "Disable ETTF St.2 :" << endl;
232  cout << "===================" << endl;
233  cout << endl;
234  for( int i=-3; i<4; i++ ) {
235  if ( i == 0 ) continue;
236  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st2(i,j); }
237  cout << endl; }
238 
239  cout << endl;
240  cout << "Disable ETTF St.3 :" << endl;
241  cout << "===================" << endl;
242  cout << endl;
243  for( int i=-3; i<4; i++ ) {
244  if ( i == 0 ) continue;
245  for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st3(i,j); }
246  cout << endl; }
247 
248 }
int i
Definition: DBlmapReader.cc:9
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
int j
Definition: DBlmapReader.cc:9
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:145
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 i, and j.

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

48  {
49 
50  for( int i=0; i<6; i++ ) {
51  for( int j=0; j<12; j++ ) {
52 
53  inrec_chdis_st1[i][j] = false;
54  inrec_chdis_st2[i][j] = false;
55  inrec_chdis_st3[i][j] = false;
56  inrec_chdis_st4[i][j] = false;
57  inrec_chdis_csc[i][j] = false;
58  etsoc_chdis_st1[i][j] = false;
59  etsoc_chdis_st2[i][j] = false;
60  etsoc_chdis_st3[i][j] = false;
61  }
62  }
63 }
int i
Definition: DBlmapReader.cc:9
bool inrec_chdis_csc[6][12]
Definition: L1MuDTTFMasks.h:82
bool inrec_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:79
bool etsoc_chdis_st2[6][12]
Definition: L1MuDTTFMasks.h:84
bool etsoc_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:83
int j
Definition: DBlmapReader.cc:9
bool inrec_chdis_st1[6][12]
Definition: L1MuDTTFMasks.h:78
bool etsoc_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:85
bool inrec_chdis_st3[6][12]
Definition: L1MuDTTFMasks.h:80
bool inrec_chdis_st4[6][12]
Definition: L1MuDTTFMasks.h:81
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 125 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 137 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 149 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 113 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 65 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 77 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 89 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Definition at line 101 of file L1MuDTTFMasks.cc.

References DDVectorGetter::check().

Referenced by L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer().

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 88 of file L1MuDTTFMasks.h.

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

Definition at line 88 of file L1MuDTTFMasks.h.

Member Data Documentation

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

Definition at line 83 of file L1MuDTTFMasks.h.

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

Definition at line 84 of file L1MuDTTFMasks.h.

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

Definition at line 85 of file L1MuDTTFMasks.h.

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

Definition at line 82 of file L1MuDTTFMasks.h.

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

Definition at line 78 of file L1MuDTTFMasks.h.

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

Definition at line 79 of file L1MuDTTFMasks.h.

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

Definition at line 80 of file L1MuDTTFMasks.h.

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

Definition at line 81 of file L1MuDTTFMasks.h.