#include <PFTauDiscriminantManager.h>
Public Types | |
typedef std::vector< const reco::Candidate * > | candPtrVector |
typedef std::map< std::string, Discriminant *const > | discriminantHolder |
Public Member Functions | |
void | addDiscriminant (Discriminant *const aDiscriminant) |
add a discriminant More... | |
bool | branchTree (TTree *const treeToBranch, bool addTargetBranch=false, bool addWeightBranch=false) |
add a set of branches ot the TTree More... | |
void | buildMVAComputerLink (std::vector< PhysicsTools::Variable::Value > &) |
connect to an MVA computer More... | |
candPtrVector | filterByCharge (const candPtrVector &input, bool isCharged) const |
const reco::PFTauDecayMode * | getDecayMode () const |
returns associated PFTauDecayMode More... | |
const edm::Event * | getEvent () const |
returns associated edm::Event More... | |
const reco::Candidate * | mainTrack () |
get the 'main' track (track computed for relevancy to tau decay resonances) (ie pi- in pi+pi+pi-) More... | |
const std::vector< const reco::Candidate * > & | outlierObjectsSortedByDR () |
const std::vector< const reco::Candidate * > & | outlierObjectsSortedByPt () |
PFTauDiscriminantManager () | |
void | setEvent (const edm::Event &, double eventWeight) |
set the current event. Must be called (once per event) before setTau or setNullResult More... | |
bool | setNullResult () |
void | setSignalFlag (bool isSignal) |
bool | setTau (const reco::PFTauDecayMode &theTau, bool prePass=false, bool preFail=false) |
set objects for this discriminant More... | |
const std::vector< const reco::Candidate * > & | signalObjectsSortedByDR () |
const std::vector< const reco::Candidate * > & | signalObjectsSortedByPt () |
accessed by Discriminant classes (caches to prevent multiple sorts) More... | |
~PFTauDiscriminantManager () | |
Static Public Member Functions | |
static std::vector< const reco::Candidate * > | getLeafDaughters (const reco::Candidate *input) |
return the lowest level constituent candidates of a composite candidate More... | |
Private Member Functions | |
void | clearCache () |
void | computeMainTrack () |
void | fillOutlierObjects (candPtrVector &input) |
void | fillSignalObjects (candPtrVector &input) |
Private Attributes | |
const reco::PFTauDecayMode * | currentTauDecayMode_ |
const edm::Event * | eventData_ |
Double_t | eventWeight_ |
Bool_t | iAmNull_ |
Bool_t | iAmSignal_ |
const reco::Candidate * | mainTrack_ |
discriminantHolder | myDiscriminants_ |
candPtrVector | outlierObjectsSortedByDR_ |
candPtrVector | outlierObjectsSortedByPt_ |
Bool_t | preFail_ |
Bool_t | prePass_ |
candPtrVector | signalObjectsSortedByDR_ |
candPtrVector | signalObjectsSortedByPt_ |
Definition at line 16 of file PFTauDiscriminantManager.h.
typedef std::vector<const reco::Candidate*> PFTauDiscriminants::PFTauDiscriminantManager::candPtrVector |
Definition at line 21 of file PFTauDiscriminantManager.h.
typedef std::map<std::string, Discriminant* const> PFTauDiscriminants::PFTauDiscriminantManager::discriminantHolder |
Definition at line 23 of file PFTauDiscriminantManager.h.
PFTauDiscriminants::PFTauDiscriminantManager::PFTauDiscriminantManager | ( | ) |
Definition at line 10 of file PFTauDiscriminantManager.cc.
References NULL.
PFTauDiscriminants::PFTauDiscriminantManager::~PFTauDiscriminantManager | ( | ) |
Definition at line 367 of file PFTauDiscriminantManager.cc.
void PFTauDiscriminants::PFTauDiscriminantManager::addDiscriminant | ( | Discriminant *const | aDiscriminant | ) |
add a discriminant
Definition at line 21 of file PFTauDiscriminantManager.cc.
References PFTauDiscriminants::Discriminant::name().
Referenced by PFTauMVADiscriminator::PFTauMVADiscriminator(), and TauMVATrainer::TauMVATrainer().
bool PFTauDiscriminants::PFTauDiscriminantManager::branchTree | ( | TTree *const | treeToBranch, |
bool | addTargetBranch = false , |
||
bool | addWeightBranch = false |
||
) |
add a set of branches ot the TTree
Definition at line 301 of file PFTauDiscriminantManager.cc.
References PFTauDiscriminants::Discriminant::branchTree(), and PFTauDiscriminants::Discriminant::name().
Referenced by TauMVATrainer::TauMVATrainer().
void PFTauDiscriminants::PFTauDiscriminantManager::buildMVAComputerLink | ( | std::vector< PhysicsTools::Variable::Value > & | toFill | ) |
connect to an MVA computer
Definition at line 333 of file PFTauDiscriminantManager.cc.
References PFTauDiscriminants::Discriminant::fillMVA().
Referenced by PFTauMVADiscriminator::discriminate().
|
private |
Definition at line 33 of file PFTauDiscriminantManager.cc.
References NULL.
|
private |
|
private |
Definition at line 117 of file PFTauDiscriminantManager.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), reco::LeafCandidate::get(), reco::PFTau::isolationPFCands(), and NULL.
|
private |
Definition at line 103 of file PFTauDiscriminantManager.cc.
References NULL.
candPtrVector PFTauDiscriminants::PFTauDiscriminantManager::filterByCharge | ( | const candPtrVector & | input, |
bool | isCharged | ||
) | const |
Definition at line 207 of file PFTauDiscriminantManager.cc.
References convertSQLitetoXML_cfg::output.
|
inline |
returns associated PFTauDecayMode
Definition at line 43 of file PFTauDiscriminantManager.h.
References currentTauDecayMode_.
Referenced by PFTauDiscriminants::DecayMode::doComputation(), PFTauDiscriminants::Pt::doComputation(), PFTauDiscriminants::Eta::doComputation(), PFTauDiscriminants::MainTrackAngle::doComputation(), PFTauDiscriminants::FilteredObjectPt::doComputation(), PFTauDiscriminants::TrackAngle::doComputation(), PFTauDiscriminants::PiZeroAngle::doComputation(), PFTauDiscriminants::InvariantMassOfSignal::doComputation(), PFTauDiscriminants::InvariantMassOfSignalWithFiltered::doComputation(), PFTauDiscriminants::OutlierAngle::doComputation(), PFTauDiscriminants::ChargedOutlierAngle::doComputation(), and PFTauDiscriminants::NeutralOutlierAngle::doComputation().
|
inline |
returns associated edm::Event
Definition at line 45 of file PFTauDiscriminantManager.h.
References eventData_.
|
static |
return the lowest level constituent candidates of a composite candidate
Definition at line 345 of file PFTauDiscriminantManager.cc.
References reco::Candidate::daughter(), reco::Candidate::numberOfDaughters(), and convertSQLitetoXML_cfg::output.
Referenced by PFTauDiscriminants::GammaOccupancy::doComputation(), and PFTauDiscriminants::GammaPt::doComputation().
const reco::Candidate * PFTauDiscriminants::PFTauDiscriminantManager::mainTrack | ( | ) |
get the 'main' track (track computed for relevancy to tau decay resonances) (ie pi- in pi+pi+pi-)
Definition at line 158 of file PFTauDiscriminantManager.cc.
References DeDxDiscriminatorTools::charge(), NULL, and python.multivaluedict::sort().
Referenced by PFTauDiscriminants::MainTrackPt::doComputation(), PFTauDiscriminants::MainTrackAngle::doComputation(), PFTauDiscriminants::TrackPt::doComputation(), PFTauDiscriminants::TrackAngle::doComputation(), PFTauDiscriminants::Dalitz::doComputation(), and PFTauDiscriminants::InvariantMass::doComputation().
const std::vector< const reco::Candidate * > & PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByDR | ( | ) |
Definition at line 278 of file PFTauDiscriminantManager.cc.
References TauTagTools::computeDeltaR(), NULL, and python.multivaluedict::sort().
const std::vector< const reco::Candidate * > & PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt | ( | ) |
Definition at line 262 of file PFTauDiscriminantManager.cc.
References python.multivaluedict::sort().
Referenced by PFTauDiscriminants::OutlierNCharged::doComputation(), PFTauDiscriminants::OutlierN::doComputation(), PFTauDiscriminants::OutlierPt::doComputation(), PFTauDiscriminants::OutlierSumPt::doComputation(), PFTauDiscriminants::OutlierMass::doComputation(), PFTauDiscriminants::OutlierAngle::doComputation(), PFTauDiscriminants::ChargedOutlierPt::doComputation(), PFTauDiscriminants::ChargedOutlierSumPt::doComputation(), PFTauDiscriminants::ChargedOutlierAngle::doComputation(), PFTauDiscriminants::NeutralOutlierPt::doComputation(), PFTauDiscriminants::NeutralOutlierSumPt::doComputation(), and PFTauDiscriminants::NeutralOutlierAngle::doComputation().
void PFTauDiscriminants::PFTauDiscriminantManager::setEvent | ( | const edm::Event & | iEvent, |
double | eventWeight | ||
) |
set the current event. Must be called (once per event) before setTau or setNullResult
Definition at line 69 of file PFTauDiscriminantManager.cc.
References ExpressReco_HICollisions_FallBack::eventWeight, and iEvent.
Referenced by TauMVATrainer::analyze(), and PFTauMVADiscriminator::beginEvent().
bool PFTauDiscriminants::PFTauDiscriminantManager::setNullResult | ( | ) |
in case there is no tau but you wish to fill anyway (for example, to see situations where one cone algorithm fails to find a tau but another does not
Definition at line 76 of file PFTauDiscriminantManager.cc.
References NULL, and PFTauDiscriminants::Discriminant::setNullResult().
Referenced by TauMVATrainer::analyze().
|
inline |
Definition at line 38 of file PFTauDiscriminantManager.h.
References iAmSignal_.
Referenced by TauMVATrainer::TauMVATrainer().
bool PFTauDiscriminants::PFTauDiscriminantManager::setTau | ( | const reco::PFTauDecayMode & | theTau, |
bool | prePass = false , |
||
bool | preFail = false |
||
) |
set objects for this discriminant
Definition at line 43 of file PFTauDiscriminantManager.cc.
References PFTauDiscriminants::Discriminant::compute().
Referenced by TauMVATrainer::analyze(), and PFTauMVADiscriminator::discriminate().
const std::vector< const reco::Candidate * > & PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByDR | ( | ) |
Definition at line 239 of file PFTauDiscriminantManager.cc.
References TauTagTools::computeDeltaR(), NULL, and python.multivaluedict::sort().
const std::vector< const reco::Candidate * > & PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByPt | ( | ) |
accessed by Discriminant classes (caches to prevent multiple sorts)
Definition at line 222 of file PFTauDiscriminantManager.cc.
References python.multivaluedict::sort().
Referenced by PFTauDiscriminants::TrackPt::doComputation(), PFTauDiscriminants::PiZeroPt::doComputation(), PFTauDiscriminants::GammaOccupancy::doComputation(), PFTauDiscriminants::GammaPt::doComputation(), PFTauDiscriminants::TrackAngle::doComputation(), PFTauDiscriminants::PiZeroAngle::doComputation(), PFTauDiscriminants::Dalitz::doComputation(), and PFTauDiscriminants::InvariantMass::doComputation().
|
private |
Definition at line 72 of file PFTauDiscriminantManager.h.
Referenced by getDecayMode().
|
private |
Definition at line 73 of file PFTauDiscriminantManager.h.
Referenced by getEvent().
|
private |
Definition at line 70 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 66 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 65 of file PFTauDiscriminantManager.h.
Referenced by setSignalFlag().
|
private |
Definition at line 77 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 71 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 81 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 80 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 68 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 67 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 79 of file PFTauDiscriminantManager.h.
|
private |
Definition at line 78 of file PFTauDiscriminantManager.h.