#include <Discriminants.h>
Public Member Functions | |
Dalitz () | |
~Dalitz () | |
Protected Member Functions | |
void | doComputation (PFTauDiscriminantManager *input, std::vector< double > &result) |
Definition at line 153 of file Discriminants.h.
PFTauDiscriminants::Dalitz::Dalitz | ( | ) | [inline] |
Definition at line 155 of file Discriminants.h.
:DiscriminantBase<double>("Dalitz", "vector<double>", false, true, 0.0){};
PFTauDiscriminants::Dalitz::~Dalitz | ( | ) | [inline] |
Definition at line 156 of file Discriminants.h.
{};
void PFTauDiscriminants::Dalitz::doComputation | ( | PFTauDiscriminantManager * | input, |
std::vector< double > & | result | ||
) | [protected, virtual] |
Implements PFTauDiscriminants::DiscriminantBase< double >.
Definition at line 204 of file Discriminants.cc.
References PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), reco::Candidate::p4(), and PFTauDiscriminants::PFTauDiscriminantManager::signalObjectsSortedByPt().
{ const std::vector<const reco::Candidate*>& theSignalObjects = input->signalObjectsSortedByPt(); const reco::Candidate* theMainTrack = input->mainTrack(); if (!theMainTrack) return; LorentzVector mainTrackFourVector = theMainTrack->p4(); for(std::vector<const reco::Candidate*>::const_iterator iObject = theSignalObjects.begin(); iObject != theSignalObjects.end(); ++iObject) { const reco::Candidate* currentObject = *iObject; if (currentObject != theMainTrack) { LorentzVector combinedFourVector = mainTrackFourVector + currentObject->p4(); result.push_back(combinedFourVector.mass()); } } }