CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripPlotGain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripPlotGain
4 // Class: SiStripPlotGain
5 //
14 //
15 // Original Author: Domenico GIORDANO
16 // Created: Mon Aug 10 10:42:04 CEST 2009
17 //
18 //
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
29 
32 
34 
39 
40 #include "TFile.h"
41 #include "TH1F.h"
42 #include "TH2F.h"
43 
44 //
45 // class decleration
46 //
47 class TrackerTopology;
48 
50 public:
51  explicit SiStripPlotGain(const edm::ParameterSet &);
52  ~SiStripPlotGain() override;
53 
54 private:
55  void beginRun(const edm::Run &run, const edm::EventSetup &es) override;
56  void analyze(const edm::Event &, const edm::EventSetup &) override{};
57  void endJob() override;
58 
59  void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &);
60  void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector<TH1F *> &histos);
61  TH1F *getHisto(const long unsigned int &index);
62 
63  // ----------member data ---------------------------
64 
68 
69  TFile *file;
70  std::vector<TH1F *> vTH1;
71 
73 };
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &)
Definition: DetId.h:17
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * getHisto(const long unsigned int &index)
edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd > gainToken_
TrackerMap * tkmap
void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector< TH1F * > &histos)
SiStripPlotGain(const edm::ParameterSet &)
std::vector< TH1F * > vTH1
edm::ESWatcher< SiStripApvGainRcd > gainWatcher_
void endJob() override
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: Run.h:45
~SiStripPlotGain() override