CMS 3D CMS Logo

HLTMuonMatchAndPlot.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Trigger_HLTMuonMatchAndPlot_H
2 #define DQMOffline_Trigger_HLTMuonMatchAndPlot_H
3 
16 // Base Class Headers
17 
23 
25 
37 
39 
40 #include <vector>
41 #include "TFile.h"
42 #include "TNtuple.h"
43 #include "TString.h"
44 #include "TPRegexp.h"
45 
48 
50 
51 const double NOMATCH = 999.;
52 const std::string EFFICIENCY_SUFFIXES[2] = {"denom", "numer"};
53 
56 
58 public:
61 
64 
65  // Analyzer Methods
66  void beginRun(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &);
72  const edm::TriggerNames &);
73  void endRun(const edm::Run &, const edm::EventSetup &);
74 
75  // Helper Methods
76  void fillEdges(size_t &nBins, float *&edges, const std::vector<double> &binning);
77  template <class T>
78  void fillMapFromPSet(std::map<std::string, T> &, const edm::ParameterSet &, const std::string &);
79  template <class T1, class T2>
80  std::vector<size_t> matchByDeltaR(const std::vector<T1> &, const std::vector<T2> &, const double maxDeltaR = NOMATCH);
81 
82 private:
83  // Internal Methods
85  void book2D(DQMStore::IBooker &, const std::string &, const std::string &, const std::string &, const std::string &);
87  const reco::BeamSpot &,
88  bool,
90  double,
91  double);
92 
95  const trigger::TriggerEvent &,
96  bool hasTriggerCuts,
98 
99  // Input from Configuration File
102  std::vector<std::string> requiredTriggers_;
103  std::map<std::string, std::vector<double> > binParams_;
104  std::map<std::string, double> plotCuts_;
107 
108  // Member Variables
110  unsigned int cutMinPt_;
114  std::map<std::string, MonitorElement *> hists_;
115 
116  // Selectors
119 
121  double targetZ0Cut_;
122  double targetD0Cut_;
126  double probeZ0Cut_;
127  double probeD0Cut_;
128 
131 };
132 
133 #endif
reco::MuonCollection selectedMuons(const reco::MuonCollection &, const reco::BeamSpot &, bool, const StringCutObjectSelector< reco::Muon > &, double, double)
StringCutObjectSelector< reco::Muon > probeMuonSelector_
The single EDProduct to be saved for each event (AOD case)
Definition: TriggerEvent.h:25
const std::string EFFICIENCY_SUFFIXES[2]
edm::ParameterSet targetParams_
std::map< std::string, std::vector< double > > binParams_
std::map< std::string, MonitorElement * > hists_
dqm::legacy::MonitorElement MonitorElement
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
HLTMuonMatchAndPlot(const edm::ParameterSet &, std::string, std::string, bool)
Constructor.
std::vector< std::string > requiredTriggers_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
const double NOMATCH
dqm::legacy::DQMStore DQMStore
void book2D(DQMStore::IBooker &, const std::string &, const std::string &, const std::string &, const std::string &)
std::vector< size_t > matchByDeltaR(const std::vector< T1 > &, const std::vector< T2 > &, const double maxDeltaR=NOMATCH)
void fillMapFromPSet(std::map< std::string, T > &, const edm::ParameterSet &, const std::string &)
trigger::TriggerObjectCollection selectedTriggerObjects(const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &, bool hasTriggerCuts, const StringCutObjectSelector< trigger::TriggerObject > &triggerSelector)
math::XYZTLorentzVector LorentzVector
void book1D(DQMStore::IBooker &, std::string, const std::string &, std::string)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
void analyze(edm::Handle< reco::MuonCollection > &, edm::Handle< reco::BeamSpot > &, edm::Handle< reco::VertexCollection > &, edm::Handle< trigger::TriggerEvent > &, edm::Handle< edm::TriggerResults > &, const edm::TriggerNames &)
StringCutObjectSelector< reco::Muon > targetMuonSelector_
edm::ParameterSet probeParams_
StringCutObjectSelector< trigger::TriggerObject > triggerSelector_
void endRun(const edm::Run &, const edm::EventSetup &)
std::map< std::string, double > plotCuts_
void fillEdges(size_t &nBins, float *&edges, const std::vector< double > &binning)
Definition: Run.h:45
void beginRun(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)