Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "fastjet/ClusterSequence.hh"
21 #include "fastjet/ClusterSequenceArea.hh"
22 #include <fastjet/AreaDefinition.hh>
51 return StatusCode::FAILURE;
66 return StatusCode::SUCCESS;
70 std::vector<TVector2> pileupMomenta;
74 if(pileupMomenta.empty()) {
75 ATH_MSG_DEBUG(
"pileupMomenta is empty, this can happen for events with no PU vertices."
76 <<
" bJVT won't be computed for this event and will be set to 0 instead." );
78 bjvtHandle(*jetC) = 1;
79 bjvtRawHandle(*jetC) = 0;
81 return StatusCode::SUCCESS;
85 bjvtHandle(*jetC) = 1;
86 bjvtRawHandle(*jetC) = 0;
89 double bjvt =
getFJVT(jetC,pileupMomenta);
91 bjvtRawHandle(*jetC) = bjvt;
94 return StatusCode::SUCCESS;
99 int pvind,
int vertices)
const {
100 std::vector<TVector2> pileupMomenta;
102 const std::size_t pv_index = (pvind==-1) ?
getPV() : std::size_t(pvind);
108 if(vx->index()==(
size_t)pv_index)
continue;
111 jname += vx->index();
115 ATH_MSG_WARNING(
" Some issue appeared while building the pflow pileup jets for vertex "
116 << vx->index() <<
" (vxType = " << vx->vertexType()<<
" )!" );
117 return pileupMomenta;
137 pileupMomenta.push_back(vertex_met);
138 if(vertices!=-1 &&
int(vx->index())==vertices)
break;
140 return pileupMomenta;
163 bool isqcdpu =
false;
164 bool isstochpu =
true;
166 for(
const xAOD::Jet *tjet : *truthJets) {
167 if (tjet->p4().DeltaR(
jet->p4())<0.3 && tjet->pt()>10
e3) ishs =
true;
168 if (tjet->p4().DeltaR(
jet->p4())<0.6 && tjet->pt()>4
e3) ispu =
false;
173 for(
const xAOD::Jet *itpujet : *itpujets){
174 if (itpujet->p4().DeltaR(
jet->p4())<0.3 && itpujet->pt()>10
e3) isqcdpu =
true;
175 if (itpujet->p4().DeltaR(
jet->p4())<0.6 && itpujet->pt()>10
e3) isstochpu =
false;
177 for(
const xAOD::Jet *ootpujet : *ootpujets){
178 if (ootpujet->p4().DeltaR(
jet->p4())<0.3 && ootpujet->pt()>10
e3) isqcdpu =
true;
179 if (ootpujet->p4().DeltaR(
jet->p4())<0.6 && ootpujet->pt()>10
e3) isstochpu =
false;
187 isHSHandle(*
jet)=ishs;
188 isQCDPUHandle(*
jet)=isqcdpu;
189 isStochPUHandle(*
jet)=isstochpu;
192 return StatusCode::SUCCESS;
std::shared_ptr< xAOD::JetAuxContainer > jetAuxCont
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::shared_ptr< xAOD::JetContainer > jetCont
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)