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
DTStatusFlag Class Reference

#include <DTStatusFlag.h>

Public Types

typedef std::vector< std::pair
< DTStatusFlagId,
DTStatusFlagData >
>::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 &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
 get content More...
 
int cellStatus (const DTWireId &id, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
 
void clear ()
 reset content More...
 
 DTStatusFlag ()
 
 DTStatusFlag (const std::string &version)
 
const_iterator end () const
 
int get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
 
int get (const DTWireId &id, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
 
int set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
 
int set (const DTWireId &id, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
 
int setCellDead (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead (const DTWireId &id, bool flag)
 
int setCellFEMask (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
 
int setCellFEMask (const DTWireId &id, bool mask)
 
int setCellNoHV (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellNoHV (const DTWireId &id, bool flag)
 
int setCellNoise (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellNoise (const DTWireId &id, bool flag)
 
int setCellStatus (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
 
int setCellStatus (const DTWireId &id, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
 
int setCellTDCMask (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
 
int setCellTDCMask (const DTWireId &id, bool mask)
 
int setCellTrigMask (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
 
int setCellTrigMask (const DTWireId &id, bool mask)
 
const std::string & version () const
 access version More...
 
std::string & version ()
 
 ~DTStatusFlag ()
 

Private Member Functions

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

Private Attributes

std::vector< std::pair
< DTStatusFlagId,
DTStatusFlagData > > 
dataList
 
std::string dataVersion
 
DTBufferTree< int, int > * dBuf
 

Detailed Description

Description: Class to hold drift tubes status ( cell by cell noise and masks )

Date:
2010/01/20 18:20:08
Revision:
1.6
Author
Paolo Ronchese INFN Padova

Definition at line 77 of file DTStatusFlag.h.

Member Typedef Documentation

Access methods to data.

Definition at line 255 of file DTStatusFlag.h.

Constructor & Destructor Documentation

DTStatusFlag::DTStatusFlag ( )

Constructor

Definition at line 29 of file DTStatusFlag.cc.

References dataList, and dBuf.

29  :
30  dataVersion( " " ) {
31  dataList.reserve( 1000 );
32  dBuf = 0;
33 }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
std::string dataVersion
Definition: DTStatusFlag.h:261
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265
DTStatusFlag::DTStatusFlag ( const std::string &  version)

Definition at line 36 of file DTStatusFlag.cc.

References dataList, and dBuf.

36  :
37  dataVersion( version ) {
38  dataList.reserve( 1000 );
39  dBuf = 0;
40 }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
std::string dataVersion
Definition: DTStatusFlag.h:261
const std::string & version() const
access version
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265
DTStatusFlag::~DTStatusFlag ( )

Destructor

Definition at line 66 of file DTStatusFlag.cc.

References dBuf.

66  {
67 // DTDataBuffer<int,int>::dropBuffer( mapName() );
68  delete dBuf;
69 }
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265

Member Function Documentation

DTStatusFlag::const_iterator DTStatusFlag::begin ( void  ) const

Definition at line 594 of file DTStatusFlag.cc.

References dataList.

594  {
595  return dataList.begin();
596 }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
void DTStatusFlag::cacheMap ( ) const
private

read and store full content

Definition at line 611 of file DTStatusFlag.cc.

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

Referenced by get(), and set().

611  {
612 
613 // std::string mName = mapName();
614 // DTBufferTree<int,int>* dBuf =
615 // DTDataBuffer<int,int>::openBuffer( mName );
616  DTBufferTree<int,int>** pBuf;
617  pBuf = const_cast<DTBufferTree<int,int>**>( &dBuf );
618  *pBuf = new DTBufferTree<int,int>;
619 
620  int entryNum = 0;
621  int entryMax = dataList.size();
622  std::vector<int> chanKey;
623  chanKey.reserve(6);
624  while ( entryNum < entryMax ) {
625 
626  const DTStatusFlagId& chan = dataList[entryNum].first;
627 
628  chanKey.clear();
629  chanKey.push_back( chan. wheelId );
630  chanKey.push_back( chan.stationId );
631  chanKey.push_back( chan. sectorId );
632  chanKey.push_back( chan. slId );
633  chanKey.push_back( chan. layerId );
634  chanKey.push_back( chan. cellId );
635  dBuf->insert( chanKey.begin(), chanKey.end(), entryNum++ );
636 
637  }
638 
639  return;
640 
641 }
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265
int DTStatusFlag::cellStatus ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool &  noiseFlag,
bool &  feMask,
bool &  tdcMask,
bool &  trigMask,
bool &  deadFlag,
bool &  nohvFlag 
) const
inline

get content

Operations

Definition at line 93 of file DTStatusFlag.h.

105  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
106  noiseFlag, feMask, tdcMask, trigMask,
107  deadFlag, nohvFlag); };
int DTStatusFlag::cellStatus ( const DTWireId id,
bool &  noiseFlag,
bool &  feMask,
bool &  tdcMask,
bool &  trigMask,
bool &  deadFlag,
bool &  nohvFlag 
) const
inline

Definition at line 108 of file DTStatusFlag.h.

References errorMatrix2Lands_multiChannel::id.

115  { return get( id,
116  noiseFlag, feMask, tdcMask, trigMask,
117  deadFlag, nohvFlag ); };
void DTStatusFlag::clear ( void  )
DTStatusFlag::const_iterator DTStatusFlag::end ( void  ) const

Definition at line 599 of file DTStatusFlag.cc.

References dataList.

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

599  {
600  return dataList.end();
601 }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
int DTStatusFlag::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool &  noiseFlag,
bool &  feMask,
bool &  tdcMask,
bool &  trigMask,
bool &  deadFlag,
bool &  nohvFlag 
) const

Definition at line 83 of file DTStatusFlag.cc.

References cacheMap(), data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTStatusFlagData::noiseFlag, and edm::second().

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

94  {
95 
96  noiseFlag =
97  feMask =
98  tdcMask =
99  trigMask =
100  deadFlag =
101  nohvFlag = false;
102 
103 // std::string mName = mapName();
104 // DTBufferTree<int,int>* dBuf =
105 // DTDataBuffer<int,int>::findBuffer( mName );
106 // if ( dBuf == 0 ) {
107 // cacheMap();
108 // dBuf =
109 // DTDataBuffer<int,int>::findBuffer( mName );
110 // }
111  if ( dBuf == 0 ) cacheMap();
112 
113  std::vector<int> chanKey;
114  chanKey.reserve(6);
115  chanKey.push_back( wheelId );
116  chanKey.push_back( stationId );
117  chanKey.push_back( sectorId );
118  chanKey.push_back( slId );
119  chanKey.push_back( layerId );
120  chanKey.push_back( cellId );
121  int ientry;
122  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
123  if ( !searchStatus ) {
124  const DTStatusFlagData& data( dataList[ientry].second );
125  noiseFlag = data.noiseFlag;
126  feMask = data. feMask;
127  tdcMask = data. tdcMask;
128  trigMask = data. trigMask;
129  deadFlag = data. deadFlag;
130  nohvFlag = data. nohvFlag;
131  }
132 
133  return searchStatus;
134 
135 }
U second(std::pair< T, U > const &p)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
void cacheMap() const
read and store full content
int find(ElementKey fKey, ElementKey lKey, Content &cont)
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int DTStatusFlag::get ( const DTWireId id,
bool &  noiseFlag,
bool &  feMask,
bool &  tdcMask,
bool &  trigMask,
bool &  deadFlag,
bool &  nohvFlag 
) const

Definition at line 138 of file DTStatusFlag.cc.

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

144  {
145  return get( id.wheel(),
146  id.station(),
147  id.sector(),
148  id.superLayer(),
149  id.layer(),
150  id.wire(),
151  noiseFlag, feMask, tdcMask,
152  trigMask, deadFlag, nohvFlag );
153 }
std::string DTStatusFlag::mapName ( ) const
private

Definition at line 604 of file DTStatusFlag.cc.

References dataVersion, and mergeVDriftHistosByStation::name.

604  {
605  std::stringstream name;
606  name << dataVersion << "_map_StatusFlag" << this;
607  return name.str();
608 }
std::string dataVersion
Definition: DTStatusFlag.h:261
int DTStatusFlag::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  noiseFlag,
bool  feMask,
bool  tdcMask,
bool  trigMask,
bool  deadFlag,
bool  nohvFlag 
)

Definition at line 176 of file DTStatusFlag.cc.

References cacheMap(), data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), combine::key, DTStatusFlagData::noiseFlag, edm::second(), and DTStatusFlagId::stationId.

Referenced by betterConfigParser.BetterConfigParser::getGeneral(), DTStatusFlagHandler::getNewObjects(), set(), setCellDead(), setCellFEMask(), setCellNoHV(), setCellNoise(), setCellStatus(), setCellTDCMask(), and setCellTrigMask().

187  {
188 
189 // std::string mName = mapName();
190 // DTBufferTree<int,int>* dBuf =
191 // DTDataBuffer<int,int>::findBuffer( mName );
192 // if ( dBuf == 0 ) {
193 // cacheMap();
194 // dBuf =
195 // DTDataBuffer<int,int>::findBuffer( mName );
196 // }
197  if ( dBuf == 0 ) cacheMap();
198  std::vector<int> chanKey;
199  chanKey.reserve(6);
200  chanKey.push_back( wheelId );
201  chanKey.push_back( stationId );
202  chanKey.push_back( sectorId );
203  chanKey.push_back( slId );
204  chanKey.push_back( layerId );
205  chanKey.push_back( cellId );
206  int ientry;
207  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
208 
209  if ( !searchStatus ) {
210  DTStatusFlagData& data( dataList[ientry].second );
211  data.noiseFlag = noiseFlag;
212  data. feMask = feMask;
213  data. tdcMask = tdcMask;
214  data. trigMask = trigMask;
215  data. deadFlag = deadFlag;
216  data. nohvFlag = nohvFlag;
217  return -1;
218  }
219  else {
221  key. wheelId = wheelId;
222  key.stationId = stationId;
223  key. sectorId = sectorId;
224  key. slId = slId;
225  key. layerId = layerId;
226  key. cellId = cellId;
228  data.noiseFlag = noiseFlag;
229  data. feMask = feMask;
230  data. tdcMask = tdcMask;
231  data. trigMask = trigMask;
232  data. deadFlag = deadFlag;
233  data. nohvFlag = nohvFlag;
234  ientry = dataList.size();
235  dataList.push_back( std::pair<const DTStatusFlagId,
236  DTStatusFlagData>( key, data ) );
237  dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
238  return 0;
239  }
240 
241  return 99;
242 
243 }
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
U second(std::pair< T, U > const &p)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:263
void cacheMap() const
read and store full content
int find(ElementKey fKey, ElementKey lKey, Content &cont)
DTBufferTree< int, int > * dBuf
Definition: DTStatusFlag.h:265
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
list key
Definition: combine.py:13
int DTStatusFlag::set ( const DTWireId id,
bool  noiseFlag,
bool  feMask,
bool  tdcMask,
bool  trigMask,
bool  deadFlag,
bool  nohvFlag 
)

Definition at line 246 of file DTStatusFlag.cc.

References set(), and relativeConstraints::station.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

252  {
253  return set( id.wheel(),
254  id.station(),
255  id.sector(),
256  id.superLayer(),
257  id.layer(),
258  id.wire(),
259  noiseFlag, feMask, tdcMask,
260  trigMask, deadFlag, nohvFlag );
261 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
int DTStatusFlag::setCellDead ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 484 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by setCellDead().

490  {
491 
492  bool noiseFlag;
493  bool feMask;
494  bool tdcMask;
495  bool trigMask;
496  bool deadFlag;
497  bool nohvFlag;
498  int status = get( wheelId,
499  stationId,
500  sectorId,
501  slId,
502  layerId,
503  cellId,
504  noiseFlag,
505  feMask,
506  tdcMask,
507  trigMask,
508  deadFlag,
509  nohvFlag );
510  set( wheelId,
511  stationId,
512  sectorId,
513  slId,
514  layerId,
515  cellId,
516  noiseFlag,
517  feMask,
518  tdcMask,
519  trigMask,
520  flag,
521  nohvFlag );
522  return status;
523 
524 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
long int flag
Definition: mlp_lapack.h:47
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellDead ( const DTWireId id,
bool  flag 
)

Definition at line 527 of file DTStatusFlag.cc.

References setCellDead(), and relativeConstraints::station.

528  {
529  return setCellDead( id.wheel(),
530  id.station(),
531  id.sector(),
532  id.superLayer(),
533  id.layer(),
534  id.wire(),
535  flag );
536 }
long int flag
Definition: mlp_lapack.h:47
int setCellDead(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int DTStatusFlag::setCellFEMask ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  mask 
)

Definition at line 319 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by setCellFEMask().

325  {
326 
327  bool noiseFlag;
328  bool feMask;
329  bool tdcMask;
330  bool trigMask;
331  bool deadFlag;
332  bool nohvFlag;
333  int status = get( wheelId,
334  stationId,
335  sectorId,
336  slId,
337  layerId,
338  cellId,
339  noiseFlag,
340  feMask,
341  tdcMask,
342  trigMask,
343  deadFlag,
344  nohvFlag );
345  set( wheelId,
346  stationId,
347  sectorId,
348  slId,
349  layerId,
350  cellId,
351  noiseFlag,
352  mask,
353  tdcMask,
354  trigMask,
355  deadFlag,
356  nohvFlag );
357  return status;
358 
359 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellFEMask ( const DTWireId id,
bool  mask 
)

Definition at line 362 of file DTStatusFlag.cc.

References setCellFEMask(), and relativeConstraints::station.

363  {
364  return setCellFEMask( id.wheel(),
365  id.station(),
366  id.sector(),
367  id.superLayer(),
368  id.layer(),
369  id.wire(),
370  mask );
371 }
int setCellFEMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
int DTStatusFlag::setCellNoHV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 539 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by setCellNoHV().

545  {
546 
547  bool noiseFlag;
548  bool feMask;
549  bool tdcMask;
550  bool trigMask;
551  bool deadFlag;
552  bool nohvFlag;
553  int status = get( wheelId,
554  stationId,
555  sectorId,
556  slId,
557  layerId,
558  cellId,
559  noiseFlag,
560  feMask,
561  tdcMask,
562  trigMask,
563  deadFlag,
564  nohvFlag );
565  set( wheelId,
566  stationId,
567  sectorId,
568  slId,
569  layerId,
570  cellId,
571  noiseFlag,
572  feMask,
573  tdcMask,
574  trigMask,
575  deadFlag,
576  flag );
577  return status;
578 
579 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
long int flag
Definition: mlp_lapack.h:47
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellNoHV ( const DTWireId id,
bool  flag 
)

Definition at line 582 of file DTStatusFlag.cc.

References setCellNoHV(), and relativeConstraints::station.

583  {
584  return setCellNoHV( id.wheel(),
585  id.station(),
586  id.sector(),
587  id.superLayer(),
588  id.layer(),
589  id.wire(),
590  flag );
591 }
long int flag
Definition: mlp_lapack.h:47
int setCellNoHV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int DTStatusFlag::setCellNoise ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 264 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by DTNoiseCalibration::endJob(), and setCellNoise().

270  {
271 
272  bool noiseFlag;
273  bool feMask;
274  bool tdcMask;
275  bool trigMask;
276  bool deadFlag;
277  bool nohvFlag;
278  int status = get( wheelId,
279  stationId,
280  sectorId,
281  slId,
282  layerId,
283  cellId,
284  noiseFlag,
285  feMask,
286  tdcMask,
287  trigMask,
288  deadFlag,
289  nohvFlag );
290  set( wheelId,
291  stationId,
292  sectorId,
293  slId,
294  layerId,
295  cellId,
296  flag,
297  feMask,
298  tdcMask,
299  trigMask,
300  deadFlag,
301  nohvFlag );
302  return status;
303 
304 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
long int flag
Definition: mlp_lapack.h:47
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellNoise ( const DTWireId id,
bool  flag 
)

Definition at line 307 of file DTStatusFlag.cc.

References setCellNoise(), and relativeConstraints::station.

308  {
309  return setCellNoise( id.wheel(),
310  id.station(),
311  id.sector(),
312  id.superLayer(),
313  id.layer(),
314  id.wire(),
315  flag );
316 }
long int flag
Definition: mlp_lapack.h:47
int setCellNoise(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int DTStatusFlag::setCellStatus ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  noiseFlag,
bool  feMask,
bool  tdcMask,
bool  trigMask,
bool  deadFlag,
bool  nohvFlag 
)
inline

Definition at line 146 of file DTStatusFlag.h.

References set().

158  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
159  noiseFlag, feMask, tdcMask, trigMask,
160  deadFlag, nohvFlag); };
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
int DTStatusFlag::setCellStatus ( const DTWireId id,
bool  noiseFlag,
bool  feMask,
bool  tdcMask,
bool  trigMask,
bool  deadFlag,
bool  nohvFlag 
)
inline

Definition at line 161 of file DTStatusFlag.h.

References set().

168  { return set( id,
169  noiseFlag, feMask, tdcMask, trigMask,
170  deadFlag, nohvFlag ); };
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
int DTStatusFlag::setCellTDCMask ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  mask 
)

Definition at line 374 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by setCellTDCMask().

380  {
381 
382  bool noiseFlag;
383  bool feMask;
384  bool tdcMask;
385  bool trigMask;
386  bool deadFlag;
387  bool nohvFlag;
388  int status = get( wheelId,
389  stationId,
390  sectorId,
391  slId,
392  layerId,
393  cellId,
394  noiseFlag,
395  feMask,
396  tdcMask,
397  trigMask,
398  deadFlag,
399  nohvFlag );
400  set( wheelId,
401  stationId,
402  sectorId,
403  slId,
404  layerId,
405  cellId,
406  noiseFlag,
407  feMask,
408  mask,
409  trigMask,
410  deadFlag,
411  nohvFlag );
412  return status;
413 
414 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellTDCMask ( const DTWireId id,
bool  mask 
)

Definition at line 417 of file DTStatusFlag.cc.

References setCellTDCMask(), and relativeConstraints::station.

418  {
419  return setCellTDCMask( id.wheel(),
420  id.station(),
421  id.sector(),
422  id.superLayer(),
423  id.layer(),
424  id.wire(),
425  mask );
426 }
int setCellTDCMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
int DTStatusFlag::setCellTrigMask ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  mask 
)

Definition at line 429 of file DTStatusFlag.cc.

References set(), and ntuplemaker::status.

Referenced by setCellTrigMask().

435  {
436 
437  bool noiseFlag;
438  bool feMask;
439  bool tdcMask;
440  bool trigMask;
441  bool deadFlag;
442  bool nohvFlag;
443  int status = get( wheelId,
444  stationId,
445  sectorId,
446  slId,
447  layerId,
448  cellId,
449  noiseFlag,
450  feMask,
451  tdcMask,
452  trigMask,
453  deadFlag,
454  nohvFlag );
455  set( wheelId,
456  stationId,
457  sectorId,
458  slId,
459  layerId,
460  cellId,
461  noiseFlag,
462  feMask,
463  tdcMask,
464  mask,
465  deadFlag,
466  nohvFlag );
467  return status;
468 
469 }
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
tuple status
Definition: ntuplemaker.py:245
int DTStatusFlag::setCellTrigMask ( const DTWireId id,
bool  mask 
)

Definition at line 472 of file DTStatusFlag.cc.

References setCellTrigMask(), and relativeConstraints::station.

473  {
474  return setCellTrigMask( id.wheel(),
475  id.station(),
476  id.sector(),
477  id.superLayer(),
478  id.layer(),
479  id.wire(),
480  mask );
481 }
int setCellTrigMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
const std::string & DTStatusFlag::version ( ) const

access version

Definition at line 157 of file DTStatusFlag.cc.

References dataVersion.

157  {
158  return dataVersion;
159 }
std::string dataVersion
Definition: DTStatusFlag.h:261
std::string & DTStatusFlag::version ( )

Definition at line 162 of file DTStatusFlag.cc.

References dataVersion.

162  {
163  return dataVersion;
164 }
std::string dataVersion
Definition: DTStatusFlag.h:261

Member Data Documentation

std::vector< std::pair<DTStatusFlagId,DTStatusFlagData> > DTStatusFlag::dataList
private

Definition at line 263 of file DTStatusFlag.h.

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

std::string DTStatusFlag::dataVersion
private

Definition at line 261 of file DTStatusFlag.h.

Referenced by mapName(), and version().

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

Definition at line 265 of file DTStatusFlag.h.

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