CMS 3D CMS Logo

BDHadronTrackMonitoringAnalyzer.h
Go to the documentation of this file.
1 #ifndef BDHadronTrackMonitoringAnalyzer_H
2 #define BDHadronTrackMonitoringAnalyzer_H
3 
10 
13 
20 
24 
28 
36 
37 #include <fstream>
38 #include <iostream>
39 
40 using namespace reco;
41 using namespace edm;
42 using namespace std;
43 
52 public:
54 
56 
57  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59 
60  enum HistoryClasses { BCWeakDecay = 0, BWeakDecay = 1, CWeakDecay = 2, PU = 3, Other = 4, Fake = 5 };
61  static const std::vector<std::string> TrkHistCat;
62 
63 private:
64  // cut values
65  double distJetAxis_;
66  double decayLength_;
67  double minJetPt_;
68  double maxJetEta_;
69 
70  // strings
72 
73  // InputTags
78 
79  // Tokens
84 
85  // TrackClassifier
87 
88  // Histograms
89  // b jets
90  MonitorElement *nTrkAll_bjet; // total number of selected tracks (or TrackingParticles)
91  MonitorElement *nTrk_bjet[6]; // total number of selected tracks (or TrackingParticles)
92  // in each TrackHistory category
93  // c jets
94  MonitorElement *nTrkAll_cjet; // total number of selected tracks (or TrackingParticles)
95  MonitorElement *nTrk_cjet[6]; // total number of selected tracks (or TrackingParticles)
96  // in each TrackHistory category
97  // dusg jets
98  MonitorElement *nTrkAll_dusgjet; // total number of selected tracks (or TrackingParticles)
99  MonitorElement *nTrk_dusgjet[6]; // total number of selected tracks (or
100  // TrackingParticles) in each TrackHistory category
101 
102  // track properties for all flavours combined
103  MonitorElement *TrkPt_alljets[6],
104  *TrkTruthPt_alljets[5]; // Pt of selected tracks (or TrackingParticles)
105  MonitorElement *TrkEta_alljets[6],
106  *TrkTruthEta_alljets[5]; // Eta of selected tracks (or TrackingParticles)
107  MonitorElement *TrkPhi_alljets[6],
108  *TrkTruthPhi_alljets[5]; // Phi of selected tracks (or TrackingParticles)
109  MonitorElement *TrkDxy_alljets[6],
110  *TrkTruthDxy_alljets[5]; // Transverse IP of selected tracks (or
111  // TrackingParticles)
112  MonitorElement *TrkDz_alljets[6],
113  *TrkTruthDz_alljets[5]; // Longitudinal IP of selected tracks (or
114  // TrackingParticles)
115  MonitorElement *TrkHitAll_alljets[6],
116  *TrkTruthHitAll_alljets[5]; // total number Tracker hits of selected
117  // tracks (or TrackingParticles)
118  MonitorElement *TrkHitStrip_alljets[6],
119  *TrkTruthHitStrip_alljets[5]; // number of strip hits of of selected
120  // tracks (or TrackingParticles)
121  MonitorElement *TrkHitPixel_alljets[6],
122  *TrkTruthHitPixel_alljets[5]; // number of pixel hits of selected tracks
123  // (or TrackingParticles)
124 };
125 
126 #endif
edm::EDGetTokenT< ClusterTPAssociation > clusterTPMapToken_
edm::EDGetTokenT< reco::TrackCollection > TrackCollectionTag_
edm::EDGetTokenT< reco::VertexCollection > PrimaryVertexColl_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< pat::JetCollection > PatJetCollectionTag_
int iEvent
Definition: GenABIO.cc:224
static const std::vector< std::string > TrkHistCat
Get track history and classify it in function of their .
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
fixed size matrix
HLT enums.
Definition: Run.h:45