CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
29 {
30  public:
31 
33 
35 
36  void beginRun(const edm::EventSetup& c);
37 
38  void endJob();
39 
40  void analyze(const edm::Event& e, const edm::EventSetup& c);
41 
42  void getlayer(const DetId & detid, std::string &name,unsigned int &layerid);
43 
44  private:
45 
46  typedef struct {float thickness; float pitch; LocalVector magfield;} detparameters;
47  typedef std::map <unsigned int, detparameters*> detparmap;
48  typedef std::map <unsigned int, MonitorElement*> histomap;
49 
55  uint8_t Amplitudes[100];
56 
58  TFile* hFile;
59 
60  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
61 
64 
66 
70  std::string treename_;
71 
73 
74 };
75 
76 
77 #endif
tuple magfield
Definition: HLT_ES_cff.py:2311
std::map< unsigned int, detparameters * > detparmap
void beginRun(const edm::EventSetup &c)
std::map< unsigned int, MonitorElement * > histomap
tuple conf
Definition: dbtoconf.py:185
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: DetId.h:20
SiStripLAProfileBooker(const edm::ParameterSet &conf)
const TrackerGeometry * tracker
void getlayer(const DetId &detid, std::string &name, unsigned int &layerid)