CMS 3D CMS Logo

AlignmentStats.h
Go to the documentation of this file.
1 #ifndef CommonAlignmentMonitor_AlignmentStats_H
2 #define CommonAlignmentMonitor_AlignmentStats_H
3 
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);
31  ~AlignmentStats() override;
32  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
33  void beginJob() override;
34  void endJob() override;
35 
36 private:
44  uint32_t prescale_;
46  uint32_t tmpPresc_;
47 
48  //Track stats
49  TFile *treefile_;
50  TTree *outtree_;
51  static const int MAXTRKS_ = 200;
52  int run_, event_;
53  unsigned int ntracks;
55  int Nhits[MAXTRKS_][7]; //0=total, 1-6=Subdets
56 
57  //Hit Population
58  typedef std::map<uint32_t, uint32_t> DetHitMap;
59  DetHitMap hitmap_;
60  DetHitMap overlapmap_;
61 
62  // edm::ESHandle<TrackerGeometry> trackerGeometry_;
65 };
66 
67 #endif
float Eta[MAXTRKS_]
uint32_t prescale_
DetHitMap hitmap_
edm::InputTag src_
DetHitMap overlapmap_
const TrackerTopology * trackerTopology_
float Chi2n[MAXTRKS_]
int iEvent
Definition: GenABIO.cc:224
uint32_t tmpPresc_
std::map< uint32_t, uint32_t > DetHitMap
float Phi[MAXTRKS_]
const TrackerGeometry * trackerGeometry_
std::string statsTreeName_
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_]
void beginJob() override
~AlignmentStats() override
edm::InputTag overlapAM_
void endJob() override
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override