CMS 3D CMS Logo

AlignmentStats.h
Go to the documentation of this file.
1 #ifndef CommonAlignmentMonitor_AlignmentStats_H
2 #define CommonAlignmentMonitor_AlignmentStats_H
3 
4 
14 
15 // #include <Riostream.h>
16 #include <fstream>
17 #include <string>
18 #include <vector>
19 #include <map>
20 
22 
23 #include "TFile.h"
24 #include "TTree.h"
25 
26 //using namespace edm;
27 
29  public:
30  AlignmentStats(const edm::ParameterSet &iConfig);
32  virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup);
33  void beginJob( );
34  void endJob();
35 
36  private:
37 
38 
46  uint32_t prescale_;
48  uint32_t tmpPresc_;
50 
51  //Track stats
52  TFile *treefile_;
53  TTree *outtree_;
54  static const int MAXTRKS_=200;
55  int run_, event_;
56  unsigned int ntracks;
58  int Nhits[MAXTRKS_][7];//0=total, 1-6=Subdets
59 
60  //Hit Population
61  typedef std::map<uint32_t,uint32_t>DetHitMap;
62  DetHitMap hitmap_;
63  DetHitMap overlapmap_;
64 
65  // edm::ESHandle<TrackerGeometry> trackerGeometry_;
67 
69 
70 };
71 
72 
73 #endif
float Eta[MAXTRKS_]
uint32_t prescale_
DetHitMap hitmap_
std::map< uint32_t, uint32_t > DetHitMap
const edm::EventSetup * lastSetup_
edm::InputTag src_
DetHitMap overlapmap_
float Chi2n[MAXTRKS_]
int iEvent
Definition: GenABIO.cc:230
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_
std::pair< OmniClusterRef, TrackingParticleRef > P
unsigned int ntracks
int Nhits[MAXTRKS_][7]
std::string hitsTreeName_
float Pt[MAXTRKS_]
edm::InputTag overlapAM_