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 
11 
14 
17 
20 
22 
25 
26 #include <TTree.h>
27 #include <TFile.h>
28 #include <TH1D.h>
29 #include <TDirectory.h>
30 
31 class TrackerTopology;
32 
33 class SiStripLAProfileBooker : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
34 public:
37  explicit SiStripLAProfileBooker(const edm::ParameterSet& conf);
38 
39  ~SiStripLAProfileBooker() override;
40 
41  void beginRun(edm::Run const&, const edm::EventSetup& c) override;
42 
43  void endRun(edm::Run const&, const edm::EventSetup& c) override;
44 
45  void endJob() override;
46 
47  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
48 
49  void getlayer(const DetId& detid, const TrackerTopology* tTopo, std::string& name, unsigned int& layerid);
50 
51 private:
52  typedef struct {
53  float thickness;
54  float pitch;
56  } detparameters;
57  typedef std::map<unsigned int, detparameters*> detparmap;
58  typedef std::map<unsigned int, MonitorElement*> histomap;
59 
68  uint8_t Amplitudes[100];
69 
71  TFile* hFile;
72 
73  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
74 
77 
79 
84 
85  const TrackerGeometry* tkGeom_ = nullptr;
90 };
91 
92 #endif
std::map< unsigned int, detparameters * > detparmap
std::map< unsigned int, MonitorElement * > histomap
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
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
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
dqm::legacy::MonitorElement MonitorElement
Definition: DetId.h:17
void endRun(edm::Run const &, const edm::EventSetup &c) override
dqm::legacy::DQMStore DQMStore
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void beginRun(edm::Run const &, const edm::EventSetup &c) override
SiStripLAProfileBooker(const edm::ParameterSet &conf)
const TrackerGeometry * tkGeom_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: Run.h:45