CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDigiTester.h
Go to the documentation of this file.
1 #ifndef HCALDIGITESTER_H
2 #define HCALDIGITESTER_H
3 
4 // user include files
5 
9 
12 #include <map>
14 
20 
21 class HcalDigiTester : public DQMEDAnalyzer {
22 public:
23 
24  explicit HcalDigiTester(const edm::ParameterSet&);
26  virtual void analyze(const edm::Event&, const edm::EventSetup&);
27  template<class Digi> void reco(const edm::Event&, const edm::EventSetup&, const edm::EDGetTokenT<edm::SortedCollection<Digi> > &);
28  virtual void endRun() ;
29 
30  virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &);
31 
32 
33  private:
34 
35  double dR(double eta1, double phi1, double eta2, double phi2);
36  void eval_occupancy();
37 
38  // choose the correct subdet
40 
42 
48 
54  int noise_;
55 // flag to distinguish between
56  // particular subdet only case and "global" noise one
57 
60  float pedvalue;
61  int nevent1;
62  int nevent2;
63  int nevent3;
64  int nevent4;
65  int nevtot;
66  std::map<std::string, HcalSubdetDigiMonitor*> monitors_;
67 
68 };
69 
70 #endif
71 
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< edm::SortedCollection< HODataFrame > > tok_ho_
HcalSubdetDigiMonitor * monitor()
edm::EDGetTokenT< edm::SortedCollection< HBHEDataFrame > > tok_hbhe_
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
edm::ESHandle< CaloGeometry > geometry
std::string hcalselector_
void reco(const edm::Event &, const edm::EventSetup &, const edm::EDGetTokenT< edm::SortedCollection< Digi > > &)
edm::EDGetTokenT< edm::PCaloHitContainer > tok_mc_
void constructMonitor(DQMStore::IBooker &)
std::string mode_
std::string mc_
HcalDigiTester(const edm::ParameterSet &)
std::map< std::string, HcalSubdetDigiMonitor * > monitors_
edm::ESHandle< HcalDbService > conditions
double dR(double eta1, double phi1, double eta2, double phi2)
virtual void endRun()
edm::InputTag inputTag_
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > tok_hf_
std::string zside_
std::string outputFile_
Definition: Run.h:41