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 
14 //#include "DQMServices/Core/interface/MonitorElement.h"
15 //#include "DQMServices/Core/interface/DQMStore.h"
16 
19 
20 #include <TTree.h>
21 #include <TFile.h>
22 #include <TH1D.h>
23 #include <TDirectory.h>
24 
25 class TrackerTopology;
26 class MonitorElement;
27 class DQMStore;
28 
30 {
31  public:
32 
33  explicit SiStripLAProfileBooker(const edm::ParameterSet& conf);
34 
35  ~SiStripLAProfileBooker() override;
36 
37  void beginRun(edm::Run const&,const edm::EventSetup& c) override;
38 
39  void endJob() override;
40 
41  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
42 
43  void getlayer(const DetId & detid, const TrackerTopology* tTopo, std::string &name,unsigned int &layerid);
44 
45  private:
46 
47  typedef struct {float thickness; float pitch; LocalVector magfield;} detparameters;
48  typedef std::map <unsigned int, detparameters*> detparmap;
49  typedef std::map <unsigned int, MonitorElement*> histomap;
50 
56  uint8_t Amplitudes[100];
57 
59  TFile* hFile;
60 
61  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
62 
63  histomap histos;
64  histomap summaryhisto;
65 
67 
68  detparmap detmap;
69  detparmap summarydetmap;
72 
74 
75 };
76 
77 
78 #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
Definition: DetId.h:18
void beginRun(edm::Run const &, const edm::EventSetup &c) override
SiStripLAProfileBooker(const edm::ParameterSet &conf)
Definition: Run.h:45
const TrackerGeometry * tracker