CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 (DTStatusFlag const &)=delete
 
 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
 
void initialize ()
 
DTStatusFlagoperator= (DTStatusFlag const &)=delete
 
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

std::string mapName () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< std::pair
< DTStatusFlagId,
DTStatusFlagData > > 
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 status ( cell by cell noise and masks )

Author
Paolo Ronchese INFN Padova

Definition at line 74 of file DTStatusFlag.h.

Member Typedef Documentation

Access methods to data.

Definition at line 194 of file DTStatusFlag.h.

Constructor & Destructor Documentation

DTStatusFlag::DTStatusFlag ( )

Constructor

Definition at line 27 of file DTStatusFlag.cc.

References dataList.

27 : dataVersion(" "), dBuf(new DTBufferTree<int, int>) { dataList.reserve(1000); }
std::string dataVersion
Definition: DTStatusFlag.h:201
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTStatusFlag.h:205
DTStatusFlag::DTStatusFlag ( DTStatusFlag const &  )
delete
DTStatusFlag::DTStatusFlag ( const std::string &  version)

Definition at line 29 of file DTStatusFlag.cc.

References dataList.

30  dataList.reserve(1000);
31 }
std::string dataVersion
Definition: DTStatusFlag.h:201
const std::string & version() const
access version
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTStatusFlag.h:205
DTStatusFlag::~DTStatusFlag ( )

Destructor

Definition at line 41 of file DTStatusFlag.cc.

41 {}

Member Function Documentation

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

Definition at line 294 of file DTStatusFlag.cc.

References dataList.

Referenced by DTnoiseDBValidation::beginRun().

294 { return dataList.begin(); }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
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 90 of file DTStatusFlag.h.

Referenced by DTSegmentAnalysisTask::analyze(), and DTDigiTask::analyze().

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

Definition at line 105 of file DTStatusFlag.h.

References gpuClustering::id.

111  {
112  return get(id, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
113  };
uint16_t *__restrict__ id
void DTStatusFlag::clear ( void  )

reset content

Definition at line 112 of file DTStatusFlag.cc.

References dataList, and initialize().

Referenced by BeautifulSoup.Tag::setString().

112  {
113  dataList.clear();
114  initialize();
115  return;
116 }
void initialize()
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
DTStatusFlag::const_iterator DTStatusFlag::end ( void  ) const

Definition at line 296 of file DTStatusFlag.cc.

References dataList.

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

296 { return dataList.end(); }
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
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 50 of file DTStatusFlag.cc.

References data, dataList, dBuf, DTStatusFlagData::deadFlag, DTStatusFlagData::feMask, DTBufferTree< Key, Content >::find(), DTStatusFlagData::nohvFlag, DTStatusFlagData::noiseFlag, edm::second(), DTStatusFlagData::tdcMask, and DTStatusFlagData::trigMask.

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

61  {
62  noiseFlag = feMask = tdcMask = trigMask = deadFlag = nohvFlag = false;
63 
64  std::vector<int> chanKey;
65  chanKey.reserve(6);
66  chanKey.push_back(wheelId);
67  chanKey.push_back(stationId);
68  chanKey.push_back(sectorId);
69  chanKey.push_back(slId);
70  chanKey.push_back(layerId);
71  chanKey.push_back(cellId);
72  int ientry;
73  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
74  if (!searchStatus) {
75  const DTStatusFlagData& data(dataList[ientry].second);
76  noiseFlag = data.noiseFlag;
77  feMask = data.feMask;
78  tdcMask = data.tdcMask;
79  trigMask = data.trigMask;
80  deadFlag = data.deadFlag;
81  nohvFlag = data.nohvFlag;
82  }
83 
84  return searchStatus;
85 }
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTStatusFlag.h:205
int DTStatusFlag::get ( const DTWireId id,
bool &  noiseFlag,
bool &  feMask,
bool &  tdcMask,
bool &  trigMask,
bool &  deadFlag,
bool &  nohvFlag 
) const
void DTStatusFlag::initialize ( )

Definition at line 304 of file DTStatusFlag.cc.

References DTStatusFlagId::cellId, officialStyle::chan, DTBufferTree< Key, Content >::clear(), dataList, dBuf, DTBufferTree< Key, Content >::insert(), DTStatusFlagId::layerId, DTStatusFlagId::sectorId, DTStatusFlagId::slId, DTStatusFlagId::stationId, and DTStatusFlagId::wheelId.

Referenced by clear().

304  {
305  dBuf->clear();
306 
307  int entryNum = 0;
308  int entryMax = dataList.size();
309  std::vector<int> chanKey;
310  chanKey.reserve(6);
311  while (entryNum < entryMax) {
312  const DTStatusFlagId& chan = dataList[entryNum].first;
313 
314  chanKey.clear();
315  chanKey.push_back(chan.wheelId);
316  chanKey.push_back(chan.stationId);
317  chanKey.push_back(chan.sectorId);
318  chanKey.push_back(chan.slId);
319  chanKey.push_back(chan.layerId);
320  chanKey.push_back(chan.cellId);
321  dBuf->insert(chanKey.begin(), chanKey.end(), entryNum++);
322  }
323 
324  return;
325 }
tuple chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, &quot;NDC&quot;) lumi.SetBorderSize( 0 ) lumi...
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
int insert(ElementKey fKey, ElementKey lKey, Content cont)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTStatusFlag.h:205
std::string DTStatusFlag::mapName ( ) const
private

Definition at line 298 of file DTStatusFlag.cc.

References dataVersion, and mergeVDriftHistosByStation::name.

298  {
299  std::stringstream name;
300  name << dataVersion << "_map_StatusFlag" << this;
301  return name.str();
302 }
std::string dataVersion
Definition: DTStatusFlag.h:201
DTStatusFlag& DTStatusFlag::operator= ( DTStatusFlag const &  )
delete
template<class Archive >
void DTStatusFlag::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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 118 of file DTStatusFlag.cc.

References DTStatusFlagId::cellId, data, dataList, dBuf, DTStatusFlagData::deadFlag, DTStatusFlagData::feMask, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), submitPVResolutionJobs::key, DTStatusFlagId::layerId, DTStatusFlagData::nohvFlag, DTStatusFlagData::noiseFlag, edm::second(), DTStatusFlagId::sectorId, DTStatusFlagId::slId, DTStatusFlagId::stationId, DTStatusFlagData::tdcMask, DTStatusFlagData::trigMask, and DTStatusFlagId::wheelId.

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

129  {
130  std::vector<int> chanKey;
131  chanKey.reserve(6);
132  chanKey.push_back(wheelId);
133  chanKey.push_back(stationId);
134  chanKey.push_back(sectorId);
135  chanKey.push_back(slId);
136  chanKey.push_back(layerId);
137  chanKey.push_back(cellId);
138  int ientry;
139  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
140 
141  if (!searchStatus) {
143  data.noiseFlag = noiseFlag;
144  data.feMask = feMask;
145  data.tdcMask = tdcMask;
146  data.trigMask = trigMask;
147  data.deadFlag = deadFlag;
148  data.nohvFlag = nohvFlag;
149  return -1;
150  } else {
152  key.wheelId = wheelId;
153  key.stationId = stationId;
154  key.sectorId = sectorId;
155  key.slId = slId;
156  key.layerId = layerId;
157  key.cellId = cellId;
159  data.noiseFlag = noiseFlag;
160  data.feMask = feMask;
161  data.tdcMask = tdcMask;
162  data.trigMask = trigMask;
163  data.deadFlag = deadFlag;
164  data.nohvFlag = nohvFlag;
165  ientry = dataList.size();
166  dataList.push_back(std::pair<const DTStatusFlagId, DTStatusFlagData>(key, data));
167  dBuf->insert(chanKey.begin(), chanKey.end(), ientry);
168  return 0;
169  }
170 
171  return 99;
172 }
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
Definition: DTStatusFlag.h:203
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int insert(ElementKey fKey, ElementKey lKey, Content cont)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTStatusFlag.h:205
int DTStatusFlag::set ( const DTWireId id,
bool  noiseFlag,
bool  feMask,
bool  tdcMask,
bool  trigMask,
bool  deadFlag,
bool  nohvFlag 
)

Definition at line 174 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, set(), and relativeConstraints::station.

175  {
176  return set(id.wheel(),
177  id.station(),
178  id.sector(),
179  id.superLayer(),
180  id.layer(),
181  id.wire(),
182  noiseFlag,
183  feMask,
184  tdcMask,
185  trigMask,
186  deadFlag,
187  nohvFlag);
188 }
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)
constexpr std::array< uint8_t, layerIndexSize > layer
int DTStatusFlag::setCellDead ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 260 of file DTStatusFlag.cc.

References set(), and mps_update::status.

Referenced by setCellDead().

260  {
261  bool noiseFlag;
262  bool feMask;
263  bool tdcMask;
264  bool trigMask;
265  bool deadFlag;
266  bool nohvFlag;
267  int status = get(
268  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
269  set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, flag, nohvFlag);
270  return status;
271 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellDead ( const DTWireId id,
bool  flag 
)

Definition at line 273 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellDead(), and relativeConstraints::station.

273  {
274  return setCellDead(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
275 }
int setCellDead(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
constexpr std::array< uint8_t, layerIndexSize > layer
int DTStatusFlag::setCellFEMask ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  mask 
)

Definition at line 207 of file DTStatusFlag.cc.

References set(), and mps_update::status.

Referenced by setCellFEMask().

207  {
208  bool noiseFlag;
209  bool feMask;
210  bool tdcMask;
211  bool trigMask;
212  bool deadFlag;
213  bool nohvFlag;
214  int status = get(
215  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
216  set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, mask, tdcMask, trigMask, deadFlag, nohvFlag);
217  return status;
218 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellFEMask ( const DTWireId id,
bool  mask 
)

Definition at line 220 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellFEMask(), and relativeConstraints::station.

220  {
221  return setCellFEMask(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), mask);
222 }
constexpr std::array< uint8_t, layerIndexSize > layer
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 277 of file DTStatusFlag.cc.

References set(), and mps_update::status.

Referenced by setCellNoHV().

277  {
278  bool noiseFlag;
279  bool feMask;
280  bool tdcMask;
281  bool trigMask;
282  bool deadFlag;
283  bool nohvFlag;
284  int status = get(
285  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
286  set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, flag);
287  return status;
288 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellNoHV ( const DTWireId id,
bool  flag 
)

Definition at line 290 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellNoHV(), and relativeConstraints::station.

290  {
291  return setCellNoHV(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
292 }
constexpr std::array< uint8_t, layerIndexSize > layer
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 190 of file DTStatusFlag.cc.

References set(), and mps_update::status.

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

190  {
191  bool noiseFlag;
192  bool feMask;
193  bool tdcMask;
194  bool trigMask;
195  bool deadFlag;
196  bool nohvFlag;
197  int status = get(
198  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
199  set(wheelId, stationId, sectorId, slId, layerId, cellId, flag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
200  return status;
201 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellNoise ( const DTWireId id,
bool  flag 
)

Definition at line 203 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellNoise(), and relativeConstraints::station.

203  {
204  return setCellNoise(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
205 }
constexpr std::array< uint8_t, layerIndexSize > layer
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 141 of file DTStatusFlag.h.

References set().

152  {
153  return set(
154  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
155  };
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 156 of file DTStatusFlag.h.

References set().

157  {
158  return set(id, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
159  };
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 224 of file DTStatusFlag.cc.

References set(), and mps_update::status.

Referenced by setCellTDCMask().

225  {
226  bool noiseFlag;
227  bool feMask;
228  bool tdcMask;
229  bool trigMask;
230  bool deadFlag;
231  bool nohvFlag;
232  int status = get(
233  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
234  set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, mask, trigMask, deadFlag, nohvFlag);
235  return status;
236 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellTDCMask ( const DTWireId id,
bool  mask 
)

Definition at line 238 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellTDCMask(), and relativeConstraints::station.

238  {
239  return setCellTDCMask(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), mask);
240 }
constexpr std::array< uint8_t, layerIndexSize > layer
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 242 of file DTStatusFlag.cc.

References set(), and mps_update::status.

Referenced by setCellTrigMask().

243  {
244  bool noiseFlag;
245  bool feMask;
246  bool tdcMask;
247  bool trigMask;
248  bool deadFlag;
249  bool nohvFlag;
250  int status = get(
251  wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
252  set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, mask, deadFlag, nohvFlag);
253  return status;
254 }
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)
list status
Definition: mps_update.py:107
int DTStatusFlag::setCellTrigMask ( const DTWireId id,
bool  mask 
)

Definition at line 256 of file DTStatusFlag.cc.

References phase1PixelTopology::layer, setCellTrigMask(), and relativeConstraints::station.

256  {
257  return setCellTrigMask(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), mask);
258 }
int setCellTrigMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
constexpr std::array< uint8_t, layerIndexSize > layer
const std::string & DTStatusFlag::version ( ) const

access version

Definition at line 108 of file DTStatusFlag.cc.

References dataVersion.

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

108 { return dataVersion; }
std::string dataVersion
Definition: DTStatusFlag.h:201
std::string & DTStatusFlag::version ( )

Definition at line 110 of file DTStatusFlag.cc.

References dataVersion.

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

110 { return dataVersion; }
std::string dataVersion
Definition: DTStatusFlag.h:201

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 209 of file DTStatusFlag.h.

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

Definition at line 209 of file DTStatusFlag.h.

Member Data Documentation

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

Definition at line 203 of file DTStatusFlag.h.

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

std::string DTStatusFlag::dataVersion
private

Definition at line 201 of file DTStatusFlag.h.

Referenced by mapName(), and version().

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

Definition at line 205 of file DTStatusFlag.h.

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