PFRecoTauDiscriminationByDeltaE::PFRecoTauDiscriminationByDeltaE |
( |
const ParameterSet & |
iConfig | ) |
|
|
inlineexplicit |
PFRecoTauDiscriminationByDeltaE::~PFRecoTauDiscriminationByDeltaE |
( |
| ) |
|
|
inlineoverride |
double PFRecoTauDiscriminationByDeltaE::DeltaE |
( |
const PFTauRef & |
tau | ) |
const |
|
private |
Definition at line 53 of file PFRecoTauDiscriminationByDeltaE.cc.
References mps_fire::i, and p4.
55 const std::vector<CandidatePtr>& signalTracks = tau->signalChargedHadrCands();
56 for(
size_t i = 0;
i < signalTracks.size(); ++
i){
58 p4.SetXYZM(signalTracks[
i]->px(),
59 signalTracks[
i]->py(),
60 signalTracks[
i]->pz(),
65 double hadrTauP = tau->momentum().r() * (1.0 - tau->emFraction());
66 if (tau->emFraction() >= 1.0) {
69 return tracksE / hadrTauP - 1.0;
double PFRecoTauDiscriminationByDeltaE::discriminate |
( |
const reco::PFTauRef & |
tau | ) |
const |
|
override |
Definition at line 74 of file PFRecoTauDiscriminationByDeltaE.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
77 desc.
add<
double>(
"deltaEmin", -0.15);
83 psd1.
add<
double>(
"cut");
89 desc.
add<
double>(
"deltaEmax", 1.0);
90 desc.add<
bool>(
"BooleanOutput",
true);
92 descriptions.
add(
"pfRecoTauDiscriminationByDeltaE", desc);
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool PFRecoTauDiscriminationByDeltaE::booleanOutput |
|
private |
double PFRecoTauDiscriminationByDeltaE::chargedPionMass |
|
private |
double PFRecoTauDiscriminationByDeltaE::deltaEmax |
|
private |
double PFRecoTauDiscriminationByDeltaE::deltaEmin |
|
private |