ATLAS Offline Software
TreeFillerAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 //
3 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 //
5 #ifndef ASGANALYSISALGORITHMS_TREEFILLERALG_H
6 #define ASGANALYSISALGORITHMS_TREEFILLERALG_H
7 
8 // System include(s):
9 #include <unordered_map>
10 #include <string>
11 #include <vector>
12 #include <memory>
13 #include <list>
14 
15 // Framework include(s):
20 
21 // EDM include(s):
24 
25 // Forward declaration(s):
26 class TClass;
27 class TTree;
28 class TVirtualCollectionProxy;
29 namespace SG {
30  class AuxVectorBase;
31  class IAuxTypeVectorFactory;
32 }
33 
34 namespace CP {
35 
49 
51 
52  public:
55 
58 
60  StatusCode execute() override;
61 
63 
64  private:
67 
69  Gaudi::Property<std::string> m_treeName {this, "TreeName", "physics", "Name of the tree to write"};
70 
72 
75 
77  TTree* m_tree = nullptr;
78 
80 
81  }; // class TreeFillerAlg
82 
83 } // namespace CP
84 
85 #endif // ASGANALYSISALGORITHMS_TREEFILLERALG_H
PropertyWrapper.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SysListHandle.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
IAuxTypeVector.h
Abstract interface for manipulating vectors of arbitrary types.
AsgMessaging.h
AnaAlgorithm.h
CP::TreeFillerAlg::execute
StatusCode execute() override
Function executed once per event.
Definition: TreeFillerAlg.cxx:26
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::TreeFillerAlg::m_treeName
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
Definition: TreeFillerAlg.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::TreeFillerAlg::m_tree
TTree * m_tree
The tree being written.
Definition: TreeFillerAlg.h:77
CP::TreeFillerAlg
Algorithm that writes events to a tree filled by preceding algorithms to fill.
Definition: TreeFillerAlg.h:50
AuxElement.h
Base class for elements of a container that can have aux data.