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
EDAnalyzer.h
MessageLogger.h
TrackerGeometry.h
ESHandle.h
AlignmentStats::hitmap_
DetHitMap hitmap_
Definition: AlignmentStats.h:63
AlignmentStats::esTokenTTopo_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > esTokenTTopo_
Definition: AlignmentStats.h:38
AlignmentStats::esTokenTkGeo_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > esTokenTkGeo_
Definition: AlignmentStats.h:39
AlignmentStats::prescale_
uint32_t prescale_
Definition: AlignmentStats.h:48
AlignmentStats::Phi
float Phi[MAXTRKS_]
Definition: AlignmentStats.h:58
AlignmentStats::overlapAM_
edm::InputTag overlapAM_
Definition: AlignmentStats.h:43
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
AlignmentStats::trackerTopology_
std::unique_ptr< TrackerTopology > trackerTopology_
Definition: AlignmentStats.h:66
AlignmentStats::Chi2n
float Chi2n[MAXTRKS_]
Definition: AlignmentStats.h:58
AlignmentStats::hitsTreeName_
std::string hitsTreeName_
Definition: AlignmentStats.h:47
AlignmentStats::outtree_
TTree * outtree_
Definition: AlignmentStats.h:54
AlignmentStats::statsTreeName_
std::string statsTreeName_
Definition: AlignmentStats.h:46
AlignmentStats::MAXTRKS_
static const int MAXTRKS_
Definition: AlignmentStats.h:55
TrackerTopology.h
AlignmentStats::beginJob
void beginJob() override
Definition: AlignmentStats.cc:49
AlignmentStats::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: AlignmentStats.cc:78
EventPrincipal.h
AlignmentStats::keepTrackStats_
bool keepTrackStats_
Definition: AlignmentStats.h:44
AlignmentStats::keepHitPopulation_
bool keepHitPopulation_
Definition: AlignmentStats.h:45
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentStats::src_
edm::InputTag src_
Definition: AlignmentStats.h:42
Event.h
AlignmentStats::ntracks
unsigned int ntracks
Definition: AlignmentStats.h:57
iEvent
int iEvent
Definition: GenABIO.cc:224
AlignmentStats::Nhits
int Nhits[MAXTRKS_][7]
Definition: AlignmentStats.h:59
AlignmentStats::~AlignmentStats
~AlignmentStats() override
Definition: AlignmentStats.cc:45
edm::EventSetup
Definition: EventSetup.h:58
AlignmentStats::Eta
float Eta[MAXTRKS_]
Definition: AlignmentStats.h:58
AlignmentStats::endJob
void endJob() override
Definition: AlignmentStats.cc:251
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
InputTag.h
AlignmentStats::trackerGeometry_
std::unique_ptr< TrackerGeometry > trackerGeometry_
Definition: AlignmentStats.h:67
AlignmentStats::Pt
float Pt[MAXTRKS_]
Definition: AlignmentStats.h:58
AlignmentStats::tmpPresc_
uint32_t tmpPresc_
Definition: AlignmentStats.h:50
AlignmentStats::overlapmap_
DetHitMap overlapmap_
Definition: AlignmentStats.h:64
AlignmentStats::treefile_
TFile * treefile_
Definition: AlignmentStats.h:53
AlignmentStats::AlignmentStats
AlignmentStats(const edm::ParameterSet &iConfig)
Definition: AlignmentStats.cc:28
AlignmentStats::DetHitMap
std::map< uint32_t, uint32_t > DetHitMap
Definition: AlignmentStats.h:62
EventSetup.h
AlignmentStats::run_
int run_
Definition: AlignmentStats.h:56
AlignmentStats::event_
int event_
Definition: AlignmentStats.h:56
ParameterSet.h
AlignmentStats
Definition: AlignmentStats.h:28
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:203
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15