|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "fastjet/JetDefinition.hh"
9 #include "fastjet/AreaDefinition.hh"
10 #include "fastjet/ClusterSequenceArea.hh"
17 using fastjet::JetAlgorithm;
18 using fastjet::JetDefinition;
20 using fastjet::ClusterSequenceArea;
21 using fastjet::AreaDefinition;
22 using fastjet::VoronoiAreaSpec;
28 m_useAreaFourMom(true)
60 return StatusCode::FAILURE;
75 return StatusCode::FAILURE;
84 return StatusCode::FAILURE;
118 return StatusCode::FAILURE;
121 return StatusCode::SUCCESS;
130 std::unique_ptr<xAOD::EventShape> eventShape(std::make_unique<xAOD::EventShape>());
131 std::unique_ptr<xAOD::EventShapeAuxInfo> eventShapeaux(std::make_unique<xAOD::EventShapeAuxInfo>());
132 eventShape->
setStore( eventShapeaux.get() );
138 if ( ! h_out.record(std::move(eventShape), std::move(eventShapeaux) )) {
144 return StatusCode::SUCCESS;
152 if( ! h_in.isValid() ) {
154 return StatusCode::FAILURE;
156 if ( h_in->size() == 0 ) {
167 if ( ppjv.size() == 0 ) {
177 return StatusCode::FAILURE;
185 ATH_MSG_DEBUG(
"Event shape container address: " << eventShape);
187 for(
const auto & pj : pjv) {
188 ATH_MSG_DEBUG(
" pj input e="<<pj.e() <<
" pz="<<pj.pz() <<
" px="<<pj.px() );
191 std::unique_ptr<ClusterSequenceArea> pcsa=std::make_unique<ClusterSequenceArea>(pjv,
m_fjjetdef,
m_fjareadef);
192 ATH_MSG_DEBUG(
"Found jet count: " << pcsa->inclusive_jets().size());
205 rhoDec(*eventShape) =
rho;
206 sigmaDec(*eventShape) =
sigma;
207 areaDec(*eventShape) =
area;
211 return StatusCode::SUCCESS;
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
const std::string & key() const
Return the StoreGate ID for the referenced object.
fastjet::ClusterSequence ClusterSequence
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Data class for event shapes.
std::vector< fastjet::PseudoJet > PseudoJetVector
#define ATH_MSG_WARNING(x)