CMS 3D CMS Logo

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 (DTDeadFlag const &)=delete
 
 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 ()
 
DTDeadFlagoperator= (DTDeadFlag const &)=delete
 
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

std::string mapName () const
 read and store full content More...
 
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 66 of file DTDeadFlag.h.

Member Typedef Documentation

◆ const_iterator

Access methods to data.

Definition at line 169 of file DTDeadFlag.h.

Constructor & Destructor Documentation

◆ DTDeadFlag() [1/3]

DTDeadFlag::DTDeadFlag ( )

Constructor

Definition at line 27 of file DTDeadFlag.cc.

References dataList.

27 : dataVersion(" "), dBuf(new DTBufferTree<int, int>) { dataList.reserve(1000); }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
std::string dataVersion
Definition: DTDeadFlag.h:176
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:180

◆ DTDeadFlag() [2/3]

DTDeadFlag::DTDeadFlag ( DTDeadFlag const &  )
delete

◆ DTDeadFlag() [3/3]

DTDeadFlag::DTDeadFlag ( const std::string &  version)

Definition at line 29 of file DTDeadFlag.cc.

References dataList.

30  dataList.reserve(1000);
31 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
const std::string & version() const
access version
Definition: DTDeadFlag.cc:139
std::string dataVersion
Definition: DTDeadFlag.h:176
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:180

◆ ~DTDeadFlag()

DTDeadFlag::~DTDeadFlag ( )

Destructor

Definition at line 40 of file DTDeadFlag.cc.

40 {}

Member Function Documentation

◆ begin()

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

Definition at line 260 of file DTDeadFlag.cc.

References dataList.

260 { return dataList.begin(); }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178

◆ cellStatus() [1/2]

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 82 of file DTDeadFlag.h.

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

91  {
92  return get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
93  };

◆ cellStatus() [2/2]

int DTDeadFlag::cellStatus ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
inline

Definition at line 94 of file DTDeadFlag.h.

References triggerObjects_cff::id.

94  {
95  return get(id, dead_HV, dead_TP, dead_RO, discCat);
96  };

◆ clear()

void DTDeadFlag::clear ( void  )

reset content

Definition at line 143 of file DTDeadFlag.cc.

References dataList, and initialize().

Referenced by BeautifulSoup.Tag::setString().

143  {
144  dataList.clear();
145  initialize();
146  return;
147 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
void initialize()
Definition: DTDeadFlag.cc:270

◆ end()

DTDeadFlag::const_iterator DTDeadFlag::end ( void  ) const

Definition at line 262 of file DTDeadFlag.cc.

References dataList.

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

262 { return dataList.end(); }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178

◆ get() [1/2]

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 49 of file DTDeadFlag.cc.

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

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().

58  {
59  dead_HV = dead_TP = dead_RO = discCat = false;
60 
61  std::vector<int> chanKey;
62  chanKey.reserve(6);
63  chanKey.push_back(wheelId);
64  chanKey.push_back(stationId);
65  chanKey.push_back(sectorId);
66  chanKey.push_back(slId);
67  chanKey.push_back(layerId);
68  chanKey.push_back(cellId);
69  int ientry;
70  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
71  if (!searchStatus) {
72  const DTDeadFlagData& data(dataList[ientry].second);
73  dead_HV = data.dead_HV;
74  dead_TP = data.dead_TP;
75  dead_RO = data.dead_RO;
76  discCat = data.discCat;
77  }
78 
79  return searchStatus;
80 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:180
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ get() [2/2]

int DTDeadFlag::get ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const

◆ getCellDead_HV() [1/2]

bool DTDeadFlag::getCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 87 of file DTDeadFlag.cc.

Referenced by getCellDead_HV().

87  {
88  bool dead_HV;
89  bool dead_TP;
90  bool dead_RO;
91  bool discCat;
92  get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
93  return dead_HV;
94 }

◆ getCellDead_HV() [2/2]

bool DTDeadFlag::getCellDead_HV ( const DTWireId id) const

Definition at line 96 of file DTDeadFlag.cc.

References getCellDead_HV(), phase1PixelTopology::layer, relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

96  {
97  return getCellDead_HV(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire());
98 }
constexpr std::array< uint8_t, layerIndexSize > layer
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:87

◆ getCellDead_RO() [1/2]

bool DTDeadFlag::getCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 113 of file DTDeadFlag.cc.

Referenced by getCellDead_RO().

113  {
114  bool dead_HV;
115  bool dead_TP;
116  bool dead_RO;
117  bool discCat;
118  get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
119  return dead_RO;
120 }

◆ getCellDead_RO() [2/2]

bool DTDeadFlag::getCellDead_RO ( const DTWireId id) const

Definition at line 122 of file DTDeadFlag.cc.

References getCellDead_RO(), phase1PixelTopology::layer, relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

122  {
123  return getCellDead_RO(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire());
124 }
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:113
constexpr std::array< uint8_t, layerIndexSize > layer

◆ getCellDead_TP() [1/2]

bool DTDeadFlag::getCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 100 of file DTDeadFlag.cc.

Referenced by getCellDead_TP().

100  {
101  bool dead_HV;
102  bool dead_TP;
103  bool dead_RO;
104  bool discCat;
105  get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
106  return dead_TP;
107 }

◆ getCellDead_TP() [2/2]

bool DTDeadFlag::getCellDead_TP ( const DTWireId id) const

Definition at line 109 of file DTDeadFlag.cc.

References getCellDead_TP(), phase1PixelTopology::layer, relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

109  {
110  return getCellDead_TP(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire());
111 }
constexpr std::array< uint8_t, layerIndexSize > layer
bool getCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:100

◆ getCellDiscCat() [1/2]

bool DTDeadFlag::getCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 126 of file DTDeadFlag.cc.

Referenced by getCellDiscCat().

126  {
127  bool dead_HV;
128  bool dead_TP;
129  bool dead_RO;
130  bool discCat;
131  get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
132  return discCat;
133 }

◆ getCellDiscCat() [2/2]

bool DTDeadFlag::getCellDiscCat ( const DTWireId id) const

Definition at line 135 of file DTDeadFlag.cc.

References getCellDiscCat(), phase1PixelTopology::layer, relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

135  {
136  return getCellDiscCat(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire());
137 }
bool getCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:126
constexpr std::array< uint8_t, layerIndexSize > layer

◆ initialize()

void DTDeadFlag::initialize ( )

Definition at line 270 of file DTDeadFlag.cc.

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

Referenced by clear().

270  {
271  dBuf->clear();
272 
273  int entryNum = 0;
274  int entryMax = dataList.size();
275  std::vector<int> chanKey;
276  chanKey.reserve(6);
277  while (entryNum < entryMax) {
278  const DTDeadFlagId& chan = dataList[entryNum].first;
279 
280  chanKey.clear();
281  chanKey.push_back(chan.wheelId);
282  chanKey.push_back(chan.stationId);
283  chanKey.push_back(chan.sectorId);
284  chanKey.push_back(chan.slId);
285  chanKey.push_back(chan.layerId);
286  chanKey.push_back(chan.cellId);
287  dBuf->insert(chanKey.begin(), chanKey.end(), entryNum++);
288  }
289 
290  return;
291 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:180
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
int insert(ElementKey fKey, ElementKey lKey, Content cont)

◆ mapName()

std::string DTDeadFlag::mapName ( ) const
private

read and store full content

Definition at line 264 of file DTDeadFlag.cc.

References dataVersion, and Skims_PA_cff::name.

264  {
265  std::stringstream name;
266  name << dataVersion << "_map_DeadFlag" << this;
267  return name.str();
268 }
std::string dataVersion
Definition: DTDeadFlag.h:176

◆ operator=()

DTDeadFlag& DTDeadFlag::operator= ( DTDeadFlag const &  )
delete

◆ serialize()

template<class Archive >
void DTDeadFlag::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ set() [1/2]

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 149 of file DTDeadFlag.cc.

References data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), crabWrapper::key, and edm::second().

158  {
159  std::vector<int> chanKey;
160  chanKey.reserve(6);
161  chanKey.push_back(wheelId);
162  chanKey.push_back(stationId);
163  chanKey.push_back(sectorId);
164  chanKey.push_back(slId);
165  chanKey.push_back(layerId);
166  chanKey.push_back(cellId);
167  int ientry;
168  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
169 
170  if (!searchStatus) {
172  data.dead_HV = dead_HV;
173  data.dead_TP = dead_TP;
174  data.dead_RO = dead_RO;
175  data.discCat = discCat;
176  return -1;
177  } else {
179  key.wheelId = wheelId;
180  key.stationId = stationId;
181  key.sectorId = sectorId;
182  key.slId = slId;
183  key.layerId = layerId;
184  key.cellId = cellId;
186  data.dead_HV = dead_HV;
187  data.dead_TP = dead_TP;
188  data.dead_RO = dead_RO;
189  data.discCat = discCat;
190  ientry = dataList.size();
191  dataList.push_back(std::pair<const DTDeadFlagId, DTDeadFlagData>(key, data));
192  dBuf->insert(chanKey.begin(), chanKey.end(), ientry);
193  return 0;
194  }
195 
196  return 99;
197 }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:178
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:180
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int insert(ElementKey fKey, ElementKey lKey, Content cont)

◆ set() [2/2]

int DTDeadFlag::set ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 199 of file DTDeadFlag.cc.

199  {
200  return set(
201  id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), dead_HV, dead_TP, dead_RO, discCat);
202 }

◆ setCellDead_HV() [1/2]

int DTDeadFlag::setCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 204 of file DTDeadFlag.cc.

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

Referenced by setCellDead_HV().

204  {
205  bool dead_HV;
206  bool dead_TP;
207  bool dead_RO;
208  bool discCat;
209  int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
210  setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, flag, dead_TP, dead_RO, discCat);
211  return status;
212 }
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:128
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:82

◆ setCellDead_HV() [2/2]

int DTDeadFlag::setCellDead_HV ( const DTWireId id,
bool  flag 
)

Definition at line 214 of file DTDeadFlag.cc.

References RemoveAddSevLevel::flag, phase1PixelTopology::layer, setCellDead_HV(), relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

214  {
215  return setCellDead_HV(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
216 }
int setCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:204
constexpr std::array< uint8_t, layerIndexSize > layer

◆ setCellDead_RO() [1/2]

int DTDeadFlag::setCellDead_RO ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 232 of file DTDeadFlag.cc.

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

Referenced by setCellDead_RO().

232  {
233  bool dead_HV;
234  bool dead_TP;
235  bool dead_RO;
236  bool discCat;
237  int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
238  setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, flag, discCat);
239  return status;
240 }
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:128
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:82

◆ setCellDead_RO() [2/2]

int DTDeadFlag::setCellDead_RO ( const DTWireId id,
bool  flag 
)

Definition at line 242 of file DTDeadFlag.cc.

References RemoveAddSevLevel::flag, phase1PixelTopology::layer, setCellDead_RO(), relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

242  {
243  return setCellDead_RO(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
244 }
constexpr std::array< uint8_t, layerIndexSize > layer
int setCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:232

◆ setCellDead_TP() [1/2]

int DTDeadFlag::setCellDead_TP ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 218 of file DTDeadFlag.cc.

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

Referenced by DTTPDeadWriter::analyze(), and setCellDead_TP().

218  {
219  bool dead_HV;
220  bool dead_TP;
221  bool dead_RO;
222  bool discCat;
223  int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
224  setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, flag, dead_RO, discCat);
225  return status;
226 }
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:128
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:82

◆ setCellDead_TP() [2/2]

int DTDeadFlag::setCellDead_TP ( const DTWireId id,
bool  flag 
)

Definition at line 228 of file DTDeadFlag.cc.

References RemoveAddSevLevel::flag, phase1PixelTopology::layer, setCellDead_TP(), relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

228  {
229  return setCellDead_TP(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
230 }
constexpr std::array< uint8_t, layerIndexSize > layer
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:218

◆ setCellDiscCat() [1/2]

int DTDeadFlag::setCellDiscCat ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  flag 
)

Definition at line 246 of file DTDeadFlag.cc.

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

Referenced by setCellDiscCat().

246  {
247  bool dead_HV;
248  bool dead_TP;
249  bool dead_RO;
250  bool discCat;
251  int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
252  setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, flag);
253  return status;
254 }
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:128
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:82

◆ setCellDiscCat() [2/2]

int DTDeadFlag::setCellDiscCat ( const DTWireId id,
bool  flag 
)

Definition at line 256 of file DTDeadFlag.cc.

References RemoveAddSevLevel::flag, phase1PixelTopology::layer, setCellDiscCat(), relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

256  {
257  return setCellDiscCat(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
258 }
constexpr std::array< uint8_t, layerIndexSize > layer
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:246

◆ setCellStatus() [1/2]

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 128 of file DTDeadFlag.h.

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

137  {
138  return set(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
139  };

◆ setCellStatus() [2/2]

int DTDeadFlag::setCellStatus ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)
inline

Definition at line 140 of file DTDeadFlag.h.

References triggerObjects_cff::id.

140  {
141  return set(id, dead_HV, dead_TP, dead_RO, discCat);
142  };

◆ version() [1/2]

const std::string & DTDeadFlag::version ( ) const

access version

Definition at line 139 of file DTDeadFlag.cc.

References dataVersion.

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

139 { return dataVersion; }
std::string dataVersion
Definition: DTDeadFlag.h:176

◆ version() [2/2]

std::string & DTDeadFlag::version ( )

Definition at line 141 of file DTDeadFlag.cc.

References dataVersion.

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

141 { return dataVersion; }
std::string dataVersion
Definition: DTDeadFlag.h:176

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 185 of file DTDeadFlag.h.

◆ cond::serialization::access

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

Definition at line 185 of file DTDeadFlag.h.

Member Data Documentation

◆ dataList

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

Definition at line 178 of file DTDeadFlag.h.

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

◆ dataVersion

std::string DTDeadFlag::dataVersion
private

Definition at line 176 of file DTDeadFlag.h.

Referenced by mapName(), and version().

◆ dBuf

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

Definition at line 180 of file DTDeadFlag.h.

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