CMS 3D CMS Logo

EcalURecHitHists.h
Go to the documentation of this file.
1 #ifndef CaloOnlineTools_EcalTools_EcalURecHitHists_h
2 #define CaloOnlineTools_EcalTools_EcalURecHitHists_h
3 // -*- C++ -*-
4 //
5 // Package: EcalURecHitHists
6 // Class: EcalURecHitHists
7 //
15 //
16 // Original Author: Seth COOPER
17 // Created: Th Nov 22 5:46:22 CEST 2007
18 //
19 //
20 
21 // system include files
22 #include <memory>
23 #include <vector>
24 #include <map>
25 #include <set>
26 
27 // user include files
34 
39 
42 
44 
45 #include "TFile.h"
46 #include "TH1F.h"
47 #include "TGraph.h"
48 #include "TNtuple.h"
49 
50 //
51 // class declaration
52 //
53 
54 class EcalURecHitHists : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
55 public:
56  explicit EcalURecHitHists(const edm::ParameterSet&);
57  ~EcalURecHitHists() override;
58 
59 private:
60  void beginRun(edm::Run const&, edm::EventSetup const&) override;
61  void endRun(edm::Run const&, edm::EventSetup const&) override;
62  void analyze(edm::Event const&, edm::EventSetup const&) override;
63  void endJob() override;
65  void initHists(int);
66 
67  // ----------member data ---------------------------
68 
71 
75 
76  int runNum_;
79 
80  std::vector<int> maskedChannels_;
81  std::vector<int> maskedFEDs_;
82  std::vector<std::string> maskedEBs_;
83  std::map<int, TH1F*> FEDsAndHists_;
84  std::map<int, TH1F*> FEDsAndTimingHists_;
85 
86  TH1F* allFedsHist_;
88 
89  TFile* file;
92 };
93 
94 #endif
const EcalElectronicsMapping * ecalElectronicsMap_
std::string fileName_
const edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUncalibRecHitsToken_
void beginRun(edm::Run const &, edm::EventSetup const &) override
const double histRangeMax_
const edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUncalibRecHitsToken_
void endJob() override
void endRun(edm::Run const &, edm::EventSetup const &) override
void analyze(edm::Event const &, edm::EventSetup const &) override
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalMappingToken_
const edm::InputTag eeUncalibratedRecHitCollection_
std::map< int, TH1F * > FEDsAndHists_
std::map< int, TH1F * > FEDsAndTimingHists_
EcalURecHitHists(const edm::ParameterSet &)
std::vector< int > maskedChannels_
const edm::InputTag ebUncalibratedRecHitCollection_
std::vector< std::string > maskedEBs_
std::vector< int > maskedFEDs_
EcalFedMap * fedMap_
~EcalURecHitHists() override
std::string intToString(int num)
const double histRangeMin_
Definition: Run.h:45