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 (const std::string &version)
 
const_iterator end () const
 
int get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 
int get (const DTWireId &id, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
 
bool getCellDead_HV (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_HV (const DTWireId &id) const
 
bool getCellDead_RO (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_RO (const DTWireId &id) const
 
bool getCellDead_TP (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDead_TP (const DTWireId &id) const
 
bool getCellDiscCat (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
 
bool getCellDiscCat (const DTWireId &id) const
 
void initialize ()
 
int set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int set (const DTWireId &id, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int setCellDead_HV (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_HV (const DTWireId &id, bool flag)
 
int setCellDead_RO (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_RO (const DTWireId &id, bool flag)
 
int setCellDead_TP (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDead_TP (const DTWireId &id, bool flag)
 
int setCellDiscCat (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
 
int setCellDiscCat (const DTWireId &id, bool flag)
 
int setCellStatus (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
int setCellStatus (const DTWireId &id, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
 
const std::string & version () const
 access version More...
 
std::string & version ()
 
 ~DTDeadFlag ()
 

Private Member Functions

 DTDeadFlag (DTDeadFlag const &)=delete
 
std::string mapName () const
 read and store full content More...
 
DTDeadFlagoperator= (DTDeadFlag const &)=delete
 
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

Access methods to data.

Definition at line 167 of file DTDeadFlag.h.

Constructor & Destructor Documentation

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:179
std::string dataVersion
Definition: DTDeadFlag.h:177
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:181
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:179
const std::string & version() const
access version
Definition: DTDeadFlag.cc:139
std::string dataVersion
Definition: DTDeadFlag.h:177
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:181
DTDeadFlag::~DTDeadFlag ( )

Destructor

Definition at line 40 of file DTDeadFlag.cc.

40 {}
DTDeadFlag::DTDeadFlag ( DTDeadFlag const &  )
privatedelete

Member Function Documentation

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

Definition at line 260 of file DTDeadFlag.cc.

260 { return dataList.begin(); }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:179
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 80 of file DTDeadFlag.h.

89  {
90  return get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
91  };
int DTDeadFlag::cellStatus ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
inline
void DTDeadFlag::clear ( void  )
DTDeadFlag::const_iterator DTDeadFlag::end ( void  ) const

Definition at line 262 of file DTDeadFlag.cc.

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

262 { return dataList.end(); }
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
Definition: DTDeadFlag.h:179
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, DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, and edm::second().

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

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:179
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:181
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int DTDeadFlag::get ( const DTWireId id,
bool &  dead_HV,
bool &  dead_TP,
bool &  dead_RO,
bool &  discCat 
) const
bool DTDeadFlag::getCellDead_HV ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId 
) const

Definition at line 87 of file DTDeadFlag.cc.

References DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, and DTDeadFlagData::discCat.

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 }
bool DTDeadFlag::getCellDead_HV ( const DTWireId id) const

Definition at line 96 of file DTDeadFlag.cc.

References relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

96  {
97  return getCellDead_HV(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire());
98 }
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
Definition: DTDeadFlag.cc:87
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.

References DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, and DTDeadFlagData::discCat.

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 }
bool DTDeadFlag::getCellDead_RO ( const DTWireId id) const

Definition at line 122 of file DTDeadFlag.cc.

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

References DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, and DTDeadFlagData::discCat.

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 }
bool DTDeadFlag::getCellDead_TP ( const DTWireId id) const

Definition at line 109 of file DTDeadFlag.cc.

References relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

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

Definition at line 126 of file DTDeadFlag.cc.

References DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, and DTDeadFlagData::discCat.

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 }
bool DTDeadFlag::getCellDiscCat ( const DTWireId id) const

Definition at line 135 of file DTDeadFlag.cc.

References 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
void DTDeadFlag::initialize ( )

Definition at line 270 of file DTDeadFlag.cc.

References DTDeadFlagId::cellId, officialStyle::chan, DTDeadFlagId::layerId, DTDeadFlagId::sectorId, DTDeadFlagId::slId, DTDeadFlagId::stationId, and DTDeadFlagId::wheelId.

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:179
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:181
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)
std::string DTDeadFlag::mapName ( ) const
private

read and store full content

Definition at line 264 of file DTDeadFlag.cc.

References 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:177
DTDeadFlag& DTDeadFlag::operator= ( DTDeadFlag const &  )
privatedelete
template<class Archive >
void DTDeadFlag::serialize ( Archive &  ar,
const unsigned int  version 
)
private
int DTDeadFlag::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 149 of file DTDeadFlag.cc.

References DTDeadFlagId::cellId, data, DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, crabWrapper::key, DTDeadFlagId::layerId, edm::second(), DTDeadFlagId::sectorId, DTDeadFlagId::slId, DTDeadFlagId::stationId, and DTDeadFlagId::wheelId.

Referenced by DTDeadFlagHandler::getNewObjects().

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:179
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTDeadFlag.h:181
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int insert(ElementKey fKey, ElementKey lKey, Content cont)
int DTDeadFlag::set ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)

Definition at line 199 of file DTDeadFlag.cc.

References DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, and DTDeadFlagData::discCat.

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 }
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 DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, and mps_update::status.

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:126
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:80
int DTDeadFlag::setCellDead_HV ( const DTWireId id,
bool  flag 
)

Definition at line 214 of file DTDeadFlag.cc.

References 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
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 DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, and mps_update::status.

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:126
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:80
int DTDeadFlag::setCellDead_RO ( const DTWireId id,
bool  flag 
)

Definition at line 242 of file DTDeadFlag.cc.

References relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

242  {
243  return setCellDead_RO(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
244 }
int setCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:232
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 DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, and mps_update::status.

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:126
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:80
int DTDeadFlag::setCellDead_TP ( const DTWireId id,
bool  flag 
)

Definition at line 228 of file DTDeadFlag.cc.

References relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

228  {
229  return setCellDead_TP(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
230 }
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:218
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 DTDeadFlagData::dead_HV, DTDeadFlagData::dead_RO, DTDeadFlagData::dead_TP, DTDeadFlagData::discCat, and mps_update::status.

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:126
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:80
int DTDeadFlag::setCellDiscCat ( const DTWireId id,
bool  flag 
)

Definition at line 256 of file DTDeadFlag.cc.

References relativeConstraints::station, and makeMuonMisalignmentScenario::wheel.

256  {
257  return setCellDiscCat(id.wheel(), id.station(), id.sector(), id.superLayer(), id.layer(), id.wire(), flag);
258 }
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
Definition: DTDeadFlag.cc:246
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 126 of file DTDeadFlag.h.

References DTDeadFlagId::cellId, DTDeadFlagId::layerId, DTDeadFlagId::sectorId, DTDeadFlagId::slId, DTDeadFlagId::stationId, and DTDeadFlagId::wheelId.

135  {
136  return set(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
137  };
int DTDeadFlag::setCellStatus ( const DTWireId id,
bool  dead_HV,
bool  dead_TP,
bool  dead_RO,
bool  discCat 
)
inline
const std::string & DTDeadFlag::version ( ) const

access version

Definition at line 139 of file DTDeadFlag.cc.

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

139 { return dataVersion; }
std::string dataVersion
Definition: DTDeadFlag.h:177
std::string & DTDeadFlag::version ( )

Definition at line 141 of file DTDeadFlag.cc.

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

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 186 of file DTDeadFlag.h.

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

Definition at line 186 of file DTDeadFlag.h.

Member Data Documentation

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

Definition at line 179 of file DTDeadFlag.h.

Referenced by DTDeadFlag().

std::string DTDeadFlag::dataVersion
private

Definition at line 177 of file DTDeadFlag.h.

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

Definition at line 181 of file DTDeadFlag.h.