ATLAS Offline Software
PseudoJetMerger.h
Go to the documentation of this file.
1 // this file is -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // PseudoJetMerger.h
8 
19 
20 #ifndef JETREC_PSEUDOJETMERGER_H
21 #define JETREC_PSEUDOJETMERGER_H
22 
23 
24 #include <memory>
26 #include "fastjet/PseudoJet.hh"
27 #include "JetEDM/PseudoJetVector.h"
31 
33 
35  : public EL::AnaReentrantAlgorithm {
36 
37 public:
38 
40 
41  // Can't use "using ctor" because of incompatiblity with pyroot in AnalysisBase
42  PseudoJetMerger(const std::string & n, ISvcLocator* l) : EL::AnaReentrantAlgorithm(n,l) {}
43 
46  virtual StatusCode initialize() override;
47 
48  // Standard execute, forwards to createAndRecord
49  virtual StatusCode execute(const EventContext& ctx) const override final;
50 
51 private: // data
52 
53  // Job options.
54 
55  SG::ReadHandleKeyArray<PseudoJetContainer> m_inputPJC = {this, "InputPJContainers", { } , "Set of input pseudojets to merge"};
56 
58  SG::WriteHandleKey<PseudoJetContainer> m_outcoll = {this, "OutputContainer", "", "Merged output container name" };
59 
61  Gaudi::Property<std::string> m_label = {this , "Label", "merged", "Label of the collection"};
62 
63 
64 };
65 #endif
PropertyWrapper.h
PseudoJetMerger::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: PseudoJetMerger.cxx:37
PseudoJetVector.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
PseudoJetMerger
PseudoJetMerger collects a list of PseudoJetContainers into a single PseudoJetContainers.
Definition: PseudoJetMerger.h:35
jet::PseudoJetVector
std::vector< fastjet::PseudoJet > PseudoJetVector
Definition: PseudoJetVector.h:21
SG::WriteHandleKey< PseudoJetContainer >
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PseudoJetMerger::m_inputPJC
SG::ReadHandleKeyArray< PseudoJetContainer > m_inputPJC
Definition: PseudoJetMerger.h:55
PseudoJetMerger::m_outcoll
SG::WriteHandleKey< PseudoJetContainer > m_outcoll
Output collection name.
Definition: PseudoJetMerger.h:58
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
PseudoJetMerger::m_label
Gaudi::Property< std::string > m_label
Label for the collection. Set from the 1st input collection.
Definition: PseudoJetMerger.h:61
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaReentrantAlgorithm.cxx:29
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
PseudoJetContainer.h
AnaReentrantAlgorithm.h
ReadHandleKeyArray.h
PseudoJetMerger::initialize
virtual StatusCode initialize() override
Initialization.
Definition: PseudoJetMerger.cxx:11
PseudoJetMerger::PseudoJetMerger
PseudoJetMerger(const std::string &n, ISvcLocator *l)
Definition: PseudoJetMerger.h:42
PseudoJetMerger::PseudoJetVector
jet::PseudoJetVector PseudoJetVector
Definition: PseudoJetMerger.h:39