CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTMuonMatchAndPlot.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Trigger_HLTMuonMatchAndPlot_H
2 #define DQMOffline_Trigger_HLTMuonMatchAndPlot_H
3 
18 // Base Class Headers
19 
20 //#include "FWCore/Framework/interface/Frameworkfwd.h"
25 //#include "DataFormats/Common/interface/RefToBase.h"
26 //#include "DataFormats/TrackReco/interface/Track.h"
27 //#include "DataFormats/Candidate/interface/Candidate.h"
28 
31 
41 
43 
44 #include <vector>
45 #include "TFile.h"
46 #include "TNtuple.h"
47 #include "TString.h"
48 #include "TPRegexp.h"
49 
50 
51 
54 
56 
57 const double NOMATCH = 999.;
58 const std::string EFFICIENCY_SUFFIXES[2] = {"denom", "numer"};
59 
60 
63 
65 
66  public:
67 
70  const std::vector<std::string>&);
71 
72  // Analyzer Methods
73  void beginRun(const edm::Run &, const edm::EventSetup &);
74  void analyze(const edm::Event &, const edm::EventSetup &);
75  void endRun(const edm::Run &, const edm::EventSetup &);
76 
77  // Helper Methods
78  void fillEdges(size_t & nBins, float * & edges, const std::vector<double>& binning);
79  template <class T> void
80  fillMapFromPSet(std::map<std::string, T> &, const edm::ParameterSet&, std::string);
81  template <class T1, class T2> std::vector<size_t>
82  matchByDeltaR(const std::vector<T1> &, const std::vector<T2> &,
83  const double maxDeltaR = NOMATCH);
84 
85  private:
86 
87  // Internal Methods
91  const reco::MuonCollection &,
92  const reco::BeamSpot &,
93  bool,
95  double, double);
98  const trigger::TriggerEvent &,
99  const edm::ParameterSet &);
100 
101  // Input from Configuration File
104  std::vector<std::string> requiredTriggers_;
105  std::map<std::string, edm::InputTag> inputTags_;
106  std::map<std::string, std::vector<double> > binParams_;
107  std::map<std::string, double> plotCuts_;
110 
111  // Member Variables
113  unsigned int cutMinPt_;
115  std::vector<std::string> moduleLabels_;
117  std::map<std::string, MonitorElement *> hists_;
118 
119  // Selectors
122 
124  double targetZ0Cut_;
125  double targetD0Cut_;
127  double probeZ0Cut_;
128  double probeD0Cut_;
129 };
130 
131 #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::vector< std::string > moduleLabels_
void book1D(std::string, std::string, std::string)
std::map< std::string, std::vector< double > > binParams_
std::map< std::string, MonitorElement * > hists_
dictionary edges
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
std::vector< std::string > requiredTriggers_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
const double NOMATCH
void fillMapFromPSet(std::map< std::string, T > &, const edm::ParameterSet &, std::string)
void analyze(const edm::Event &, const edm::EventSetup &)
void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< size_t > matchByDeltaR(const std::vector< T1 > &, const std::vector< T2 > &, const double maxDeltaR=NOMATCH)
void book2D(std::string, std::string, std::string, std::string)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:81
StringCutObjectSelector< reco::Muon > targetMuonSelector_
std::map< std::string, edm::InputTag > inputTags_
trigger::TriggerObjectCollection selectedTriggerObjects(const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &, const edm::ParameterSet &)
edm::ParameterSet probeParams_
void endRun(const edm::Run &, const edm::EventSetup &)
HLTMuonMatchAndPlot(const edm::ParameterSet &, std::string, const std::vector< std::string > &)
Constructor.
std::map< std::string, double > plotCuts_
void fillEdges(size_t &nBins, float *&edges, const std::vector< double > &binning)
Definition: Run.h:41
math::PtEtaPhiELorentzVectorF LorentzVector