CMS 3D CMS Logo

SiStripLAProfileBooker.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripLorentzAngle_SiStripLAProfileBooker_h
2 #define CalibTracker_SiStripLorentzAngle_SiStripLAProfileBooker_h
3 
4 #include <map>
5 
8 
10 
13 
15 
18 
19 #include <TTree.h>
20 #include <TFile.h>
21 #include <TH1D.h>
22 #include <TDirectory.h>
23 
24 class TrackerTopology;
25 
27 public:
30  explicit SiStripLAProfileBooker(const edm::ParameterSet& conf);
31 
32  ~SiStripLAProfileBooker() override;
33 
34  void beginRun(edm::Run const&, const edm::EventSetup& c) override;
35 
36  void endJob() override;
37 
38  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
39 
40  void getlayer(const DetId& detid, const TrackerTopology* tTopo, std::string& name, unsigned int& layerid);
41 
42 private:
43  typedef struct {
44  float thickness;
45  float pitch;
47  } detparameters;
48  typedef std::map<unsigned int, detparameters*> detparmap;
49  typedef std::map<unsigned int, MonitorElement*> histomap;
50 
59  uint8_t Amplitudes[100];
60 
62  TFile* hFile;
63 
64  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
65 
66  histomap histos;
67  histomap summaryhisto;
68 
69  DQMStore* dbe_;
70 
71  detparmap detmap;
72  detparmap summarydetmap;
75 
77 };
78 
79 #endif
std::map< unsigned int, detparameters * > detparmap
std::map< unsigned int, MonitorElement * > histomap
void getlayer(const DetId &detid, const TrackerTopology *tTopo, std::string &name, unsigned int &layerid)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
dqm::legacy::MonitorElement MonitorElement
Definition: DetId.h:17
dqm::legacy::DQMStore DQMStore
void beginRun(edm::Run const &, const edm::EventSetup &c) override
SiStripLAProfileBooker(const edm::ParameterSet &conf)
Definition: Run.h:45
const TrackerGeometry * tracker