ATLAS Offline Software
Macros | Functions
Jet.cxx File Reference
#include "CLHEP/Units/SystemOfUnits.h"
#include "CLHEP/Vector/LorentzVector.h"
#include "GaudiKernel/MsgStream.h"
#include "Navigation/Navigable.h"
#include "EventKernel/INavigable4Momentum.h"
#include "FourMom/P4PxPyPzE.h"
#include "FourMom/P4PtEtaPhiM.h"
#include "FourMom/P4EEtaPhiM.h"
#include "NavFourMom/INavigable4MomentumCollection.h"
#include "JetEvent/Jet.h"
#include "JetEvent/JetKeyDescriptor.h"
#include "JetEvent/JetConstituentIterator.h"
#include "JetEvent/JetCollection.h"
#include <algorithm>
#include <vector>
#include <cmath>
#include <sstream>

Go to the source code of this file.

Macros

#define JET_CONSTRUCTOR_BASE
 

Functions

bool jet_component_identity (double p1, double p2, double epsilon=0.1)
 
void diff (const Jet &rJet1, const Jet &rJet2, std::map< std::string, double > varDiff)
 Difference between jets - Non-Class function required by trigger. More...
 

Macro Definition Documentation

◆ JET_CONSTRUCTOR_BASE

#define JET_CONSTRUCTOR_BASE
Value:
m_constituentsN(0) \
, m_RoIword(0xFFFFFFFF) \
, m_jetId(Jet::s_defaultJetId) \
, m_collection(NULL) \
, m_jetAuthor(Jet::s_defaultJetAuthor) \
, m_assocStore(0) \
, m_tagInfoStore(0) \
, m_constituentSigState(P4SignalState::UNKNOWN) \
, m_num_combinedLikelihood(0) \
, m_pseudoJet(0)

Definition at line 83 of file Jet.cxx.

Function Documentation

◆ diff()

void diff ( const Jet rJet1,
const Jet rJet2,
std::map< std::string, double >  varDiff 
)

Difference between jets - Non-Class function required by trigger.

Definition at line 631 of file Jet.cxx.

632 {
633  // Since this isn't part of the Jet Class, we need to re-define it here
634  // not very elegant
635  double ignoreWeight = 1.0e-06;
636  // Compare sizes
637  if(rJet1.size() != rJet2.size())
638  varDiff["NConstituents"] = rJet1.size() - rJet2.size();
639 
640  // Compare 4 momenta
641  if(fabs(rJet1.e() - rJet2.e()) > ignoreWeight)
642  varDiff["e"] = rJet1.e() - rJet2.e();
643  if(fabs(rJet1.px() - rJet2.px()) > ignoreWeight)
644  varDiff["px"] = rJet1.px() - rJet2.px();
645  if(fabs(rJet1.py() - rJet2.py()) > ignoreWeight)
646  varDiff["py"] = rJet1.py() - rJet2.py();
647  if(fabs(rJet1.pz() - rJet2.pz()) > ignoreWeight)
648  varDiff["pz"] = rJet1.pz() - rJet2.pz();
649 }

◆ jet_component_identity()

bool jet_component_identity ( double  p1,
double  p2,
double  epsilon = 0.1 
)

Definition at line 73 of file Jet.cxx.

73  {
74  return fabs(p1-p2)< epsilon ;
75 }
Jet::s_defaultJetAuthor
static const size_t s_defaultJetAuthor
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:723
ParticleSigStateImpl::py
virtual double py() const
y component of momentum
Definition: ParticleSigStateImpl.h:679
ParticleSigStateImpl::e
virtual double e() const
energy
Definition: ParticleSigStateImpl.h:751
ParticleSigStateImpl::px
virtual double px() const
We re-define here extra class routines that will allow direct access to signal state kinematics witho...
Definition: ParticleSigStateImpl.h:671
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
P4SignalState::UNKNOWN
@ UNKNOWN
Definition: ISignalState.h:29
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
python.LArBadChannelDBAlg.xFFFFFFFF
xFFFFFFFF
Definition: LArBadChannelDBAlg.py:73
Jet::size
size_t size() const
Size of constituent store.
Jet::s_defaultJetId
static const size_t s_defaultJetId
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:670
ParticleSigStateImpl::pz
virtual double pz() const
z component of momentum
Definition: ParticleSigStateImpl.h:687