ATLAS Offline Software
Loading...
Searching...
No Matches
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.

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)
static const size_t s_defaultJetId
static const size_t s_defaultJetAuthor

Definition at line 82 of file Jet.cxx.

82#define JET_CONSTRUCTOR_BASE m_constituentsN(0) \
83 , m_RoIword(0xFFFFFFFF) \
84 , m_jetId(Jet::s_defaultJetId) \
85 , m_collection(NULL) \
86 , m_jetAuthor(Jet::s_defaultJetAuthor) \
87 , m_assocStore(0) \
88 , m_tagInfoStore(0) \
89 , m_constituentSigState(P4SignalState::UNKNOWN) \
90 , m_num_combinedLikelihood(0) \
91 , m_pseudoJet(0)

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}
size_t size() const
Size of constituent store.
virtual double pz() const
z component of momentum
virtual double e() const
energy
virtual double py() const
y component of momentum
virtual double px() const
We re-define here extra class routines that will allow direct access to signal state kinematics witho...

◆ 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}