P4Helpers Namespace Reference

Functions

double deltaEta (const I4Momentum &p1, const I4Momentum &p2)
 Computes efficiently {}.
double deltaEtaSq (const I4Momentum &p1, const I4Momentum &p2)
 Computes efficiently {}^2.
double deltaEta (const I4Momentum *const p1, const I4Momentum *const p2)
 Computes efficiently {}, pointer args.
double deltaPhi (double phiA, double phiB)
double deltaPhi (const I4Momentum &p4, const double phi)
double deltaPhi (const I4Momentum &pA, const I4Momentum &pB)
double deltaPhiSq (const I4Momentum &pA, const I4Momentum &pB)
double deltaPhi (const I4Momentum *const pA, const I4Momentum *const pB)
double deltaR (const I4Momentum &p4, double eta, double phi)
 {R} from 1 I4Momentum
double deltaR (const I4Momentum &pA, const I4Momentum &pB)
double deltaR (const I4Momentum *const pA, const I4Momentum *const pB)
bool isInDeltaR (const I4Momentum &p1, const I4Momentum &p2, double dR)
double invMass (const I4Momentum &pA, const I4Momentum &pB)
double invMass (const I4Momentum *const pA, const I4Momentum *const pB)
double invMass (const I4Momentum &pA, const I4Momentum &pB, const I4Momentum &pC, const I4Momentum &pD)
double invMass (const I4Momentum *const pA, const I4Momentum *const pB, const I4Momentum *const pC, const I4Momentum *const pD)
template<class Iterator_t , class Predicate_t >
void sort (Iterator_t itr, Iterator_t itrEnd, Predicate_t p)
 sort a container according to the given predicate
template<class Container_t , class Predicate_t >
void sort (Container_t &container, Predicate_t p)
 sort a container according to the given predicate
template<class Container_t >
bool closestDeltaR (const double eta, const double phi, Container_t &coll, std::size_t &index, double &deltaR)
template<class Container_t >
bool closestDeltaR (const I4Momentum &p4, Container_t &coll, std::size_t &index, double &deltaR)
template<class Container_t >
bool closestDeltaR (const double eta, const double phi, const double ene, Container_t &coll, std::size_t &index, double &deltaR, double &deltaE)
template<class Container_t >
bool closestDeltaR (const I4Momentum &p4, Container_t &coll, std::size_t &index, double &deltaR, double &deltaE)

Detailed Description

P4Helpers provides static helper functions for kinematic calculation on objects deriving from I4Momentum.

Author:
David Rousseau rousseau@lal.in2p3.fr
Sebastien Binet binet@cern.ch
Tadashi Maeno

Function Documentation

template<class Container_t >
bool P4Helpers::closestDeltaR ( const I4Momentum &  p4,
Container_t &  coll,
std::size_t &  index,
double &  deltaR,
double &  deltaE 
) [inline]

find the closest element in R - with a condition on E

Parameters:
index [out] index of the closest element
deltaR [out] {R}
deltaE [out] {E}
Returns:
false if found
template<class Container_t >
bool P4Helpers::closestDeltaR ( const double  eta,
const double  phi,
const double  ene,
Container_t &  coll,
std::size_t &  index,
double &  deltaR,
double &  deltaE 
) [inline]

find the closest element in R - with a condition on E

Parameters:
index [out] index of the closest element
deltaR [out] {R}
deltaE [out] {E}
Returns:
true if found
template<class Container_t >
bool P4Helpers::closestDeltaR ( const I4Momentum &  p4,
Container_t &  coll,
std::size_t &  index,
double &  deltaR 
) [inline]

Find the closest element in a collection to an I4Momentum

Parameters:
index [out] index of the closest element
deltaR [out] {R}
Returns:
true if found
template<class Container_t >
bool P4Helpers::closestDeltaR ( const double  eta,
const double  phi,
Container_t &  coll,
std::size_t &  index,
double &  deltaR 
) [inline]

Find the closest element in a collection to an I4Momentum

Parameters:
index [out] index of the closest element
deltaR [out] {R}
Returns:
true if found
double P4Helpers::deltaPhi ( const I4Momentum *const   pA,
const I4Momentum *const   pB 
) [inline]

delta Phi in range [-pi,pi[ from two I4momentum pointers

double P4Helpers::deltaPhi ( const I4Momentum &  pA,
const I4Momentum &  pB 
) [inline]

delta Phi in range [-pi,pi[ from two I4momentum references

double P4Helpers::deltaPhi ( const I4Momentum &  p4,
const double  phi 
) [inline]

delta Phi in range [-pi,pi[ from one I4momentum reference

double P4Helpers::deltaPhi ( double  phiA,
double  phiB 
) [inline]

delta Phi in range [-pi,pi[

double P4Helpers::deltaPhiSq ( const I4Momentum &  pA,
const I4Momentum &  pB 
) [inline]

delta Phi squared in range ([-pi,pi[)^2 from two I4momentum references

double P4Helpers::deltaR ( const I4Momentum *const   pA,
const I4Momentum *const   pB 
) [inline]

delta R from two I4momentum pointers

double P4Helpers::deltaR ( const I4Momentum &  pA,
const I4Momentum &  pB 
) [inline]

delta R from two I4momentum reference

double P4Helpers::invMass ( const I4Momentum *const   pA,
const I4Momentum *const   pB,
const I4Momentum *const   pC,
const I4Momentum *const   pD 
) [inline]

invariant mass from four I4momentum pointers

double P4Helpers::invMass ( const I4Momentum &  pA,
const I4Momentum &  pB,
const I4Momentum &  pC,
const I4Momentum &  pD 
) [inline]

invariant mass from four I4momentum references

double P4Helpers::invMass ( const I4Momentum *const   pA,
const I4Momentum *const   pB 
) [inline]

invariant mass from two I4momentum pointers

double P4Helpers::invMass ( const I4Momentum &  pA,
const I4Momentum &  pB 
) [inline]

invariant mass from two I4momentum references

bool P4Helpers::isInDeltaR ( const I4Momentum &  p1,
const I4Momentum &  p2,
double  dR 
) [inline]

Check if 2 I4Momentum are in a {R} cone

Parameters:
dR [in] {R}
Returns:
true if they are
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1