Namespaces | Functions | Variables

/Users/jmonk/Physics/ForIA/ForIA/Utils.hh File Reference

#include "ForIA/IFourMomentum.hh"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  ForIA

Functions

double ForIA::modMPi2Pi (double angle)
 convert an angle into the range - $\pi < $ <
convert an angle into the
range<\f $\phi<\f
$\piinlinedoublemodPi(doubleangle){returnfabs(modMPi2Pi(angle));}ThetransversemomentumsquaredofapairoffourvectorsthathavebeensmearedinlinedoublePT2(IFourMomentumConstPtrp1,
IFourMomentumConstPtrp2,
doublesmear1, doublesmear2){doublepx=p1-> 
ForIA::px ()*smear1+p2->px()*smear2
The transverse momentum
squared of a pair of four
vectors double 
ForIA::PT2 (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
The transverse momentum of a
pair of four vectors double 
ForIA::PT (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
The transverse momentum of a
pair of four vectors after
smearing them double 
ForIA::PT (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2, double smear1, double smear2)
The three momentum magnitude
squared of a pair of four
vectors double 
ForIA::P2 (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
The three momentum magnitude
squared of a pair of four
vectors after smearing double 
ForIA::P2 (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2, double smear1, double smear2)
The magnitude of the three
momentum of a pair of four
vectors double 
ForIA::P (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
The invariant mass of a pair
of four vectors double 
ForIA::invMass (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
The invariant mass of a pair
of four vectors after smearing
them double 
ForIA::invMass (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2, double smear1, double smear2)
double ForIA::deltaPhi (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
double ForIA::deltaR (IFourMomentumConstPtr p1, IFourMomentumConstPtr p2)
template<class T >
double ForIA::trackWidth (IFourMomentumConstPtr jet, const vector< boost::shared_ptr< T const > > &tracks)
double ForIA::UtilsScaleNominal (float eta)
double ForIA::UtilsScaleUp (float eta)
double ForIA::UtilsScaleDown (float eta)
double ForIA::UtilsPi0Up (float eta)
double ForIA::UtilsPi0Down (float eta)
double ForIA::UtilsScaleMC (float eta, std::string scaleType)
double ForIA::UtilsClusterCellSyst (float eta, float p)
double ForIA::UtilsEPSyst (float eta, float p)

Variables

const double ForIA::TWOPI = 2.0 * M_PI
convert an angle into the
range<\f $\phi< 2\f
$\piinlinedoublemod2Pi(doubleangle){if(angle
< TWOPI &&angle >
0) returnangle;doubledPhi=fmod(angle,
TWOPI);return(angle > 
ForIA::dPhi
double ForIA::py = p1->py()*smear1 + p2->py()*smear2