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 
15 
16 // #include <Riostream.h>
17 #include <fstream>
18 #include <string>
19 #include <vector>
20 #include <map>
21 
23 
24 #include "TFile.h"
25 #include "TTree.h"
26 
27 //using namespace edm;
28 
30  public:
31  AlignmentStats(const edm::ParameterSet &iConfig);
32  ~AlignmentStats() override;
33  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
34  void beginJob( ) override;
35  void endJob() override;
36 
37  private:
38 
39 
47  uint32_t prescale_;
49  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_;
68 
69 };
70 
71 
72 #endif
float Eta[MAXTRKS_]
uint32_t prescale_
DetHitMap hitmap_
std::map< uint32_t, uint32_t > DetHitMap
edm::InputTag src_
DetHitMap overlapmap_
const TrackerTopology * trackerTopology_
float Chi2n[MAXTRKS_]
int iEvent
Definition: GenABIO.cc:224
uint32_t tmpPresc_
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