CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: SiStripPlotGain.h,v 1.4 2013/01/03 18:59:37 wmtan Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
30 
33 
35 
39 
40 #include "TH2F.h"
41 #include "TH1F.h"
42 #include "TFile.h"
43 
44 
45 //
46 // class decleration
47 //
48 class TrackerTopology;
49 
51 public:
52  explicit SiStripPlotGain(const edm::ParameterSet&);
54 
55 
56 private:
57  virtual void beginRun(const edm::Run& run, const edm::EventSetup& es);
58  virtual void analyze(const edm::Event&, const edm::EventSetup&){};
59  virtual void endJob();
60 
61  void DoAnalysis(const edm::EventSetup& es, const SiStripApvGain&);
62  void getHistos(const uint32_t & detid, const TrackerTopology* tTopo, std::vector<TH1F*>& histos);
63  TH1F* getHisto(const long unsigned int& index);
64 
65  unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripApvGainRcd>().cacheIdentifier();}
66 
67 
68  // ----------member data ---------------------------
69 
70 
72 
74 
75 
76  TFile* file;
77  std::vector<TH1F*> vTH1;
78 
80 
81 
82  unsigned long long cacheID;
83 };
84 
85 
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
virtual void endJob()
std::vector< TH1F * > vTH1
SiStripDetInfoFileReader * fr
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const T & get() const
Definition: EventSetup.h:55
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es)
TH1F * getHisto(const long unsigned int &index)
TrackerMap * tkmap
SiStripPlotGain(const edm::ParameterSet &)
edm::ESHandle< SiStripApvGain > Handle_
Definition: Run.h:36