CMS 3D CMS Logo

EcalPedHists.h
Go to the documentation of this file.
1 
24 
25 #include <iostream>
26 #include <vector>
27 #include <set>
28 #include "TFile.h"
29 #include "TH1.h"
30 #include "TDirectory.h"
31 
32 typedef std::map<std::string, TH1F*> stringHistMap;
33 
34 class EcalPedHists : public edm::EDAnalyzer {
35 public:
37  ~EcalPedHists() override;
38 
39 protected:
40  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
41  void beginRun(edm::Run const&, edm::EventSetup const& c) override;
42  void endJob(void) override;
43 
44 private:
48  void initHists(int FED);
49 
50  int runNum_;
51  bool inputIsOk_;
58  std::vector<int> listChannels_;
59  std::vector<int> listSamples_;
60  std::vector<int> listFEDs_;
61  std::vector<std::string> listEBs_;
62  std::map<int, stringHistMap> FEDsAndHistMaps_;
63  std::set<int> theRealFedSet_;
65  TFile* root_file_;
67 };
std::vector< int > listFEDs_
Definition: EcalPedHists.h:60
std::set< int > theRealFedSet_
Definition: EcalPedHists.h:63
void initHists(int FED)
std::string intToString(int num)
std::map< int, stringHistMap > FEDsAndHistMaps_
Definition: EcalPedHists.h:62
void endJob(void) override
void beginRun(edm::Run const &, edm::EventSetup const &c) override
std::vector< std::string > listEBs_
Definition: EcalPedHists.h:61
edm::InputTag endcapDigiCollection_
Definition: EcalPedHists.h:56
edm::InputTag headerProducer_
Definition: EcalPedHists.h:57
void readEBdigis(edm::Handle< EBDigiCollection > digis)
bool histsFilled_
Definition: EcalPedHists.h:53
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedHists.h:66
EcalFedMap * fedMap_
Definition: EcalPedHists.h:64
std::vector< int > listChannels_
Definition: EcalPedHists.h:58
EcalPedHists(const edm::ParameterSet &ps)
Definition: EcalPedHists.cc:13
bool allFEDsSelected_
Definition: EcalPedHists.h:52
std::string fileName_
Definition: EcalPedHists.h:54
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void readEEdigis(edm::Handle< EEDigiCollection > digis)
edm::InputTag barrelDigiCollection_
Definition: EcalPedHists.h:55
~EcalPedHists() override
std::map< std::string, TH1F * > stringHistMap
Definition: EcalPedHists.h:32
Definition: Run.h:45
TFile * root_file_
Definition: EcalPedHists.h:65
std::vector< int > listSamples_
Definition: EcalPedHists.h:59