CMS 3D CMS Logo

AlignmentStats.h
Go to the documentation of this file.
1 #ifndef CommonAlignmentMonitor_AlignmentStats_H
2 #define CommonAlignmentMonitor_AlignmentStats_H
3 
17 
18 // #include <Riostream.h>
19 #include <fstream>
20 #include <string>
21 #include <vector>
22 #include <map>
23 
25 
26 #include "TFile.h"
27 #include "TTree.h"
28 
29 //using namespace edm;
30 
32 public:
33  AlignmentStats(const edm::ParameterSet &iConfig);
34  ~AlignmentStats() override = default;
35  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
36 
37  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
38  void beginJob() override;
39  void endJob() override;
40 
41 private:
42  // esToken
45 
49  const bool keepTrackStats_;
50  const bool keepHitPopulation_;
53  const uint32_t prescale_;
54 
57 
59  uint32_t tmpPresc_;
60 
61  //Track stats
62  TFile *treefile_;
63  TTree *outtree_;
64  static const int MAXTRKS_ = 200;
65  int run_, event_;
66  unsigned int ntracks;
68  int Nhits[MAXTRKS_][7]; //0=total, 1-6=Subdets
69 
70  //Hit Population
71  typedef std::map<uint32_t, uint32_t> DetHitMap;
74 
75  std::unique_ptr<TrackerTopology> trackerTopology_;
76  std::unique_ptr<TrackerGeometry> trackerGeometry_;
77 };
78 
79 #endif
float Eta[MAXTRKS_]
DetHitMap hitmap_
const std::string hitsTreeName_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > esTokenTkGeo_
~AlignmentStats() override=default
const bool keepHitPopulation_
DetHitMap overlapmap_
float Chi2n[MAXTRKS_]
const uint32_t prescale_
std::unique_ptr< TrackerGeometry > trackerGeometry_
const edm::EDGetTokenT< reco::TrackCollection > trackToken_
int iEvent
Definition: GenABIO.cc:224
uint32_t tmpPresc_
const edm::InputTag overlapAM_
std::map< uint32_t, uint32_t > DetHitMap
float Phi[MAXTRKS_]
const edm::InputTag src_
const std::string statsTreeName_
const edm::EDGetTokenT< AliClusterValueMap > mapToken_
AlignmentStats(const edm::ParameterSet &iConfig)
static const int MAXTRKS_
std::pair< OmniClusterRef, TrackingParticleRef > P
unsigned int ntracks
int Nhits[MAXTRKS_][7]
float Pt[MAXTRKS_]
const bool keepTrackStats_
void beginJob() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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