ATLAS Offline Software
|
This class reconstructs clusters of pixels. More...
#include <AFPSiClusterTool.h>
Public Member Functions | |
AFPSiClusterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~AFPSiClusterTool () override |
virtual StatusCode | initialize () override |
virtual StatusCode | finalize () override |
does nothing More... | |
StatusCode | clusterHits (std::unique_ptr< xAOD::AFPSiHitsClusterContainer > &clustr, const EventContext &ctx) const override |
Run clusters reconstruction. More... | |
Private Member Functions | |
StatusCode | clearAllLayers (std::vector< std::vector< AFPSiClusterLayerBasicObj > > &my_layers) const |
Runs AFPSiClusterLayerBasicObj::clearHitsAndClusters() on all layers in #my_layers. More... | |
StatusCode | fillLayersWithHits (std::vector< std::vector< AFPSiClusterLayerBasicObj > > &my_layers, const EventContext &ctx) const |
Reads hits from StoreGate and saves them to appropriate layers in #my_layers. More... | |
StatusCode | clusterEachLayer (std::vector< std::vector< AFPSiClusterLayerBasicObj > > &my_layers) const |
Runs tool reconstructing clusters on each layer. More... | |
StatusCode | saveToXAOD (std::unique_ptr< xAOD::AFPSiHitsClusterContainer > &clustr, std::vector< std::vector< AFPSiClusterLayerBasicObj > > &my_layers, const EventContext &ctx) const |
Save clusters in xAOD::AFPSiHitsClusterContainer. More... | |
std::vector< std::vector< AFPSiClusterLayerBasicObj > > | initLayers (const std::vector< int > &layersInStations) const |
Initialise size as well as station and layer ID for #my_layers. More... | |
Private Attributes | |
SG::ReadHandleKey< xAOD::AFPSiHitContainer > | m_AFPSiHitContainerKey { this, "AFPSiHitsContainerName", "AFPSiHitContainer", "name of AFPSiHit container" } |
ToolHandle< IAFPSiClusterAlgTool > | m_clusterAlgToolHandle {this,"clusterAlgTool", "AFPSiClusterAlgTool","Tool with algorithm to perform actual clustering"} |
Tool that does the clustering on hits. More... | |
ToolHandle< IAFPSiRowColToLocalCSTool > | m_rowColToLocalCSToolHandle {this,"rowColToLocalCSTool", "AFPSiRowColToLocalCSTool","Tool to rewrite clusters to xAOD and transform rows and columns to station local coordinates"} |
Tool that creates xAOD and transforms rows and pixels to local coordinate system. More... | |
ToolHandle< GenericMonitoringTool > | m_monTool {this, "MonTool", "", "Monitoring tool"} |
@ brief Monitoring tool More... | |
ToolHandle< AFP::ISiLocAlignDBTool > | m_siLocAlignDBTool {this, "siLocAlignDBTool", "AFP__SiLocAlignDBTool", "Tool to access DB to get the local alignment constants"} |
@ brief Tool for accessing DB to get the local alignment constants More... | |
ToolHandle< AFP::ISiGlobAlignDBTool > | m_siGlobAlignDBTool {this, "siGlobAlignDBTool", "AFP__SiGlobAlignDBTool", "Tool to access DB to get the global alignment constants"} |
@ brief Tool for accessing DB to get the global alignment constants More... | |
Gaudi::Property< std::vector< int > > | m_numberOfLayersInStations {this, "numberOfLayersInStations",{4,4,4,4}, "The size of the array in argument defines number of stations, the value in each entry defines number of layers in the station."} |
Array defining number of stations and layers in each station. More... | |
This class reconstructs clusters of pixels.
The clustering algorithm is defined in a tool that is used and can be changed.
Definition at line 53 of file AFPSiClusterTool.h.
AFPSiClusterTool::AFPSiClusterTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 18 of file AFPSiClusterTool.cxx.
|
inlineoverridevirtual |
Definition at line 59 of file AFPSiClusterTool.h.
|
private |
Runs AFPSiClusterLayerBasicObj::clearHitsAndClusters() on all layers in #my_layers.
Definition at line 109 of file AFPSiClusterTool.cxx.
|
private |
Runs tool reconstructing clusters on each layer.
Definition at line 155 of file AFPSiClusterTool.cxx.
|
override |
Run clusters reconstruction.
This method does full reconstruction from xAOD hits to xAOD clusters. It reads silicon detector hits from StoreGate, runs clustering algorithm, assigns clusters positions in station local coordinate system and saves them in xAOD format to StoreGate.
Definition at line 75 of file AFPSiClusterTool.cxx.
|
private |
Reads hits from StoreGate and saves them to appropriate layers in #my_layers.
Definition at line 118 of file AFPSiClusterTool.cxx.
|
overridevirtual |
does nothing
Definition at line 70 of file AFPSiClusterTool.cxx.
|
overridevirtual |
Definition at line 49 of file AFPSiClusterTool.cxx.
|
private |
Initialise size as well as station and layer ID for #my_layers.
The size of the array in argument defines number of stations, the value in each entry defines number of layers in the station.
Definition at line 25 of file AFPSiClusterTool.cxx.
|
private |
Save clusters in xAOD::AFPSiHitsClusterContainer.
Calls m_rowColToLocalCSToolHandle on each reconstructed cluster in each layer. The tool calculates cluster coordinates based on row and column information and creates new xAOD::AFPSiHitsCluster object, which is added to the container.
Definition at line 164 of file AFPSiClusterTool.cxx.
|
private |
Definition at line 71 of file AFPSiClusterTool.h.
|
private |
Tool that does the clustering on hits.
Definition at line 74 of file AFPSiClusterTool.h.
|
private |
@ brief Monitoring tool
Definition at line 80 of file AFPSiClusterTool.h.
|
private |
Array defining number of stations and layers in each station.
The size of the array in argument defines number of stations, the value in each entry defines number of layers in the station. Default is 4 stations times 4 layers.
Definition at line 93 of file AFPSiClusterTool.h.
|
private |
Tool that creates xAOD and transforms rows and pixels to local coordinate system.
Definition at line 77 of file AFPSiClusterTool.h.
|
private |
@ brief Tool for accessing DB to get the global alignment constants
Definition at line 87 of file AFPSiClusterTool.h.
|
private |
@ brief Tool for accessing DB to get the local alignment constants
Definition at line 84 of file AFPSiClusterTool.h.