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