CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
PFTauDiscriminants::OutlierAngle Class Reference

#include <Discriminants.h>

Inheritance diagram for PFTauDiscriminants::OutlierAngle:
PFTauDiscriminants::DiscriminantBase< double > PFTauDiscriminants::Discriminant

Public Member Functions

 OutlierAngle ()
 
 ~OutlierAngle ()
 
- Public Member Functions inherited from PFTauDiscriminants::DiscriminantBase< double >
void branchTree (TTree *theTree)
 add a branch to a ttree corresponding to this variable More...
 
void compute (PFTauDiscriminantManager *input)
 
 DiscriminantBase (std::string name, std::string rootTypeName, bool branchAsSimpleDataType, bool isMultiple, doubledefaultValue)
 
void fillMVA (std::vector< PhysicsTools::Variable::Value > &mvaHolder) const
 
virtual void setNullResult (PFTauDiscriminantManager *input)
 
virtual ~DiscriminantBase ()
 
- Public Member Functions inherited from PFTauDiscriminants::Discriminant
 Discriminant (std::string name, std::string rootTypeName, bool branchAsSimpleDataType)
 
std::string name () const
 
std::string rootTypeName () const
 
PhysicsTools::AtomicId theAtomicId () const
 
virtual ~Discriminant ()
 

Protected Member Functions

void doComputation (PFTauDiscriminantManager *input, std::vector< double > &result)
 
- Protected Member Functions inherited from PFTauDiscriminants::Discriminant
bool branchSimply () const
 determines whether or not to use simple struct like branching or custom class branching (e.g. TLorentzVector) More...
 

Additional Inherited Members

- Public Types inherited from PFTauDiscriminants::DiscriminantBase< double >
typedef std::vector< double >
::const_iterator 
myVectorIterator
 

Detailed Description

Definition at line 214 of file Discriminants.h.

Constructor & Destructor Documentation

PFTauDiscriminants::OutlierAngle::OutlierAngle ( )
inline

Definition at line 216 of file Discriminants.h.

216 :DiscriminantBase<double>("OutlierAngle", "vector<double>", false, true, 0.0){};
PFTauDiscriminants::OutlierAngle::~OutlierAngle ( )
inline

Definition at line 217 of file Discriminants.h.

217 {};

Member Function Documentation

void PFTauDiscriminants::OutlierAngle::doComputation ( PFTauDiscriminantManager input,
std::vector< double > &  result 
)
protectedvirtual

Implements PFTauDiscriminants::DiscriminantBase< double >.

Definition at line 313 of file Discriminants.cc.

References PFTauDiscriminants::PFTauDiscriminantManager::getDecayMode(), reco::Candidate::momentum(), reco::LeafCandidate::momentum(), and PFTauDiscriminants::PFTauDiscriminantManager::outlierObjectsSortedByPt().

314 {
315  const std::vector<const reco::Candidate*>& theoutlierObjects = input->outlierObjectsSortedByPt();
316  math::XYZVector signalObjectsAxis = input->getDecayMode()->momentum();
317  DeltaR<math::XYZVector> myDRComputer;
318  for(std::vector<const reco::Candidate*>::const_iterator iObject = theoutlierObjects.begin();
319  iObject != theoutlierObjects.end();
320  ++iObject)
321  {
322  const reco::Candidate* currentObject = *iObject;
323  if (currentObject)
324  result.push_back(myDRComputer(currentObject->momentum(), signalObjectsAxis));
325  }
326 }
virtual Vector momentum() const =0
spatial momentum vector
tuple result
Definition: query.py:137
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31