Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DQMOffline
Trigger
src
HLTTauDQMPlotter.cc
Go to the documentation of this file.
1
#include <utility>
2
3
#include "
DQMOffline/Trigger/interface/HLTTauDQMPlotter.h
"
4
5
#include "Math/GenVector/VectorUtil.h"
6
7
HLTTauDQMPlotter::HLTTauDQMPlotter
(
const
edm::ParameterSet
&
pset
,
std::string
dqmBaseFolder)
8
: dqmFullFolder_(std::
move
(dqmBaseFolder)), configValid_(
false
) {
9
dqmFolder_
= pset.
getUntrackedParameter
<
std::string
>(
"DQMFolder"
);
10
dqmFullFolder_
+=
"/"
;
11
dqmFullFolder_ +=
dqmFolder_
;
12
configValid_
=
true
;
13
}
14
15
HLTTauDQMPlotter::HLTTauDQMPlotter
(
const
std::string
& dqmFolder,
const
std::string
& dqmBaseFolder)
16
: dqmFullFolder_(dqmBaseFolder +
"/"
+ dqmFolder), dqmFolder_(dqmFolder), configValid_(
true
) {}
17
18
HLTTauDQMPlotter::~HLTTauDQMPlotter
() =
default
;
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) {
24
double
delta
=
ROOT::Math::VectorUtil::DeltaR
(jet, it);
25
if
(delta < dr) {
26
matched =
true
;
27
out = it;
28
break
;
29
}
30
}
31
return
std::pair<bool, LV>(matched,
out
);
32
}
metsig::jet
Definition:
SignAlgoResolutions.h:47
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
HLTTauDQMPlotter::~HLTTauDQMPlotter
~HLTTauDQMPlotter()
funct::false
false
Definition:
Factorize.h:29
LV
math::XYZTLorentzVectorD LV
Definition:
HLTTauDQMPlotter.h:15
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:591
runTauDisplay.dr
tuple dr
Definition:
runTauDisplay.py:333
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HLTTauDQMPlotter::dqmFolder_
std::string dqmFolder_
Definition:
HLTTauDQMPlotter.h:48
funct::true
true
Definition:
Factorize.h:173
CommonMethods.delta
def delta
Definition:
CommonMethods.py:323
eostools.move
def move
Definition:
eostools.py:511
HLTTauDQMPlotter::configValid_
bool configValid_
Definition:
HLTTauDQMPlotter.h:51
HLTTauDQMPlotter::HLTTauDQMPlotter
HLTTauDQMPlotter(const edm::ParameterSet &pset, std::string dqmBaseFolder)
Definition:
HLTTauDQMPlotter.cc:7
LVColl
std::vector< LV > LVColl
Definition:
HLTTauDQMPlotter.h:16
edm::ParameterSet
Definition:
ParameterSet.h:47
HLTTauDQMPlotter::match
std::pair< bool, LV > match(const LV &, const LVColl &, double)
Definition:
HLTTauDQMPlotter.cc:20
HLT_FULL_cff.DeltaR
tuple DeltaR
Definition:
HLT_FULL_cff.py:479
HLTTauDQMPlotter::dqmFullFolder_
std::string dqmFullFolder_
Definition:
HLTTauDQMPlotter.h:47
HLTTauDQMPlotter.h
submitPVResolutionJobs.out
string out
Definition:
submitPVResolutionJobs.py:118
Generated for CMSSW Reference Manual by
1.8.5