CMS 3D CMS Logo

HLTTauDQMPlotter.cc
Go to the documentation of this file.
1 #include <utility>
2 
4 
5 #include "Math/GenVector/VectorUtil.h"
6 
8  : dqmFullFolder_(std::move(dqmBaseFolder)), configValid_(false) {
9  dqmFolder_ = pset.getUntrackedParameter<std::string>("DQMFolder");
10  dqmFullFolder_ += "/";
12  configValid_ = true;
13 }
14 
16  : dqmFullFolder_(dqmBaseFolder + "/" + dqmFolder), dqmFolder_(dqmFolder), configValid_(true) {}
17 
19 
20 std::pair<bool, LV> HLTTauDQMPlotter::match(const LV& jet, const LVColl& McInfo, double dr) {
21  bool matched = false;
22  LV out;
23  for (auto const& it : McInfo) {
25  if (delta < dr) {
26  matched = true;
27  out = it;
28  break;
29  }
30  }
31  return std::pair<bool, LV>(matched, out);
32 }
muonTagProbeFilters_cff.matched
matched
Definition: muonTagProbeFilters_cff.py:62
LVColl
std::vector< LV > LVColl
Definition: HLTTauDQMPlotter.h:16
funct::false
false
Definition: Factorize.h:29
HLTTauDQMPlotter::HLTTauDQMPlotter
HLTTauDQMPlotter(const edm::ParameterSet &pset, std::string dqmBaseFolder)
Definition: HLTTauDQMPlotter.cc:7
L1TMonitor_cff.dqmFolder
dqmFolder
Definition: L1TMonitor_cff.py:88
HLTTauDQMPlotter.h
HLTTauDQMPlotter::match
std::pair< bool, LV > match(const LV &, const LVColl &, double)
Definition: HLTTauDQMPlotter.cc:20
HLTTauDQMPlotter::dqmFullFolder_
std::string dqmFullFolder_
Definition: HLTTauDQMPlotter.h:47
funct::true
true
Definition: Factorize.h:173
edm::ParameterSet
Definition: ParameterSet.h:47
dumpMFGeometry_cfg.delta
delta
Definition: dumpMFGeometry_cfg.py:25
HLTTauDQMPlotter::~HLTTauDQMPlotter
~HLTTauDQMPlotter()
electronAnalyzer_cfi.DeltaR
DeltaR
Definition: electronAnalyzer_cfi.py:33
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
metsig::jet
Definition: SignAlgoResolutions.h:47
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
LV
math::XYZTLorentzVectorD LV
Definition: HLTTauDQMPlotter.h:15
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
HLTTauDQMPlotter::dqmFolder_
std::string dqmFolder_
Definition: HLTTauDQMPlotter.h:48
HLTTauDQMPlotter::configValid_
bool configValid_
Definition: HLTTauDQMPlotter.h:51
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27