CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
Particle.h File Reference
#include <list>
#include <TLorentzRotation.h>
#include <TLorentzVector.h>
#include <TVector3.h>
#include "ParticlePDG.h"
#include <iostream>

Go to the source code of this file.

Classes

class  Particle
 
class  ParticleAllocator
 

Typedefs

typedef std::list< ParticleList_t
 
typedef std::list< Particle >
::iterator 
LPIT_t
 

Functions

double S (const TLorentzVector &, const TLorentzVector &)
 
double T (const TLorentzVector &, const TLorentzVector &)
 

Typedef Documentation

Definition at line 141 of file Particle.h.

typedef std::list<Particle>::iterator LPIT_t

Definition at line 142 of file Particle.h.

Function Documentation

double S ( const TLorentzVector &  ,
const TLorentzVector &   
)

Definition at line 99 of file Particle.cc.

Referenced by abcd(), PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbours(), FWBeamSpotProxyBuilder::build(), cscdqm::Utility::checkOccupancy(), ParticleKinematicLinearizedTrackState::computeChargedJacobians(), PerigeeLinearizedTrackState::computeChargedJacobians(), hitfit::Fourvec_Constrainer::constrain(), RPCSeedPattern::createSeed(), EnergyResolutionVsLumi::Decomposition(), FrameToFrameDerivative::derivativePosRot(), edmtest::HcalDumpConditions::dumpIt(), CastorDumpConditions::dumpIt(), magfieldparam::poly2d_base::Eval(), CSCOfflineMonitor::fitX(), CSCValidation::fitX(), reco::componenthelper::MultipleComponents< C, T, F, S >::get(), CastorDbASCIIIO::getCastorObject(), CastorDbASCIIIO::getCastorSingleFloatObject(), CastorDbASCIIIO::getCastorSingleIntObject(), PFEnergyResolution::getEnergyResolutionEm(), getHcalMatrixObject(), getHcalObject(), getHcalSingleFloatObject(), getHcalSingleIntObject(), HcalDbPoolOCCI::getObjectGeneric(), TKinFitter::getS(), magfieldparam::HarmBasis3DCyl::GetVal(), gen::Hydjet2Hadronizer::initializeForInternalPartons(), reco::modules::ParameterAdapter< S >::make(), reco::componenthelper::MultipleComponents< C, T, F, S >::numberOf(), edm::eventsetup::produce::operator<<(), EnergyResolutionVsLumi::Resolution(), RPCSeedPattern::SegmentAlgorithmSpecial(), FixedFlatOccupancy1d::set_S_fail(), CSC01::set_S_fail(), FixedFlatOccupancy1d::set_S_pass(), CSC01::set_S_pass(), reco::DeDxHitInfo::stripCluster(), and PFBenchmarkAlgo::vector_sort().

99  {
100  return TMath::Power(v1.T() + v2.T(), 2) - TMath::Power(v1.X() + v2.X(), 2) -
101  TMath::Power(v1.Y() + v2.Y(), 2) - TMath::Power(v1.Z() + v2.Z(), 2);
102 }
double T ( const TLorentzVector &  ,
const TLorentzVector &   
)

Definition at line 104 of file Particle.cc.

104  {
105  return TMath::Power(v1.T() - v2.T(), 2) - TMath::Power(v1.X() - v2.X(), 2) -
106  TMath::Power(v1.Y() - v2.Y(), 2) - TMath::Power(v1.Z() - v2.Z(), 2);
107 }