Marlin  1.17.1
 All Classes Namespaces Functions Variables Enumerations Friends Pages
Public Member Functions | Protected Attributes | List of all members
marlin::SimpleTrackSmearer Class Reference

Smears the four vectors of charged tracks according to dP/P = r for a given range of the polar angle. More...

#include <SimpleTrackSmearer.h>

Inheritance diagram for marlin::SimpleTrackSmearer:
marlin::IFourVectorSmearer

Public Member Functions

 SimpleTrackSmearer (const std::vector< float > &resVec)
 
virtual ~SimpleTrackSmearer ()
 Virtual d'tor. More...
 
virtual HepLorentzVector smearedFourVector (const HepLorentzVector &v, int pdgCode)
 Smears the given four vector according to the resolution for the polar angle of the track. More...
 
- Public Member Functions inherited from marlin::IFourVectorSmearer
virtual ~IFourVectorSmearer ()
 Virtual d'tor. More...
 

Protected Attributes

ResVec _resVec
 

Detailed Description

Smears the four vectors of charged tracks according to dP/P = r for a given range of the polar angle.

The resolutions r are given in the constructor as a vector holding triplets of: r0, th_min0, th_max0, r1, th_min1, th_max1, ...
Perfect electron and muon ID is assumed to set the particle energy ( mass ) - all other particles are assumed to be pions.

Constructor & Destructor Documentation

virtual marlin::SimpleTrackSmearer::~SimpleTrackSmearer ( )
inlinevirtual

Virtual d'tor.

Member Function Documentation

HepLorentzVector marlin::SimpleTrackSmearer::smearedFourVector ( const HepLorentzVector &  v,
int  pdgCode 
)
virtual

Smears the given four vector according to the resolution for the polar angle of the track.

Returns a vector with all elements 0. if no resolution is defined.

Implements marlin::IFourVectorSmearer.


The documentation for this class was generated from the following files: