 |
ATLAS Offline Software
|
#include <FPGATrackSimMergeOutputsAlg.h>
|
| | FPGATrackSimMergeOutputsAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| |
| virtual | ~FPGATrackSimMergeOutputsAlg () |
| |
| virtual StatusCode | initialize () override |
| |
| virtual StatusCode | execute () override |
| |
| virtual StatusCode | finalize () override |
| |
| virtual StatusCode | sysInitialize () override |
| | Override sysInitialize. More...
|
| |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| | Return the list of extra output dependencies. More...
|
| |
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | evtStore () const |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| virtual StatusCode | sysStart () override |
| | Handle START transition. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles. More...
|
| |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| | Declare a new Gaudi property. More...
|
| |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| |
| MsgStream & | msg () const |
| |
| MsgStream & | msg (const MSG::Level lvl) const |
| |
| bool | msgLvl (const MSG::Level lvl) const |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| Gaudi::Property< std::vector< std::string > > | m_inpaths {this, "InFileNames", {"."}, "input file paths"} |
| |
| std::vector< TFile * > | m_files |
| |
| std::vector< std::vector< TTree * > > | m_trees |
| |
| std::vector< std::vector< FPGATrackSimLogicalEventOutputHeader * > > | m_eventOutputHeaders |
| |
| FPGATrackSimLogicalEventInputHeader * | m_dataprep = nullptr |
| |
| TTree * | m_dataprep_tree = nullptr |
| |
| SG::WriteHandleKey< FPGATrackSimTrackCollection > | m_FPGATrackKey {this, "FPGATrackSimTracks","FPGATracks","FPGATrackSim Tracks key"} |
| |
| SG::WriteHandleKey< FPGATrackSimHitCollection > | m_FPGAHitKey {this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim Hits key"} |
| |
| ToolHandle< FPGATrackSimOverlapRemovalTool > | m_overlapRemovalTool {this, "OverlapRemoval", "FPGATrackSimOverlapRemovalTool/FPGATrackSimOverlapRemovalTool_Last", "Last inter-region overlap removal tool"} |
| |
| double | m_evtloop = 0 |
| |
| unsigned long | m_alltracks = 0 |
| |
| unsigned long | m_tracksPassOR = 0 |
| |
| DataObjIDColl | m_extendedExtraObjects |
| |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default) More...
|
| |
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default) More...
|
| |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| |
| bool | m_varHandleArraysDeclared |
| |
◆ StoreGateSvc_t
◆ FPGATrackSimMergeOutputsAlg()
| FPGATrackSimMergeOutputsAlg::FPGATrackSimMergeOutputsAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~FPGATrackSimMergeOutputsAlg()
| virtual FPGATrackSimMergeOutputsAlg::~FPGATrackSimMergeOutputsAlg |
( |
| ) |
|
|
inlinevirtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
| StatusCode FPGATrackSimMergeOutputsAlg::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 108 of file FPGATrackSimMergeOutputsAlg.cxx.
111 const EventContext& ctx = getContext();
116 ATH_CHECK(FPGATracks_Handle.record (std::make_unique<FPGATrackSimTrackCollection>()));
120 ATH_CHECK(FPGAHits_Handle.record (std::make_unique<FPGATrackSimHitCollection>()));
123 const std::vector<FPGATrackSimHit>
hits = tower.hits();
124 FPGAHits_Handle->insert(FPGAHits_Handle->end(), make_move_iterator(
hits.begin()), make_move_iterator(
hits.end()));
128 for (
unsigned iregion = 0; iregion <
N; iregion++) {
131 ATH_MSG_ERROR(
"Tried reading in more events than the tree had available!");
132 return StatusCode::FAILURE;
138 for (
const auto &
track : tracks) {
139 if (
track.passedOR()) FPGATracks->push_back(
track);
146 for (
const auto &
track : *FPGATracks) {
151 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
| const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
| StatusCode FPGATrackSimMergeOutputsAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode FPGATrackSimMergeOutputsAlg::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 19 of file FPGATrackSimMergeOutputsAlg.cxx.
22 ATH_MSG_INFO (
"FPGATrackSimMergeOutputsAlg::initialize()");
36 for (
unsigned iregion = 0; iregion <
N; iregion++) {
37 regionsFound[iregion] =
false;
46 return StatusCode::FAILURE;
56 TBranch *dpb =
m_dataprep_tree->GetBranch(
"LogicalEventInputHeader_PostCluster");
59 return StatusCode::FAILURE;
71 for (
unsigned iregion = 0; iregion <
N; iregion++) {
76 else if (regionsFound[iregion]) {
77 ATH_MSG_ERROR(
"Found two files with region number " << iregion <<
" and I do not know which one to use!");
78 return StatusCode::FAILURE;
81 regionsFound[iregion] =
true;
85 TBranch *
b =
m_trees[
ifile][iregion]->GetBranch(
"LogicalEventOutputHeader");
88 return StatusCode::FAILURE;
92 m_trees[
ifile][iregion]->SetBranchStatus(
"LogicalEventSecond*",0);
93 m_trees[
ifile][iregion]->SetBranchStatus(
"LogicalEventFirstP*",0);
94 m_trees[
ifile][iregion]->SetBranchStatus(
"LogicalEventSpace*",0);
95 m_trees[
ifile][iregion]->SetBranchStatus(
"LogicalEventStrip*",0);
102 return StatusCode::FAILURE;
105 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
| StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_alltracks
| unsigned long FPGATrackSimMergeOutputsAlg::m_alltracks = 0 |
|
private |
◆ m_dataprep
◆ m_dataprep_tree
| TTree* FPGATrackSimMergeOutputsAlg::m_dataprep_tree = nullptr |
|
private |
◆ m_detStore
◆ m_eventOutputHeaders
◆ m_evtloop
| double FPGATrackSimMergeOutputsAlg::m_evtloop = 0 |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_files
| std::vector<TFile*> FPGATrackSimMergeOutputsAlg::m_files |
|
private |
◆ m_FPGAHitKey
◆ m_FPGATrackKey
◆ m_inpaths
| Gaudi::Property<std::vector<std::string> > FPGATrackSimMergeOutputsAlg::m_inpaths {this, "InFileNames", {"."}, "input file paths"} |
|
private |
◆ m_overlapRemovalTool
◆ m_tracksPassOR
| unsigned long FPGATrackSimMergeOutputsAlg::m_tracksPassOR = 0 |
|
private |
◆ m_trees
| std::vector<std::vector<TTree*> > FPGATrackSimMergeOutputsAlg::m_trees |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
| const unsigned FPGATrackSimMergeOutputsAlg::N =1280 |
|
staticprivate |
The documentation for this class was generated from the following files:
SG::WriteHandleKey< FPGATrackSimHitCollection > m_FPGAHitKey
unsigned long m_tracksPassOR
std::vector< TFile * > m_files
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
TGraphErrors * GetEntries(TH2F *histo)
ToolHandle< FPGATrackSimOverlapRemovalTool > m_overlapRemovalTool
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
T * Get(TFile &f, const std::string &n, const std::string &dir="", const chainmap_t *chainmap=0, std::vector< std::string > *saved=0)
get a histogram given a path, and an optional initial directory if histogram is not found,...
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::vector< std::vector< TTree * > > m_trees
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
FPGATrackSimLogicalEventInputHeader * m_dataprep
std::vector< std::vector< FPGATrackSimLogicalEventOutputHeader * > > m_eventOutputHeaders
std::vector< FPGATrackSimTrack > FPGATrackSimTrackCollection
unsigned long m_alltracks
DataObjIDColl m_extendedExtraObjects
SG::WriteHandleKey< FPGATrackSimTrackCollection > m_FPGATrackKey
#define ATH_MSG_WARNING(x)
Gaudi::Property< std::vector< std::string > > m_inpaths
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
vec_fb< typename boost::int_t< sizeof(T) *8 >::exact, N > ivec