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)),
9  configValid_(false)
10 {
11  dqmFolder_ = pset.getUntrackedParameter<std::string>("DQMFolder");
12  dqmFullFolder_ += "/";
13  dqmFullFolder_ += dqmFolder_;
14  configValid_ = true;
15 }
16 
17 HLTTauDQMPlotter::HLTTauDQMPlotter(const std::string& dqmFolder, const std::string& dqmBaseFolder):
18  dqmFullFolder_(dqmBaseFolder+"/"+dqmFolder),
19  dqmFolder_(dqmFolder),
21 {}
22 
24 
25 std::pair<bool,LV> HLTTauDQMPlotter::match( const LV& jet, const LVColl& McInfo, double dr ) {
26  bool matched = false;
27  LV out;
28  for (auto const & it : McInfo) {
29  double delta = ROOT::Math::VectorUtil::DeltaR(jet,it);
30  if ( delta < dr ) {
31  matched = true;
32  out = it;
33  break;
34  }
35  }
36  return std::pair<bool,LV>(matched,out);
37 }
dbl * delta
Definition: mlp_gen.cc:36
T getUntrackedParameter(std::string const &, T const &) const
math::XYZTLorentzVectorD LV
std::string dqmFolder_
HLTTauDQMPlotter(const edm::ParameterSet &pset, std::string dqmBaseFolder)
std::vector< LV > LVColl
std::pair< bool, LV > match(const LV &, const LVColl &, double)
std::string dqmFullFolder_
def move(src, dest)
Definition: eostools.py:511