CMS 3D CMS Logo

EcalPnGraphs.h
Go to the documentation of this file.
1 #ifndef ECALPNGRAPHS_h
2 #define ECALPNGRAPHS_h
3 
9 
12 
14 #include <iostream>
15 #include <vector>
16 
17 #include "TFile.h"
18 #include "TGraph.h"
19 
20 class EcalPnGraphs : public edm::EDAnalyzer {
21 public:
23  ~EcalPnGraphs() override;
24 
25 private:
26  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
27  void beginJob() override;
28  void endJob() override;
29 
30  // void pnGraphs (edm::Handle<EcalPnDiodeDigiCollection> PNs );
31 
33 
35 
36 protected:
37  // std::string ebDigiCollection_;
38  //std::string eeDigiCollection_;
40 
41  std::vector<int> feds_;
42  std::vector<std::string> ebs_;
43 
44  int verbosity;
46 
47  // std::vector<int ieb_id;
48  int first_Pn;
49 
50  bool inputIsOk;
51 
53 
54  std::vector<int> listChannels;
55  std::vector<int> listAllChannels;
56  std::vector<int> listPns;
57  std::vector<int> listAllPns;
58 
59  int numPn;
60 
61  int abscissa[50];
62  int ordinate[50];
63 
64  std::vector<TGraph> graphs;
65 
66  TFile* root_file;
67 };
68 
69 #endif
std::vector< int > listChannels
Definition: EcalPnGraphs.h:54
int abscissa[50]
Definition: EcalPnGraphs.h:61
std::string intToString(int num)
std::vector< int > feds_
Definition: EcalPnGraphs.h:41
std::string fileName
Definition: EcalPnGraphs.h:52
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void beginJob() override
EcalFedMap * fedMap
Definition: EcalPnGraphs.h:34
std::vector< TGraph > graphs
Definition: EcalPnGraphs.h:64
int ordinate[50]
Definition: EcalPnGraphs.h:62
std::string digiProducer_
Definition: EcalPnGraphs.h:39
std::vector< int > listAllPns
Definition: EcalPnGraphs.h:57
~EcalPnGraphs() override
std::vector< std::string > ebs_
Definition: EcalPnGraphs.h:42
std::vector< int > listPns
Definition: EcalPnGraphs.h:56
TFile * root_file
Definition: EcalPnGraphs.h:66
void endJob() override
std::vector< int > listAllChannels
Definition: EcalPnGraphs.h:55
EcalPnGraphs(const edm::ParameterSet &ps)
Definition: EcalPnGraphs.cc:30