CMS 3D CMS Logo

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

#include <DTDeadFlag.h>

Public Types

typedef std::vector< std::pair
< DTDeadFlagId, DTDeadFlagData >
>::const_iterator 
const_iterator
 Access methods to data. More...
 

Public Member Functions

const_iterator begin () const
 
int cellStatus (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 get content More...
 
int cellStatus (const DTWireId &id, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 
void clear ()
 reset content More...
 
 DTDeadFlag ()
 
 DTDeadFlag (const std::string &version)
 
const_iterator end () const
 
int get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 
int get (const DTWireId &id, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 
bool getCellDead_HV (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_HV (const DTWireId &id) const
 
bool getCellDead_RO (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_RO (const DTWireId &id) const
 
bool getCellDead_TP (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_TP (const DTWireId &id) const
 
bool getCellDiscCat (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDiscCat (const DTWireId &id) const
 
void initialize ()
 
int set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int set (const DTWireId &id, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int setCellDead_HV (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_HV (const DTWireId &id, bool flag)
 
int setCellDead_RO (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_RO (const DTWireId &id, bool flag)
 
int setCellDead_TP (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_TP (const DTWireId &id, bool flag)
 
int setCellDiscCat (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDiscCat (const DTWireId &id, bool flag)
 
int setCellStatus (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int setCellStatus (const DTWireId &id, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
const std::string & version () const
 access version More...
 
std::string & version ()
 
 ~DTDeadFlag ()
 

Private Member Functions

 DTDeadFlag (DTDeadFlag const &)
 
std::string mapName () const
 read and store full content More...
 
DTDeadFlagoperator= (DTDeadFlag const &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< std::pair
< DTDeadFlagId, DTDeadFlagData > > 
dataList
 
std::string dataVersion
 
edm::ConstRespectingPtr
< DTBufferTree< int, int > > 
dBuf
 

Friends

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

Detailed Description

Description: Class to hold drift tubes life and HV status

Author
Paolo Ronchese INFN Padova

Definition at line 74 of file DTDeadFlag.h.

Member Typedef Documentation

Access methods to data.

Definition at line 242 of file DTDeadFlag.h.

Constructor & Destructor Documentation

DTDeadFlag::DTDeadFlag ( )

Constructor

Definition at line 27 of file DTDeadFlag.cc.

References dataList.

27  :
28  dataVersion( " " ),
30  dataList.reserve( 1000 );
31 }
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:257
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
std::string dataVersion
Definition: DTDeadFlag.h:253
DTDeadFlag::DTDeadFlag ( const std::string &  version)

Definition at line 34 of file DTDeadFlag.cc.

References dataList.

34  :
37  dataList.reserve( 1000 );
38 }
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:257
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
const std::string & version() const
access version
Definition: DTDeadFlag.cc:264
std::string dataVersion
Definition: DTDeadFlag.h:253
DTDeadFlag::~DTDeadFlag ( )

Destructor

Definition at line 62 of file DTDeadFlag.cc.

62  {
63 }
DTDeadFlag::DTDeadFlag ( DTDeadFlag const &  )
private

Member Function Documentation

DTDeadFlag::const_iterator DTDeadFlag::begin ( void  ) const

Definition at line 523 of file DTDeadFlag.cc.

References dataList.

523  {
524  return dataList.begin();
525 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
int DTDeadFlag::cellStatus ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
inline

get content

Operations

Definition at line 90 of file DTDeadFlag.h.

Referenced by setCellDead_HV(), setCellDead_RO(), setCellDead_TP(), and setCellDiscCat().

100  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
101  dead_HV, dead_TP, dead_RO, discCat ); };
int DTDeadFlag::cellStatus ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
inline

Definition at line 102 of file DTDeadFlag.h.

107  { return get( id, dead_HV, dead_TP, dead_RO, discCat ); };
void DTDeadFlag::clear ( void  )
DTDeadFlag::const_iterator DTDeadFlag::end ( void  ) const

Definition at line 528 of file DTDeadFlag.cc.

References dataList.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

528  {
529  return dataList.end();
530 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
int DTDeadFlag::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const

Definition at line 77 of file DTDeadFlag.cc.

References data, dataList, dBuf, DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, DTBufferTree< Key, Content >::find(), and edm::second().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

86  {
87 
88  dead_HV =
89  dead_TP =
90  dead_RO =
91  discCat = false;
92 
93  std::vector<int> chanKey;
94  chanKey.reserve(6);
95  chanKey.push_back( wheelId );
96  chanKey.push_back( stationId );
97  chanKey.push_back( sectorId );
98  chanKey.push_back( slId );
99  chanKey.push_back( layerId );
100  chanKey.push_back( cellId );
101  int ientry;
102  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
103  if ( !searchStatus ) {
104  const DTDeadFlagData& data( dataList[ientry].second );
105  dead_HV = data.dead_HV;
106  dead_TP = data.dead_TP;
107  dead_RO = data.dead_RO;
108  discCat = data.discCat;
109  }
110 
111  return searchStatus;
112 
113 }
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:257
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int DTDeadFlag::get ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
bool DTDeadFlag::getCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 131 of file DTDeadFlag.cc.

Referenced by getCellDead_HV().

136  {
137 
138  bool dead_HV;
139  bool dead_TP;
140  bool dead_RO;
141  bool discCat;
142  get( wheelId,
143  stationId,
144  sectorId,
145  slId,
146  layerId,
147  cellId,
148  dead_HV, dead_TP, dead_RO, discCat );
149  return dead_HV;
150 
151 }
bool DTDeadFlag::getCellDead_HV ( const DTWireId id) const

Definition at line 154 of file DTDeadFlag.cc.

References getCellDead_HV(), and relativeConstraints::station.

154  {
155  return getCellDead_HV( id.wheel(),
156  id.station(),
157  id.sector(),
158  id.superLayer(),
159  id.layer(),
160  id.wire() );
161 }
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:131
bool DTDeadFlag::getCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 197 of file DTDeadFlag.cc.

Referenced by getCellDead_RO().

202  {
203 
204  bool dead_HV;
205  bool dead_TP;
206  bool dead_RO;
207  bool discCat;
208  get( wheelId,
209  stationId,
210  sectorId,
211  slId,
212  layerId,
213  cellId,
214  dead_HV, dead_TP, dead_RO, discCat );
215  return dead_RO;
216 
217 }
bool DTDeadFlag::getCellDead_RO ( const DTWireId id) const

Definition at line 220 of file DTDeadFlag.cc.

References getCellDead_RO(), and relativeConstraints::station.

220  {
221  return getCellDead_RO( id.wheel(),
222  id.station(),
223  id.sector(),
224  id.superLayer(),
225  id.layer(),
226  id.wire() );
227 }
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:197
bool DTDeadFlag::getCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 164 of file DTDeadFlag.cc.

Referenced by getCellDead_TP().

169  {
170 
171  bool dead_HV;
172  bool dead_TP;
173  bool dead_RO;
174  bool discCat;
175  get( wheelId,
176  stationId,
177  sectorId,
178  slId,
179  layerId,
180  cellId,
181  dead_HV, dead_TP, dead_RO, discCat );
182  return dead_TP;
183 
184 }
bool DTDeadFlag::getCellDead_TP ( const DTWireId id) const

Definition at line 187 of file DTDeadFlag.cc.

References getCellDead_TP(), and relativeConstraints::station.

187  {
188  return getCellDead_TP( id.wheel(),
189  id.station(),
190  id.sector(),
191  id.superLayer(),
192  id.layer(),
193  id.wire() );
194 }
bool getCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:164
bool DTDeadFlag::getCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 230 of file DTDeadFlag.cc.

Referenced by getCellDiscCat().

235  {
236 
237  bool dead_HV;
238  bool dead_TP;
239  bool dead_RO;
240  bool discCat;
241  get( wheelId,
242  stationId,
243  sectorId,
244  slId,
245  layerId,
246  cellId,
247  dead_HV, dead_TP, dead_RO, discCat );
248  return discCat;
249 
250 }
bool DTDeadFlag::getCellDiscCat ( const DTWireId id) const

Definition at line 253 of file DTDeadFlag.cc.

References getCellDiscCat(), and relativeConstraints::station.

253  {
254  return getCellDiscCat( id.wheel(),
255  id.station(),
256  id.sector(),
257  id.superLayer(),
258  id.layer(),
259  id.wire() );
260 }
bool getCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:230
void DTDeadFlag::initialize ( )

Definition at line 540 of file DTDeadFlag.cc.

References DTBufferTree< Key, Content >::clear(), dataList, dBuf, DTBufferTree< Key, Content >::insert(), and DTDeadFlagId::stationId.

Referenced by clear().

540  {
541 
542  dBuf->clear();
543 
544  int entryNum = 0;
545  int entryMax = dataList.size();
546  std::vector<int> chanKey;
547  chanKey.reserve(6);
548  while ( entryNum < entryMax ) {
549 
550  const DTDeadFlagId& chan = dataList[entryNum].first;
551 
552  chanKey.clear();
553  chanKey.push_back( chan. wheelId );
554  chanKey.push_back( chan.stationId );
555  chanKey.push_back( chan. sectorId );
556  chanKey.push_back( chan. slId );
557  chanKey.push_back( chan. layerId );
558  chanKey.push_back( chan. cellId );
559  dBuf->insert( chanKey.begin(), chanKey.end(), entryNum++ );
560 
561  }
562 
563  return;
564 
565 }
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:257
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
int insert(ElementKey fKey, ElementKey lKey, Content cont)
std::string DTDeadFlag::mapName ( ) const
private

read and store full content

Definition at line 533 of file DTDeadFlag.cc.

References dataVersion, and mergeVDriftHistosByStation::name.

533  {
534  std::stringstream name;
535  name << dataVersion << "_map_DeadFlag" << this;
536  return name.str();
537 }
std::string dataVersion
Definition: DTDeadFlag.h:253
DTDeadFlag& DTDeadFlag::operator= ( DTDeadFlag const &  )
private
template<class Archive >
void DTDeadFlag::serialize ( Archive &  ar,
const unsigned int  version 
)
private
int DTDeadFlag::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 281 of file DTDeadFlag.cc.

References data, dataList, dBuf, DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), relval_steps::key, edm::second(), and DTDeadFlagId::stationId.

Referenced by DTDeadFlagHandler::getNewObjects(), set(), and setCellStatus().

290  {
291 
292  std::vector<int> chanKey;
293  chanKey.reserve(6);
294  chanKey.push_back( wheelId );
295  chanKey.push_back( stationId );
296  chanKey.push_back( sectorId );
297  chanKey.push_back( slId );
298  chanKey.push_back( layerId );
299  chanKey.push_back( cellId );
300  int ientry;
301  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
302 
303  if ( !searchStatus ) {
304  DTDeadFlagData& data( dataList[ientry].second );
305  data.dead_HV = dead_HV;
306  data.dead_TP = dead_TP;
307  data.dead_RO = dead_RO;
308  data.discCat = discCat;
309  return -1;
310  }
311  else {
313  key. wheelId = wheelId;
314  key.stationId = stationId;
315  key. sectorId = sectorId;
316  key. slId = slId;
317  key. layerId = layerId;
318  key. cellId = cellId;
320  data.dead_HV = dead_HV;
321  data.dead_TP = dead_TP;
322  data.dead_RO = dead_RO;
323  data.discCat = discCat;
324  ientry = dataList.size();
325  dataList.push_back( std::pair<const DTDeadFlagId,
326  DTDeadFlagData>( key, data ) );
327  dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
328  return 0;
329  }
330 
331  return 99;
332 
333 }
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:257
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:255
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int insert(ElementKey fKey, ElementKey lKey, Content cont)
int DTDeadFlag::set ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 336 of file DTDeadFlag.cc.

References set(), and relativeConstraints::station.

340  {
341  return set( id.wheel(),
342  id.station(),
343  id.sector(),
344  id.superLayer(),
345  id.layer(),
346  id.wire(),
347  dead_HV, dead_TP, dead_RO, discCat );
348 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.cc:281
int DTDeadFlag::setCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 351 of file DTDeadFlag.cc.

References cellStatus(), setCellStatus(), and mps_update::status.

Referenced by setCellDead_HV().

357  {
358 
359  bool dead_HV;
360  bool dead_TP;
361  bool dead_RO;
362  bool discCat;
363  int status = cellStatus( wheelId,
364  stationId,
365  sectorId,
366  slId,
367  layerId,
368  cellId,
369  dead_HV, dead_TP, dead_RO, discCat );
370  setCellStatus( wheelId,
371  stationId,
372  sectorId,
373  slId,
374  layerId,
375  cellId,
376  flag, dead_TP, dead_RO, discCat );
377  return status;
378 
379 }
int setCellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.h:164
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
get content
Definition: DTDeadFlag.h:90
tuple status
Definition: mps_update.py:57
int DTDeadFlag::setCellDead_HV ( const DTWireId id,
bool  flag 
)

Definition at line 382 of file DTDeadFlag.cc.

References setCellDead_HV(), and relativeConstraints::station.

383  {
384  return setCellDead_HV( id.wheel(),
385  id.station(),
386  id.sector(),
387  id.superLayer(),
388  id.layer(),
389  id.wire(),
390  flag );
391 }
int setCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:351
int DTDeadFlag::setCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 437 of file DTDeadFlag.cc.

References cellStatus(), setCellStatus(), and mps_update::status.

Referenced by setCellDead_RO().

443  {
444 
445  bool dead_HV;
446  bool dead_TP;
447  bool dead_RO;
448  bool discCat;
449  int status = cellStatus( wheelId,
450  stationId,
451  sectorId,
452  slId,
453  layerId,
454  cellId,
455  dead_HV, dead_TP, dead_RO, discCat );
456  setCellStatus( wheelId,
457  stationId,
458  sectorId,
459  slId,
460  layerId,
461  cellId,
462  dead_HV, dead_TP, flag, discCat );
463  return status;
464 
465 }
int setCellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.h:164
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
get content
Definition: DTDeadFlag.h:90
tuple status
Definition: mps_update.py:57
int DTDeadFlag::setCellDead_RO ( const DTWireId id,
bool  flag 
)

Definition at line 468 of file DTDeadFlag.cc.

References setCellDead_RO(), and relativeConstraints::station.

469  {
470  return setCellDead_RO( id.wheel(),
471  id.station(),
472  id.sector(),
473  id.superLayer(),
474  id.layer(),
475  id.wire(),
476  flag );
477 }
int setCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:437
int DTDeadFlag::setCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 394 of file DTDeadFlag.cc.

References cellStatus(), setCellStatus(), and mps_update::status.

Referenced by setCellDead_TP().

400  {
401 
402  bool dead_HV;
403  bool dead_TP;
404  bool dead_RO;
405  bool discCat;
406  int status = cellStatus( wheelId,
407  stationId,
408  sectorId,
409  slId,
410  layerId,
411  cellId,
412  dead_HV, dead_TP, dead_RO, discCat );
413  setCellStatus( wheelId,
414  stationId,
415  sectorId,
416  slId,
417  layerId,
418  cellId,
419  dead_HV, flag, dead_RO, discCat );
420  return status;
421 
422 }
int setCellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.h:164
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
get content
Definition: DTDeadFlag.h:90
tuple status
Definition: mps_update.py:57
int DTDeadFlag::setCellDead_TP ( const DTWireId id,
bool  flag 
)

Definition at line 425 of file DTDeadFlag.cc.

References setCellDead_TP(), and relativeConstraints::station.

426  {
427  return setCellDead_TP( id.wheel(),
428  id.station(),
429  id.sector(),
430  id.superLayer(),
431  id.layer(),
432  id.wire(),
433  flag );
434 }
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:394
int DTDeadFlag::setCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 480 of file DTDeadFlag.cc.

References cellStatus(), setCellStatus(), and mps_update::status.

Referenced by setCellDiscCat().

486  {
487 
488  bool dead_HV;
489  bool dead_TP;
490  bool dead_RO;
491  bool discCat;
492  int status = cellStatus( wheelId,
493  stationId,
494  sectorId,
495  slId,
496  layerId,
497  cellId,
498  dead_HV, dead_TP, dead_RO, discCat );
499  setCellStatus( wheelId,
500  stationId,
501  sectorId,
502  slId,
503  layerId,
504  cellId,
505  dead_HV, dead_TP, dead_RO, flag );
506  return status;
507 
508 }
int setCellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.h:164
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
get content
Definition: DTDeadFlag.h:90
tuple status
Definition: mps_update.py:57
int DTDeadFlag::setCellDiscCat ( const DTWireId id,
bool  flag 
)

Definition at line 511 of file DTDeadFlag.cc.

References setCellDiscCat(), and relativeConstraints::station.

512  {
513  return setCellDiscCat( id.wheel(),
514  id.station(),
515  id.sector(),
516  id.superLayer(),
517  id.layer(),
518  id.wire(),
519  flag );
520 }
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:480
int DTDeadFlag::setCellStatus ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)
inline

Definition at line 164 of file DTDeadFlag.h.

References set().

Referenced by setCellDead_HV(), setCellDead_RO(), setCellDead_TP(), and setCellDiscCat().

174  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
175  dead_HV, dead_TP, dead_RO, discCat ); };
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.cc:281
int DTDeadFlag::setCellStatus ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)
inline

Definition at line 176 of file DTDeadFlag.h.

References set().

181  { return set( id, dead_HV, dead_TP, dead_RO, discCat ); };
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
Definition: DTDeadFlag.cc:281
const std::string & DTDeadFlag::version ( ) const

access version

Definition at line 264 of file DTDeadFlag.cc.

References dataVersion.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

264  {
265  return dataVersion;
266 }
std::string dataVersion
Definition: DTDeadFlag.h:253
std::string & DTDeadFlag::version ( )

Definition at line 269 of file DTDeadFlag.cc.

References dataVersion.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

269  {
270  return dataVersion;
271 }
std::string dataVersion
Definition: DTDeadFlag.h:253

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 263 of file DTDeadFlag.h.

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

Definition at line 263 of file DTDeadFlag.h.

Member Data Documentation

std::vector< std::pair<DTDeadFlagId,DTDeadFlagData> > DTDeadFlag::dataList
private

Definition at line 255 of file DTDeadFlag.h.

Referenced by begin(), clear(), DTDeadFlag(), end(), get(), initialize(), and set().

std::string DTDeadFlag::dataVersion
private

Definition at line 253 of file DTDeadFlag.h.

Referenced by mapName(), and version().

edm::ConstRespectingPtr<DTBufferTree<int,int> > DTDeadFlag::dBuf
private

Definition at line 257 of file DTDeadFlag.h.

Referenced by get(), initialize(), and set().