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 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

Member Function Documentation

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

Definition at line 161 of file L1MuDTTFMasks.cc.

Referenced by ~L1MuDTTFMasks().

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

Referenced by L1MuDTSectorReceiver::receiveCSCData(), and ~L1MuDTTFMasks().

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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 trackerTree::check(), and SimDataFormats::CaloAnalysis::sc.

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

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, and mps_fire::i.

Referenced by DTTFMasksTester::analyze(), L1TConfigDumper::analyze(), and ~L1MuDTTFMasks().

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 }
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
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.

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

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 }
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
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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy(), and ~L1MuDTTFMasks().

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy(), and ~L1MuDTTFMasks().

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy(), and ~L1MuDTTFMasks().

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

Referenced by L1TMuonBarrelParamsHelper::configFromPy(), and ~L1MuDTTFMasks().

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

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

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

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

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

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

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 trackerTree::check(), SimDataFormats::CaloAnalysis::sc, and heppy_batch::val.

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

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.