CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
48 public:
50 
52 
53  void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override;
54  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
55 
56  enum HistoryClasses { BCWeakDecay = 0, BWeakDecay = 1, CWeakDecay = 2, PU = 3, Other = 4, Fake = 5 };
57  static const std::vector<std::string> TrkHistCat;
58 
59 private:
60  // cut values
61  double distJetAxis_;
62  double decayLength_;
63  double minJetPt_;
64  double maxJetEta_;
65 
66  // strings
68 
69  // InputTags
74 
75  // Tokens
81  // TrackClassifier
83 
84  // Histograms
85  // b jets
86  MonitorElement *nTrkAll_bjet; // total number of selected tracks (or TrackingParticles)
87  MonitorElement *nTrk_bjet[6]; // total number of selected tracks (or TrackingParticles)
88  // in each TrackHistory category
89  // c jets
90  MonitorElement *nTrkAll_cjet; // total number of selected tracks (or TrackingParticles)
91  MonitorElement *nTrk_cjet[6]; // total number of selected tracks (or TrackingParticles)
92  // in each TrackHistory category
93  // dusg jets
94  MonitorElement *nTrkAll_dusgjet; // total number of selected tracks (or TrackingParticles)
95  MonitorElement *nTrk_dusgjet[6]; // total number of selected tracks (or
96  // TrackingParticles) in each TrackHistory category
97 
98  // track properties for all flavours combined
100  *TrkTruthPt_alljets[5]; // Pt of selected tracks (or TrackingParticles)
102  *TrkTruthEta_alljets[5]; // Eta of selected tracks (or TrackingParticles)
104  *TrkTruthPhi_alljets[5]; // Phi of selected tracks (or TrackingParticles)
106  *TrkTruthDxy_alljets[5]; // Transverse IP of selected tracks (or
107  // TrackingParticles)
109  *TrkTruthDz_alljets[5]; // Longitudinal IP of selected tracks (or
110  // TrackingParticles)
112  *TrkTruthHitAll_alljets[5]; // total number Tracker hits of selected
113  // tracks (or TrackingParticles)
115  *TrkTruthHitStrip_alljets[5]; // number of strip hits of of selected
116  // tracks (or TrackingParticles)
118  *TrkTruthHitPixel_alljets[5]; // number of pixel hits of selected tracks
119  // (or TrackingParticles)
120 };
121 
122 #endif
edm::EDGetTokenT< ClusterTPAssociation > clusterTPMapToken_
edm::EDGetTokenT< reco::TrackCollection > TrackCollectionTag_
edm::EDGetTokenT< reco::VertexCollection > PrimaryVertexColl_
edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > ttrackToken_
BDHadronTrackMonitoringAnalyzer(const edm::ParameterSet &pSet)
edm::EDGetTokenT< pat::JetCollection > PatJetCollectionTag_
int iEvent
Definition: GenABIO.cc:224
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
static const std::vector< std::string > TrkHistCat
Get track history and classify it in function of their .
Definition: Run.h:45
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override