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:
37  // esToken
40 
48  uint32_t prescale_;
50  uint32_t tmpPresc_;
51 
52  //Track stats
53  TFile *treefile_;
54  TTree *outtree_;
55  static const int MAXTRKS_ = 200;
56  int run_, event_;
57  unsigned int ntracks;
59  int Nhits[MAXTRKS_][7]; //0=total, 1-6=Subdets
60 
61  //Hit Population
62  typedef std::map<uint32_t, uint32_t> DetHitMap;
65 
66  std::unique_ptr<TrackerTopology> trackerTopology_;
67  std::unique_ptr<TrackerGeometry> trackerGeometry_;
68 };
69 
70 #endif
float Eta[MAXTRKS_]
uint32_t prescale_
DetHitMap hitmap_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > esTokenTkGeo_
edm::InputTag src_
DetHitMap overlapmap_
float Chi2n[MAXTRKS_]
std::unique_ptr< TrackerGeometry > trackerGeometry_
int iEvent
Definition: GenABIO.cc:224
uint32_t tmpPresc_
std::map< uint32_t, uint32_t > DetHitMap
float Phi[MAXTRKS_]
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_
std::unique_ptr< TrackerTopology > trackerTopology_
void endJob() override
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > esTokenTTopo_
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override