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

void cacheMap () const
 read and store full content More...
 
std::string mapName () const
 

Private Attributes

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

Detailed Description

Description: Class to hold drift tubes life and HV status

Date:
2010/01/20 18:20:07
Revision:
1.5
Author
Paolo Ronchese INFN Padova

Definition at line 67 of file DTDeadFlag.h.

Member Typedef Documentation

Access methods to data.

Definition at line 235 of file DTDeadFlag.h.

Constructor & Destructor Documentation

DTDeadFlag::DTDeadFlag ( )

Constructor

Definition at line 29 of file DTDeadFlag.cc.

References dataList, and dBuf.

29  :
30  dataVersion( " " ) {
31  dataList.reserve( 1000 );
32  dBuf = 0;
33 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
std::string dataVersion
Definition: DTDeadFlag.h:241
DTDeadFlag::DTDeadFlag ( const std::string &  version)

Definition at line 36 of file DTDeadFlag.cc.

References dataList, and dBuf.

36  :
37  dataVersion( version ) {
38  dataList.reserve( 1000 );
39  dBuf = 0;
40 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
const std::string & version() const
access version
Definition: DTDeadFlag.cc:277
std::string dataVersion
Definition: DTDeadFlag.h:241
DTDeadFlag::~DTDeadFlag ( )

Destructor

Definition at line 64 of file DTDeadFlag.cc.

References dBuf.

64  {
65 // DTDataBuffer<int,int>::dropBuffer( mapName() );
66  delete dBuf;
67 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245

Member Function Documentation

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

Definition at line 547 of file DTDeadFlag.cc.

References dataList.

547  {
548  return dataList.begin();
549 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
void DTDeadFlag::cacheMap ( ) const
private

read and store full content

Definition at line 564 of file DTDeadFlag.cc.

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

Referenced by get(), and set().

564  {
565 
566 // std::string mName = mapName();
567 // DTBufferTree<int,int>* dBuf =
568 // DTDataBuffer<int,int>::openBuffer( mName );
569  DTBufferTree<int,int>** pBuf;
570  pBuf = const_cast<DTBufferTree<int,int>**>( &dBuf );
571  *pBuf = new DTBufferTree<int,int>;
572 
573  int entryNum = 0;
574  int entryMax = dataList.size();
575  std::vector<int> chanKey;
576  chanKey.reserve(6);
577  while ( entryNum < entryMax ) {
578 
579  const DTDeadFlagId& chan = dataList[entryNum].first;
580 
581  chanKey.clear();
582  chanKey.push_back( chan. wheelId );
583  chanKey.push_back( chan.stationId );
584  chanKey.push_back( chan. sectorId );
585  chanKey.push_back( chan. slId );
586  chanKey.push_back( chan. layerId );
587  chanKey.push_back( chan. cellId );
588  dBuf->insert( chanKey.begin(), chanKey.end(), entryNum++ );
589 
590  }
591 
592  return;
593 
594 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
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 83 of file DTDeadFlag.h.

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

93  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
94  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 95 of file DTDeadFlag.h.

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

Definition at line 552 of file DTDeadFlag.cc.

References dataList.

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

552  {
553  return dataList.end();
554 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
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 81 of file DTDeadFlag.cc.

References cacheMap(), 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(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

90  {
91 
92  dead_HV =
93  dead_TP =
94  dead_RO =
95  discCat = false;
96 
97 // std::string mName = mapName();
98 // DTBufferTree<int,int>* dBuf =
99 // DTDataBuffer<int,int>::findBuffer( mName );
100 // if ( dBuf == 0 ) {
101 // cacheMap();
102 // dBuf =
103 // DTDataBuffer<int,int>::findBuffer( mName );
104 // }
105  if ( dBuf == 0 ) cacheMap();
106  std::vector<int> chanKey;
107  chanKey.reserve(6);
108  chanKey.push_back( wheelId );
109  chanKey.push_back( stationId );
110  chanKey.push_back( sectorId );
111  chanKey.push_back( slId );
112  chanKey.push_back( layerId );
113  chanKey.push_back( cellId );
114  int ientry;
115  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
116  if ( !searchStatus ) {
117  const DTDeadFlagData& data( dataList[ientry].second );
118  dead_HV = data.dead_HV;
119  dead_TP = data.dead_TP;
120  dead_RO = data.dead_RO;
121  discCat = data.discCat;
122  }
123 
124  return searchStatus;
125 
126 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
U second(std::pair< T, U > const &p)
void cacheMap() const
read and store full content
Definition: DTDeadFlag.cc:564
int find(ElementKey fKey, ElementKey lKey, Content &cont)
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

Definition at line 129 of file DTDeadFlag.cc.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

133  {
134  return get( id.wheel(),
135  id.station(),
136  id.sector(),
137  id.superLayer(),
138  id.layer(),
139  id.wire(),
140  dead_HV, dead_TP, dead_RO, discCat );
141 }
bool DTDeadFlag::getCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 144 of file DTDeadFlag.cc.

Referenced by getCellDead_HV().

149  {
150 
151  bool dead_HV;
152  bool dead_TP;
153  bool dead_RO;
154  bool discCat;
155  get( wheelId,
156  stationId,
157  sectorId,
158  slId,
159  layerId,
160  cellId,
161  dead_HV, dead_TP, dead_RO, discCat );
162  return dead_HV;
163 
164 }
bool DTDeadFlag::getCellDead_HV ( const DTWireId id) const

Definition at line 167 of file DTDeadFlag.cc.

References getCellDead_HV(), and relativeConstraints::station.

167  {
168  return getCellDead_HV( id.wheel(),
169  id.station(),
170  id.sector(),
171  id.superLayer(),
172  id.layer(),
173  id.wire() );
174 }
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:144
bool DTDeadFlag::getCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 210 of file DTDeadFlag.cc.

Referenced by getCellDead_RO().

215  {
216 
217  bool dead_HV;
218  bool dead_TP;
219  bool dead_RO;
220  bool discCat;
221  get( wheelId,
222  stationId,
223  sectorId,
224  slId,
225  layerId,
226  cellId,
227  dead_HV, dead_TP, dead_RO, discCat );
228  return dead_RO;
229 
230 }
bool DTDeadFlag::getCellDead_RO ( const DTWireId id) const

Definition at line 233 of file DTDeadFlag.cc.

References getCellDead_RO(), and relativeConstraints::station.

233  {
234  return getCellDead_RO( id.wheel(),
235  id.station(),
236  id.sector(),
237  id.superLayer(),
238  id.layer(),
239  id.wire() );
240 }
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:210
bool DTDeadFlag::getCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 177 of file DTDeadFlag.cc.

Referenced by getCellDead_TP().

182  {
183 
184  bool dead_HV;
185  bool dead_TP;
186  bool dead_RO;
187  bool discCat;
188  get( wheelId,
189  stationId,
190  sectorId,
191  slId,
192  layerId,
193  cellId,
194  dead_HV, dead_TP, dead_RO, discCat );
195  return dead_TP;
196 
197 }
bool DTDeadFlag::getCellDead_TP ( const DTWireId id) const

Definition at line 200 of file DTDeadFlag.cc.

References getCellDead_TP(), and relativeConstraints::station.

200  {
201  return getCellDead_TP( id.wheel(),
202  id.station(),
203  id.sector(),
204  id.superLayer(),
205  id.layer(),
206  id.wire() );
207 }
bool getCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:177
bool DTDeadFlag::getCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 243 of file DTDeadFlag.cc.

Referenced by getCellDiscCat().

248  {
249 
250  bool dead_HV;
251  bool dead_TP;
252  bool dead_RO;
253  bool discCat;
254  get( wheelId,
255  stationId,
256  sectorId,
257  slId,
258  layerId,
259  cellId,
260  dead_HV, dead_TP, dead_RO, discCat );
261  return discCat;
262 
263 }
bool DTDeadFlag::getCellDiscCat ( const DTWireId id) const

Definition at line 266 of file DTDeadFlag.cc.

References getCellDiscCat(), and relativeConstraints::station.

266  {
267  return getCellDiscCat( id.wheel(),
268  id.station(),
269  id.sector(),
270  id.superLayer(),
271  id.layer(),
272  id.wire() );
273 }
bool getCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:243
std::string DTDeadFlag::mapName ( ) const
private

Definition at line 557 of file DTDeadFlag.cc.

References dataVersion, and mergeVDriftHistosByStation::name.

557  {
558  std::stringstream name;
559  name << dataVersion << "_map_DeadFlag" << this;
560  return name.str();
561 }
std::string dataVersion
Definition: DTDeadFlag.h:241
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 296 of file DTDeadFlag.cc.

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

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

305  {
306 
307 // std::string mName = mapName();
308 // DTBufferTree<int,int>* dBuf =
309 // DTDataBuffer<int,int>::findBuffer( mName );
310 // if ( dBuf == 0 ) {
311 // cacheMap();
312 // dBuf =
313 // DTDataBuffer<int,int>::findBuffer( mName );
314 // }
315  if ( dBuf == 0 ) cacheMap();
316  std::vector<int> chanKey;
317  chanKey.reserve(6);
318  chanKey.push_back( wheelId );
319  chanKey.push_back( stationId );
320  chanKey.push_back( sectorId );
321  chanKey.push_back( slId );
322  chanKey.push_back( layerId );
323  chanKey.push_back( cellId );
324  int ientry;
325  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
326 
327  if ( !searchStatus ) {
328  DTDeadFlagData& data( dataList[ientry].second );
329  data.dead_HV = dead_HV;
330  data.dead_TP = dead_TP;
331  data.dead_RO = dead_RO;
332  data.discCat = discCat;
333  return -1;
334  }
335  else {
337  key. wheelId = wheelId;
338  key.stationId = stationId;
339  key. sectorId = sectorId;
340  key. slId = slId;
341  key. layerId = layerId;
342  key. cellId = cellId;
344  data.dead_HV = dead_HV;
345  data.dead_TP = dead_TP;
346  data.dead_RO = dead_RO;
347  data.discCat = discCat;
348  ientry = dataList.size();
349  dataList.push_back( std::pair<const DTDeadFlagId,
350  DTDeadFlagData>( key, data ) );
351  dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
352  return 0;
353  }
354 
355  return 99;
356 
357 }
DTBufferTree< int, int > * dBuf
Definition: DTDeadFlag.h:245
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:243
U second(std::pair< T, U > const &p)
void cacheMap() const
read and store full content
Definition: DTDeadFlag.cc:564
int find(ElementKey fKey, ElementKey lKey, Content &cont)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
list key
Definition: combine.py:13
int DTDeadFlag::set ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 360 of file DTDeadFlag.cc.

References set(), and relativeConstraints::station.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

364  {
365  return set( id.wheel(),
366  id.station(),
367  id.sector(),
368  id.superLayer(),
369  id.layer(),
370  id.wire(),
371  dead_HV, dead_TP, dead_RO, discCat );
372 }
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:296
int DTDeadFlag::setCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 375 of file DTDeadFlag.cc.

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

Referenced by setCellDead_HV().

381  {
382 
383  bool dead_HV;
384  bool dead_TP;
385  bool dead_RO;
386  bool discCat;
387  int status = cellStatus( wheelId,
388  stationId,
389  sectorId,
390  slId,
391  layerId,
392  cellId,
393  dead_HV, dead_TP, dead_RO, discCat );
394  setCellStatus( wheelId,
395  stationId,
396  sectorId,
397  slId,
398  layerId,
399  cellId,
400  flag, dead_TP, dead_RO, discCat );
401  return status;
402 
403 }
long int flag
Definition: mlp_lapack.h:47
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:157
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:83
tuple status
Definition: ntuplemaker.py:245
int DTDeadFlag::setCellDead_HV ( const DTWireId id,
bool  flag 
)

Definition at line 406 of file DTDeadFlag.cc.

References setCellDead_HV(), and relativeConstraints::station.

407  {
408  return setCellDead_HV( id.wheel(),
409  id.station(),
410  id.sector(),
411  id.superLayer(),
412  id.layer(),
413  id.wire(),
414  flag );
415 }
long int flag
Definition: mlp_lapack.h:47
int setCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:375
int DTDeadFlag::setCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 461 of file DTDeadFlag.cc.

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

Referenced by setCellDead_RO().

467  {
468 
469  bool dead_HV;
470  bool dead_TP;
471  bool dead_RO;
472  bool discCat;
473  int status = cellStatus( wheelId,
474  stationId,
475  sectorId,
476  slId,
477  layerId,
478  cellId,
479  dead_HV, dead_TP, dead_RO, discCat );
480  setCellStatus( wheelId,
481  stationId,
482  sectorId,
483  slId,
484  layerId,
485  cellId,
486  dead_HV, dead_TP, flag, discCat );
487  return status;
488 
489 }
long int flag
Definition: mlp_lapack.h:47
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:157
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:83
tuple status
Definition: ntuplemaker.py:245
int DTDeadFlag::setCellDead_RO ( const DTWireId id,
bool  flag 
)

Definition at line 492 of file DTDeadFlag.cc.

References setCellDead_RO(), and relativeConstraints::station.

493  {
494  return setCellDead_RO( id.wheel(),
495  id.station(),
496  id.sector(),
497  id.superLayer(),
498  id.layer(),
499  id.wire(),
500  flag );
501 }
long int flag
Definition: mlp_lapack.h:47
int setCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:461
int DTDeadFlag::setCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 418 of file DTDeadFlag.cc.

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

Referenced by setCellDead_TP().

424  {
425 
426  bool dead_HV;
427  bool dead_TP;
428  bool dead_RO;
429  bool discCat;
430  int status = cellStatus( wheelId,
431  stationId,
432  sectorId,
433  slId,
434  layerId,
435  cellId,
436  dead_HV, dead_TP, dead_RO, discCat );
437  setCellStatus( wheelId,
438  stationId,
439  sectorId,
440  slId,
441  layerId,
442  cellId,
443  dead_HV, flag, dead_RO, discCat );
444  return status;
445 
446 }
long int flag
Definition: mlp_lapack.h:47
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:157
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:83
tuple status
Definition: ntuplemaker.py:245
int DTDeadFlag::setCellDead_TP ( const DTWireId id,
bool  flag 
)

Definition at line 449 of file DTDeadFlag.cc.

References setCellDead_TP(), and relativeConstraints::station.

450  {
451  return setCellDead_TP( id.wheel(),
452  id.station(),
453  id.sector(),
454  id.superLayer(),
455  id.layer(),
456  id.wire(),
457  flag );
458 }
long int flag
Definition: mlp_lapack.h:47
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:418
int DTDeadFlag::setCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 504 of file DTDeadFlag.cc.

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

Referenced by setCellDiscCat().

510  {
511 
512  bool dead_HV;
513  bool dead_TP;
514  bool dead_RO;
515  bool discCat;
516  int status = cellStatus( wheelId,
517  stationId,
518  sectorId,
519  slId,
520  layerId,
521  cellId,
522  dead_HV, dead_TP, dead_RO, discCat );
523  setCellStatus( wheelId,
524  stationId,
525  sectorId,
526  slId,
527  layerId,
528  cellId,
529  dead_HV, dead_TP, dead_RO, flag );
530  return status;
531 
532 }
long int flag
Definition: mlp_lapack.h:47
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:157
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:83
tuple status
Definition: ntuplemaker.py:245
int DTDeadFlag::setCellDiscCat ( const DTWireId id,
bool  flag 
)

Definition at line 535 of file DTDeadFlag.cc.

References setCellDiscCat(), and relativeConstraints::station.

536  {
537  return setCellDiscCat( id.wheel(),
538  id.station(),
539  id.sector(),
540  id.superLayer(),
541  id.layer(),
542  id.wire(),
543  flag );
544 }
long int flag
Definition: mlp_lapack.h:47
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:504
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 157 of file DTDeadFlag.h.

References set().

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

167  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
168  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:296
int DTDeadFlag::setCellStatus ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)
inline

Definition at line 169 of file DTDeadFlag.h.

References set().

174  { 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:296
const std::string & DTDeadFlag::version ( ) const

access version

Definition at line 277 of file DTDeadFlag.cc.

References dataVersion.

277  {
278  return dataVersion;
279 }
std::string dataVersion
Definition: DTDeadFlag.h:241
std::string & DTDeadFlag::version ( )

Definition at line 282 of file DTDeadFlag.cc.

References dataVersion.

282  {
283  return dataVersion;
284 }
std::string dataVersion
Definition: DTDeadFlag.h:241

Member Data Documentation

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

Definition at line 243 of file DTDeadFlag.h.

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

std::string DTDeadFlag::dataVersion
private

Definition at line 241 of file DTDeadFlag.h.

Referenced by mapName(), and version().

DTBufferTree<int,int>* DTDeadFlag::dBuf
private

Definition at line 245 of file DTDeadFlag.h.

Referenced by cacheMap(), clear(), DTDeadFlag(), get(), set(), and ~DTDeadFlag().