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;
61 
62  // edm::ESHandle<TrackerGeometry> trackerGeometry_;
65 };
66 
67 #endif
AlignmentStats::trackerTopology_
const TrackerTopology * trackerTopology_
Definition: AlignmentStats.h:64
MessageLogger.h
TrackerGeometry.h
ESHandle.h
AlignmentStats::hitmap_
DetHitMap hitmap_
Definition: AlignmentStats.h:59
TrackerTopology
Definition: TrackerTopology.h:16
AlignmentStats::prescale_
uint32_t prescale_
Definition: AlignmentStats.h:44
AlignmentStats::Phi
float Phi[MAXTRKS_]
Definition: AlignmentStats.h:54
AlignmentStats::overlapAM_
edm::InputTag overlapAM_
Definition: AlignmentStats.h:39
EDAnalyzer.h
AlignmentStats::Chi2n
float Chi2n[MAXTRKS_]
Definition: AlignmentStats.h:54
AlignmentStats::hitsTreeName_
std::string hitsTreeName_
Definition: AlignmentStats.h:43
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
AlignmentStats::outtree_
TTree * outtree_
Definition: AlignmentStats.h:50
AlignmentStats::statsTreeName_
std::string statsTreeName_
Definition: AlignmentStats.h:42
AlignmentStats::MAXTRKS_
static const int MAXTRKS_
Definition: AlignmentStats.h:51
TrackerTopology.h
AlignmentStats::beginJob
void beginJob() override
Definition: AlignmentStats.cc:47
AlignmentStats::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: AlignmentStats.cc:80
EventPrincipal.h
AlignmentStats::keepTrackStats_
bool keepTrackStats_
Definition: AlignmentStats.h:40
AlignmentStats::keepHitPopulation_
bool keepHitPopulation_
Definition: AlignmentStats.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentStats::src_
edm::InputTag src_
Definition: AlignmentStats.h:38
Event.h
AlignmentStats::ntracks
unsigned int ntracks
Definition: AlignmentStats.h:53
iEvent
int iEvent
Definition: GenABIO.cc:224
AlignmentStats::Nhits
int Nhits[MAXTRKS_][7]
Definition: AlignmentStats.h:55
AlignmentStats::~AlignmentStats
~AlignmentStats() override
Definition: AlignmentStats.cc:43
edm::EventSetup
Definition: EventSetup.h:57
AlignmentStats::Eta
float Eta[MAXTRKS_]
Definition: AlignmentStats.h:54
AlignmentStats::endJob
void endJob() override
Definition: AlignmentStats.cc:254
InputTag.h
AlignmentStats::Pt
float Pt[MAXTRKS_]
Definition: AlignmentStats.h:54
AlignmentStats::tmpPresc_
uint32_t tmpPresc_
Definition: AlignmentStats.h:46
AlignmentStats::overlapmap_
DetHitMap overlapmap_
Definition: AlignmentStats.h:60
AlignmentStats::treefile_
TFile * treefile_
Definition: AlignmentStats.h:49
AlignmentStats::AlignmentStats
AlignmentStats(const edm::ParameterSet &iConfig)
Definition: AlignmentStats.cc:28
AlignmentStats::DetHitMap
std::map< uint32_t, uint32_t > DetHitMap
Definition: AlignmentStats.h:58
EventSetup.h
AlignmentStats::run_
int run_
Definition: AlignmentStats.h:52
AlignmentStats::event_
int event_
Definition: AlignmentStats.h:52
ParameterSet.h
AlignmentStats
Definition: AlignmentStats.h:28
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:202
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
AlignmentStats::trackerGeometry_
const TrackerGeometry * trackerGeometry_
Definition: AlignmentStats.h:63
TrackerGeometry
Definition: TrackerGeometry.h:14