#include <Discriminants.h>
Public Member Functions | |
TrackAngle () | |
~TrackAngle () | |
Protected Member Functions | |
void | doComputation (PFTauDiscriminantManager *input, std::vector< double > &result) |
Definition at line 137 of file Discriminants.h.
PFTauDiscriminants::TrackAngle::TrackAngle | ( | ) | [inline] |
Definition at line 139 of file Discriminants.h.
:DiscriminantBase<double>("TrackAngle", "vector<double>", false, true, 0.0){};
PFTauDiscriminants::TrackAngle::~TrackAngle | ( | ) | [inline] |
Definition at line 140 of file Discriminants.h.
{};
void PFTauDiscriminants::TrackAngle::doComputation | ( | PFTauDiscriminantManager * | input, |
std::vector< double > & | result | ||
) | [protected, virtual] |
Implements PFTauDiscriminants::DiscriminantBase< double >.
Definition at line 164 of file Discriminants.cc.
References reco::Candidate::charge(), PFTauDiscriminants::PFTauDiscriminantManager::getDecayMode(), PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), reco::LeafCandidate::momentum(), reco::Candidate::momentum(), and PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByPt().
{ const std::vector<const reco::Candidate*>& theSignalObjects = input->signalObjectsSortedByPt(); math::XYZVector signalObjectsAxis = input->getDecayMode()->momentum(); const reco::Candidate* theMainTrack = input->mainTrack(); DeltaR<math::XYZVector> myDRComputer; for(std::vector<const reco::Candidate*>::const_iterator iObject = theSignalObjects.begin(); iObject != theSignalObjects.end(); ++iObject) { const reco::Candidate* currentObject = *iObject; if (currentObject->charge() && currentObject != theMainTrack) result.push_back(myDRComputer(currentObject->momentum(), signalObjectsAxis)); } }