CMS 3D CMS Logo

SiStripPlotGain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripPlotGain
4 // Class: SiStripPlotGain
5 //
13 //
14 // Original Author: Domenico GIORDANO
15 // Created: Mon Aug 10 10:42:04 CEST 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
29 
32 
34 
38 
39 #include "TH2F.h"
40 #include "TH1F.h"
41 #include "TFile.h"
42 
43 
44 //
45 // class decleration
46 //
47 class TrackerTopology;
48 
50 public:
51  explicit SiStripPlotGain(const edm::ParameterSet&);
52  ~SiStripPlotGain() override;
53 
54 
55 private:
56  void beginRun(const edm::Run& run, const edm::EventSetup& es) override;
57  void analyze(const edm::Event&, const edm::EventSetup&) override{};
58  void endJob() override;
59 
60  void DoAnalysis(const edm::EventSetup& es, const SiStripApvGain&);
61  void getHistos(const uint32_t & detid, const TrackerTopology* tTopo, std::vector<TH1F*>& histos);
62  TH1F* getHisto(const long unsigned int& index);
63 
64  unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripApvGainRcd>().cacheIdentifier();}
65 
66 
67  // ----------member data ---------------------------
68 
69 
71 
73 
74 
75  TFile* file;
76  std::vector<TH1F*> vTH1;
77 
79 
80 
81  unsigned long long cacheID;
82 };
83 
84 
unsigned long long getCache(const edm::EventSetup &eSetup)
void getHistos(const uint32_t &detid, const TrackerTopology *tTopo, std::vector< TH1F * > &histos)
void DoAnalysis(const edm::EventSetup &es, const SiStripApvGain &)
unsigned long long cacheID
std::vector< TH1F * > vTH1
SiStripDetInfoFileReader * fr
const T & get() const
Definition: EventSetup.h:55
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * getHisto(const long unsigned int &index)
TrackerMap * tkmap
SiStripPlotGain(const edm::ParameterSet &)
edm::ESHandle< SiStripApvGain > Handle_
void endJob() override
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition: Run.h:43
~SiStripPlotGain() override