CMS 3D CMS Logo

HcalSeverityLevelComputer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalRecAlgos
4 // Class: HcalSeverityLevelComputer
5 //
6 /*
7  Description: delivers the severity level for HCAL cells
8 */
9 //
10 // Original Author: Radek Ofierzynski
11 //
12 //
13 
14 #ifndef HCALSEVERITYLEVELCOMPUTER_H
15 #define HCALSEVERITYLEVELCOMPUTER_H
16 
18 
23 
25 public:
28 
29  // gives back severity level based on evaluation of the RecHit flag and cell's channel status
30  int getSeverityLevel(const DetId& myid, const uint32_t& myflag, const uint32_t& mystatus) const;
31 
32  // gives back boolean whether the RecHit is a recovered one, based on RecHit flag
33  bool recoveredRecHit(const DetId& myid, const uint32_t& myflag) const;
34 
35  // gives back whether channel should be / is dropped, based on channel status
36  bool dropChannel(const uint32_t& mystatus) const;
37 
38 private:
40  public:
41  int sevLevel;
42  uint32_t chStatusMask;
45  : sevLevel(0),
46  chStatusMask(0),
47  HBHEFlagMask(0),
48  HOFlagMask(0),
49  HFFlagMask(0),
50  ZDCFlagMask(0),
51  CalibFlagMask(0) {}
52  };
53 
54  std::vector<HcalSeverityDefinition> SevDef;
57 
58  bool getChStBit(HcalSeverityDefinition& mydef, const std::string& mybit);
59  bool getRecHitFlag(HcalSeverityDefinition& mydef, const std::string& mybit, int phase_);
60  void setBit(const unsigned bitnumber, uint32_t& where);
61  void setAllRHMasks(const unsigned bitnumber, HcalSeverityDefinition& mydef);
62 
63  friend std::ostream& operator<<(std::ostream& s, const HcalSeverityLevelComputer::HcalSeverityDefinition& def);
64 };
65 
66 #endif
HcalSeverityLevelComputer::recoveredRecHit
bool recoveredRecHit(const DetId &myid, const uint32_t &myflag) const
Definition: HcalSeverityLevelComputer.cc:363
HcalSeverityLevelComputer::setBit
void setBit(const unsigned bitnumber, uint32_t &where)
Definition: HcalSeverityLevelComputer.cc:402
HcalSeverityLevelComputer::~HcalSeverityLevelComputer
~HcalSeverityLevelComputer()
Definition: HcalSeverityLevelComputer.cc:299
HcalGenericDetId.h
HcalSeverityLevelComputer::HcalSeverityDefinition
Definition: HcalSeverityLevelComputer.h:39
HcalSeverityLevelComputer::getChStBit
bool getChStBit(HcalSeverityDefinition &mydef, const std::string &mybit)
Definition: HcalSeverityLevelComputer.cc:9
DetId
Definition: DetId.h:17
MakerMacros.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalSeverityLevelComputer::HcalSeverityDefinition::sevLevel
int sevLevel
Definition: HcalSeverityLevelComputer.h:41
HcalSeverityLevelComputer::operator<<
friend std::ostream & operator<<(std::ostream &s, const HcalSeverityLevelComputer::HcalSeverityDefinition &def)
Definition: HcalSeverityLevelComputer.cc:415
HcalSeverityLevelComputer::HcalSeverityLevelComputer
HcalSeverityLevelComputer(const edm::ParameterSet &)
Definition: HcalSeverityLevelComputer.cc:185
HcalSeverityLevelComputer
Definition: HcalSeverityLevelComputer.h:24
HcalSeverityLevelComputer::HcalSeverityDefinition::HOFlagMask
uint32_t HOFlagMask
Definition: HcalSeverityLevelComputer.h:43
HcalSeverityLevelComputer::dropChannel
bool dropChannel(const uint32_t &mystatus) const
Definition: HcalSeverityLevelComputer.cc:395
HcalSeverityLevelComputer::getSeverityLevel
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
Definition: HcalSeverityLevelComputer.cc:304
edm::ParameterSet
Definition: ParameterSet.h:47
HcalSeverityLevelComputer::HcalSeverityDefinition::HBHEFlagMask
uint32_t HBHEFlagMask
Definition: HcalSeverityLevelComputer.h:43
HcalSeverityLevelComputer::HcalSeverityDefinition::HFFlagMask
uint32_t HFFlagMask
Definition: HcalSeverityLevelComputer.h:43
HcalSeverityLevelComputer::DropChannel_
HcalSeverityDefinition * DropChannel_
Definition: HcalSeverityLevelComputer.h:56
HcalSeverityLevelComputer::setAllRHMasks
void setAllRHMasks(const unsigned bitnumber, HcalSeverityDefinition &mydef)
Definition: HcalSeverityLevelComputer.cc:407
HcalSeverityLevelComputer::HcalSeverityDefinition::chStatusMask
uint32_t chStatusMask
Definition: HcalSeverityLevelComputer.h:42
HcalSeverityLevelComputer::HcalSeverityDefinition::HcalSeverityDefinition
HcalSeverityDefinition()
Definition: HcalSeverityLevelComputer.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalSeverityLevelComputer::HcalSeverityDefinition::ZDCFlagMask
uint32_t ZDCFlagMask
Definition: HcalSeverityLevelComputer.h:43
ModuleFactory.h
HcalSeverityLevelComputer::HcalSeverityDefinition::CalibFlagMask
uint32_t CalibFlagMask
Definition: HcalSeverityLevelComputer.h:43
DetId.h
EventSetup.h
HcalSeverityLevelComputer::RecoveredRecHit_
HcalSeverityDefinition * RecoveredRecHit_
Definition: HcalSeverityLevelComputer.h:55
spu::def
int def(FILE *, FILE *, int)
Definition: SherpackUtilities.cc:14
HcalSeverityLevelComputer::getRecHitFlag
bool getRecHitFlag(HcalSeverityDefinition &mydef, const std::string &mybit, int phase_)
Definition: HcalSeverityLevelComputer.cc:42
HcalSeverityLevelComputer::SevDef
std::vector< HcalSeverityDefinition > SevDef
Definition: HcalSeverityLevelComputer.h:54