CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignmentStats.h
Go to the documentation of this file.
1 #ifndef CommonAlignmentMonitor_AlignmentStats_H
2 #define CommonAlignmentMonitor_AlignmentStats_H
3 
4 
5 #include <Riostream.h>
6 #include <fstream>
7 #include <string>
8 #include <vector>
9 #include <map>
10 
21 
22 #include "TFile.h"
23 #include "TTree.h"
24 
25 //using namespace edm;
26 
28  public:
29  AlignmentStats(const edm::ParameterSet &iConfig);
31  virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup);
32  void beginJob( );
33  void endJob();
34 
35  private:
36 
37 
43  std::string statsTreeName_;
44  std::string hitsTreeName_;
45  uint32_t prescale_;
47  uint32_t tmpPresc_;
49 
50  //Track stats
51  TFile *treefile_;
52  TTree *outtree_;
53  static const int MAXTRKS_=200;
54  int run_, event_;
55  unsigned int ntracks;
57  int Nhits[MAXTRKS_][7];//0=total, 1-6=Subdets
58 
59  //Hit Population
60  typedef map<uint32_t,uint32_t>DetHitMap;
63 
64  // edm::ESHandle<TrackerGeometry> trackerGeometry_;
66 };
67 
68 
69 #endif
map< uint32_t, uint32_t > DetHitMap
float Eta[MAXTRKS_]
uint32_t prescale_
DetHitMap hitmap_
edm::InputTag src_
DetHitMap overlapmap_
float Chi2n[MAXTRKS_]
float P[MAXTRKS_]
int iEvent
Definition: GenABIO.cc:243
uint32_t tmpPresc_
float Phi[MAXTRKS_]
const TrackerGeometry * trackerGeometry_
std::string statsTreeName_
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
AlignmentStats(const edm::ParameterSet &iConfig)
static const int MAXTRKS_
unsigned int ntracks
int Nhits[MAXTRKS_][7]
std::string hitsTreeName_
float Pt[MAXTRKS_]
edm::InputTag overlapAM_