![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/PhysicalConstants.h"
31 return StatusCode::SUCCESS;
38 ATH_MSG_DEBUG(
"xAOD::JetContainer size = " << (*truthjetTES).size());
42 std::vector<const xAOD::Jet*> listOfSelectedJets;
54 leadingJet = (*it_truth);
59 if (Njet >=
m_Njet && Njet_pt1 > 0) {
61 bool passDeltaPhi =
true;
63 for (
unsigned int iJet = 0; iJet <
m_Njet; iJet++) {
64 if (listOfSelectedJets[iJet] == leadingJet)
continue;
65 double deltaPhi = leadingJet->
p4().DeltaPhi((listOfSelectedJets[iJet])->p4());
66 double dPi = TMath::Pi() - std::abs(
deltaPhi);
68 " between leading jet(pt=" << leadingJet->
pt() <<
",eta=" << leadingJet->
eta() <<
69 ") and jet(pt=" << (listOfSelectedJets[iJet])->pt() <<
70 ",eta=" << (listOfSelectedJets[iJet])->eta() <<
")");
76 return StatusCode::SUCCESS;
79 setFilterPassed(
false);
80 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual StatusCode filterEvent()
Const iterator class for DataVector/DataList.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
virtual StatusCode filterInitialize()
TruthJetFilter(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Base class for event generator filtering modules.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_TruthJetContainerName
#define CHECK(...)
Evaluate an expression and check for errors.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.