test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
24 
26 {
27 
28  public:
31 
32  // gives back severity level based on evaluation of the RecHit flag and cell's channel status
33  int getSeverityLevel(const DetId& myid, const uint32_t& myflag, const uint32_t& mystatus) const;
34 
35  // gives back boolean whether the RecHit is a recovered one, based on RecHit flag
36  bool recoveredRecHit(const DetId& myid, const uint32_t& myflag) const;
37 
38  // gives back whether channel should be / is dropped, based on channel status
39  bool dropChannel(const uint32_t& mystatus) const;
40 
41  private:
43  {
44  public:
45  int sevLevel;
46  uint32_t chStatusMask;
49  sevLevel(0), chStatusMask(0),
51  {}
52 
53  };
54 
55  std::vector<HcalSeverityDefinition> SevDef;
58 
59  bool getChStBit(HcalSeverityDefinition& mydef, const std::string& mybit);
60  bool getRecHitFlag(HcalSeverityDefinition& mydef, const std::string& mybit);
61  void setBit (const unsigned bitnumber, uint32_t& where);
62  void setAllRHMasks(const unsigned bitnumber, HcalSeverityDefinition& mydef);
63 
64  friend std::ostream& operator<<(std::ostream& s, const HcalSeverityLevelComputer::HcalSeverityDefinition& def);
65 
66 
67 };
68 
69 
70 #endif
HcalSeverityLevelComputer(const edm::ParameterSet &)
friend std::ostream & operator<<(std::ostream &s, const HcalSeverityLevelComputer::HcalSeverityDefinition &def)
std::vector< HcalSeverityDefinition > SevDef
bool recoveredRecHit(const DetId &myid, const uint32_t &myflag) const
bool dropChannel(const uint32_t &mystatus) const
HcalSeverityDefinition * RecoveredRecHit_
Definition: DetId.h:18
bool getRecHitFlag(HcalSeverityDefinition &mydef, const std::string &mybit)
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
void setBit(const unsigned bitnumber, uint32_t &where)
HcalSeverityDefinition * DropChannel_
void setAllRHMasks(const unsigned bitnumber, HcalSeverityDefinition &mydef)
JetCorrectorParameters::Definitions def
Definition: classes.h:6
bool getChStBit(HcalSeverityDefinition &mydef, const std::string &mybit)