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 
35 {
36  public:
37  EcalPedHists(const edm::ParameterSet& ps);
38  ~EcalPedHists();
39 
40  protected:
41  void analyze(const edm::Event & e, const edm::EventSetup& c);
42  void beginRun(edm::Run const &, edm::EventSetup const & c);
43  void endJob(void);
44 
45  private:
49  void initHists(int FED);
50 
51  int runNum_;
52  bool inputIsOk_;
59  std::vector<int> listChannels_;
60  std::vector<int> listSamples_;
61  std::vector<int> listFEDs_;
62  std::vector<std::string> listEBs_;
63  std::map<int,stringHistMap> FEDsAndHistMaps_;
64  std::set<int> theRealFedSet_;
66  TFile * root_file_;
68 };
std::vector< int > listFEDs_
Definition: EcalPedHists.h:61
std::set< int > theRealFedSet_
Definition: EcalPedHists.h:64
void initHists(int FED)
std::string intToString(int num)
std::map< int, stringHistMap > FEDsAndHistMaps_
Definition: EcalPedHists.h:63
std::map< std::string, TH1F * > stringHistMap
Definition: EcalPedHists.h:32
std::vector< std::string > listEBs_
Definition: EcalPedHists.h:62
edm::InputTag endcapDigiCollection_
Definition: EcalPedHists.h:57
void endJob(void)
edm::InputTag headerProducer_
Definition: EcalPedHists.h:58
void readEBdigis(edm::Handle< EBDigiCollection > digis)
bool histsFilled_
Definition: EcalPedHists.h:54
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedHists.h:67
EcalFedMap * fedMap_
Definition: EcalPedHists.h:65
std::vector< int > listChannels_
Definition: EcalPedHists.h:59
EcalPedHists(const edm::ParameterSet &ps)
Definition: EcalPedHists.cc:13
bool allFEDsSelected_
Definition: EcalPedHists.h:53
void analyze(const edm::Event &e, const edm::EventSetup &c)
std::string fileName_
Definition: EcalPedHists.h:55
void beginRun(edm::Run const &, edm::EventSetup const &c)
void readEEdigis(edm::Handle< EEDigiCollection > digis)
edm::InputTag barrelDigiCollection_
Definition: EcalPedHists.h:56
Definition: Run.h:42
TFile * root_file_
Definition: EcalPedHists.h:66
std::vector< int > listSamples_
Definition: EcalPedHists.h:60