CMS 3D CMS Logo

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
36 
37 // ROOT includes
38 #include "TFile.h"
39 #include "TH1F.h"
40 #include "TH2F.h"
41 
42 //
43 // class decleration
44 //
45 class TrackerTopology;
46 
47 class SiStripPlotGain : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
48 public:
49  explicit SiStripPlotGain(const edm::ParameterSet &);
50  ~SiStripPlotGain() override = default;
51 
52 private:
53  void beginRun(const edm::Run &run, const edm::EventSetup &es) override;
54  void analyze(const edm::Event &, const edm::EventSetup &) override {}
55  void endRun(const edm::Run &run, const edm::EventSetup &es) override {}
56  void endJob() override;
57 
58  void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &);
59  void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector<TH1F *> &histos);
60  TH1F *getHisto(const long unsigned int &index);
61 
62  // ----------member data ---------------------------
66 
67  TFile *file;
68  std::vector<TH1F *> vTH1;
69 
71 };
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
~SiStripPlotGain() override=default
void DoAnalysis(const TrackerTopology &tTopo, const SiStripApvGain &)
void endRun(const edm::Run &run, const edm::EventSetup &es) override
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
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
void getHistos(DetId detid, const TrackerTopology &tTopo, std::vector< TH1F *> &histos)