 |
ATLAS Offline Software
|
Go to the documentation of this file.
3 #ifndef FPGATrackSim_DATAPREPALG_H
4 #define FPGATrackSim_DATAPREPALG_H
11 #include "GaudiKernel/ToolHandle.h"
73 ToolHandle<IFPGATrackSimInputTool>
m_hitSGInputTool {
this,
"SGInputTool",
"",
"Input tool from SG"};
74 ToolHandle<IFPGATrackSimEventInputHeaderTool>
m_hitInputTool {
this,
"InputTool",
"FPGATrackSimSGToRawHitsTool/FPGATrackSimSGToRawHitsTool",
"Input Tool"};
75 ToolHandle<FPGATrackSimReadRawRandomHitsTool>
m_hitInputTool2 {
this,
"InputTool2",
"FPGATrackSimReadRawRandomHitsTool/FPGATrackSimReadRawRandomHitsTool",
"Potential 2nd input Tool to load data from more than one source"};
76 ToolHandleArray<FPGATrackSimRawToLogicalHitsTool>
m_hitMapTools {
this,
"RawToLogicalHitsTools", {},
"Raw To Logical Tools"};
77 ToolHandle<IFPGATrackSimHitFilteringTool>
m_hitFilteringTool {
this,
"HitFilteringTool",
"FPGATrackSimHitFilteringTool/FPGATrackSimHitFilteringTool",
"Hit Filtering Tool"};
78 ToolHandle<FPGATrackSimClusteringToolI>
m_clusteringTool {
this,
"ClusteringTool",
"FPGATrackSimClusteringTool/FPGATrackSimClusteringTool",
"Hit Clustering Tool"};
79 ToolHandle<FPGATrackSimOutputHeaderTool>
m_writeOutputTool {
this,
"OutputTool",
"FPGATrackSimOutputHeaderTool/FPGATrackSimOutputHeaderTool",
"Output tool"};
80 ToolHandleArray<FPGATrackSim::FPGATrackSimEventSelectionTool>
m_eventSelectionTools {
this,
"eventSelectors", {},
"Event selection Tools"};
85 Gaudi::Property<int>
m_firstInputToolN {
this,
"FirstInputToolN", 1,
"number of times to use event from first input tool"};
86 Gaudi::Property<int>
m_secondInputToolN {
this,
"SecondInputToolN", 0,
"number of times to use event from second input tool"};
87 Gaudi::Property<bool>
m_doHitFiltering {
this,
"HitFiltering",
false,
"flag to enable hit/cluster filtering"};
88 Gaudi::Property<int>
m_clustering {
this,
"Clustering", 0,
"int to enable the clustering and say how many times to run it"};
89 Gaudi::Property<bool>
m_writeOutputData {
this,
"writeOutputData",
true,
"write the output TTree"};
90 Gaudi::Property<bool>
m_doEvtSel {
this,
"doEvtSel",
false,
"do event selection"};
91 Gaudi::Property<bool>
m_useInternalTruthTracks {
this,
"useInternalTruthTracks",
false,
"case when runnin on RDO file (and not or wrapper)"};
92 Gaudi::Property<bool>
m_recordHits {
this,
"recordHits",
true,
"For F-100 this is not needed"};
95 Gaudi::Property<std::string>
m_preClusterBranch {
this,
"preClusterBranch",
"LogicalEventInputHeader_PreCluster",
"Name of the branch for pre-cluster input data in output ROOT file." };
96 Gaudi::Property<std::string>
m_postClusterBranch {
this,
"postClusterBranch",
"LogicalEventInputHeader_PostCluster",
"Name of the branch for post-cluster input data in output ROOT file." };
105 std::unique_ptr<FPGATrackSimClusterCollection>
m_clusters = std::make_unique<FPGATrackSimClusterCollection>();
122 ToolHandle<GenericMonitoringTool>
m_monTool{
this,
"MonTool",
"",
"Monitoring tool"};
139 #endif // FPGATrackSimLOGICALHITSTOALGORITHMS_h
StatusCode readInputs(bool &done)
Property holding a SG store/key/clid from which a ReadHandle is made.
ServiceHandle< IChronoStatSvc > m_chrono
Gaudi::Property< bool > m_recordHits
ToolHandle< GenericMonitoringTool > m_monTool
ToolHandle< IFPGATrackSimInputTool > m_hitSGInputTool
ToolHandle< FPGATrackSimReadRawRandomHitsTool > m_hitInputTool2
unsigned m_nMaxStripClusters
virtual StatusCode initialize() override
FPGATrackSimEventInputHeader m_eventHeader
virtual StatusCode execute() override
FPGATrackSimLogicalEventInputHeader * m_logicEventHeader_precluster
Gaudi::Property< bool > m_useInternalTruthTracks
FPGATrackSimLogicalEventInputHeader * m_logicEventHeader
ToolHandleArray< FPGATrackSimRawToLogicalHitsTool > m_hitMapTools
SG::WriteHandleKey< FPGATrackSimEventInfo > m_FPGAEventInfoKey
std::string m_description
SG::WriteHandleKey< FPGATrackSimOfflineTrackCollection > m_FPGAOfflineTrackKey
unsigned long m_nStripClusters
Gaudi::Property< bool > m_writeOutputData
ToolHandle< IFPGATrackSimHitFilteringTool > m_hitFilteringTool
Gaudi::Property< bool > m_doEvtSel
SG::WriteHandleKey< FPGATrackSimHitCollection > m_FPGAHitKey
virtual ~FPGATrackSimDataPrepAlg()=default
unsigned m_nMaxPixClusters
Gaudi::Property< bool > m_doHitFiltering
SG::WriteHandleKey< FPGATrackSimHitCollection > m_FPGAHitUnmappedKey
Gaudi::Property< int > m_clustering
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputTruthParticleContainerKey
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Property< int > m_secondInputToolN
SG::WriteHandleKeyArray< FPGATrackSimClusterCollection > m_FPGAClusterKey
ToolHandle< FPGATrackSimOutputHeaderTool > m_writeOutputTool
ToolHandle< FPGATrackSimClusteringToolI > m_clusteringTool
Gaudi::Property< std::string > m_preClusterBranch
StatusCode processInputs(SG::WriteHandle< FPGATrackSimHitCollection > &FPGAHitUnmapped, SG::WriteHandle< FPGATrackSimClusterCollection > &FPGAClusters)
Gaudi::Property< std::string > m_postClusterBranch
std::unique_ptr< FPGATrackSimClusterCollection > m_clusters
SG::WriteHandleKey< xAODTruthParticleLinkVector > m_truthLinkContainerKey
Gaudi::Property< int > m_firstInputToolN
std::vector< FPGATrackSimHit > m_hits_miss
FPGATrackSimDataPrepAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandleArray< FPGATrackSim::FPGATrackSimEventSelectionTool > m_eventSelectionTools
ToolHandle< IFPGATrackSimEventInputHeaderTool > m_hitInputTool
FPGATrackSimEventInputHeader m_firstInputHeader
virtual StatusCode finalize() override
SG::WriteHandleKey< FPGATrackSimTruthTrackCollection > m_FPGATruthTrackKey
unsigned long m_nPixClusters