|
ATLAS Offline Software
|
general tool to converts clusters or driftcircles (Trk::PrepRawData) to fully calibrated hits (Trk::RIO_OnTrack) further use in track fits.
More...
#include <RIO_OnTrackCreator.h>
|
| RIO_OnTrackCreator (const std::string &, const std::string &, const IInterface *) |
| standard AlgTool constructor More...
|
|
virtual | ~RIO_OnTrackCreator () |
| virtual destructor More...
|
|
virtual StatusCode | initialize () override |
| get specific ROT tools and the AtlasIdHelper More...
|
|
RIO_OnTrack * | correct (const PrepRawData &, const TrackParameters &, const EventContext &ctx) const override |
| the master method for going from RIO to ROT. 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 | sysInitialize () override |
| Perform system initialization for an algorithm. 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 > &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 |
|
|
const AtlasDetectorID * | m_idHelper {nullptr} |
| Helper to detect type of sub-detector from PRD->identify(). More...
|
|
ToolHandle< IRIO_OnTrackCreator > | m_pixClusCor |
| Detector-specific helper tool, performing the actual calibration corrections for every InDet::PixelCluster. More...
|
|
ToolHandle< IRIO_OnTrackCreator > | m_sctClusCor |
| Detector-specific helper tool, performing the actual calibration corrections for every InDet::SCT_Cluster. More...
|
|
ToolHandle< IRIO_OnTrackCreator > | m_trt_Cor |
| Detector-specific helper tool, performing the actual calibration corrections for every InDet::TRT::DriftCircle. More...
|
|
ToolHandle< IRIO_OnTrackCreator > | m_muonDriftCircleCor |
| Detector-specific helper tool, performing the actual calibration corrections for every Muon::MdtPrepData. More...
|
|
ToolHandle< IRIO_OnTrackCreator > | m_muonClusterCor |
| Detector-specific helper tool, performing the actual calibration corrections for the remaining muon detector technologies: RPC, TGC, CSC, MM, sTGC. More...
|
|
Gaudi::Property< std::string > | m_mode {this, "Mode" ,"all" } |
| flag: can be 'all', 'indet' or 'muon' More...
|
|
bool | m_doPixel {true} |
| Load Pixel IRIO_OnTrackCreator. More...
|
|
bool | m_doSCT {true} |
| Load SCT IRIO_OnTrackCreator. More...
|
|
bool | m_doTRT {true} |
| Load TRT IRIO_OnTrackCreator. More...
|
|
Mode | m_enumMode = Mode::all |
|
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 |
|
general tool to converts clusters or driftcircles (Trk::PrepRawData) to fully calibrated hits (Trk::RIO_OnTrack) further use in track fits.
This implementation is the technology-independent master tool which identifies the detector where the hit comes from (e.g. PixelCluster) and calls the appropriate tool to create e.g. PixelClusterOnTrack. The use of detector-specific tools is configured via job options.
Both this tool and the detector-specific tools need a track hypothesis to make the conversion from Trk::PrepRawData to Trk:: RIO_OnTrack. This needs to be provided by the local pattern recognition or the track fitting tool.
- Author
- Wolfgang Liebig http://consult.cern.ch/xwho/people/54608
Definition at line 53 of file RIO_OnTrackCreator.h.
◆ StoreGateSvc_t
◆ Mode
◆ RIO_OnTrackCreator()
Trk::RIO_OnTrackCreator::RIO_OnTrackCreator |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~RIO_OnTrackCreator()
Trk::RIO_OnTrackCreator::~RIO_OnTrackCreator |
( |
| ) |
|
|
virtualdefault |
◆ correct()
the master method for going from RIO to ROT.
Implements Trk::IRIO_OnTrackCreator.
Definition at line 97 of file RIO_OnTrackCreator.cxx.
107 ATH_MSG_VERBOSE (
"RIO.locP = ("<<rio.localPosition().x()<<
","<<rio.localPosition().y()<<
")");
112 "No tool to correct the current Pixel hit! return nullptr");
121 "No tool to correct the current SCT hit! - Giving back nullptr.");
130 "No tool to correct a TRT DriftCircle! - Giving back nullptr.");
133 return m_trt_Cor->correct(rio, trk, ctx);
139 "No tool to correct a MDT DriftCircle! - Giving back nullptr.");
149 ATH_MSG_WARNING(
"No tool to correct a CSC/RPC/TGC/MM/sTGC hit! - Giving back nullptr.");
157 <<
". Return nil RIO_OnTrack");
◆ 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]
◆ 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
◆ initialize()
StatusCode Trk::RIO_OnTrackCreator::initialize |
( |
| ) |
|
|
overridevirtual |
get specific ROT tools and the AtlasIdHelper
Definition at line 35 of file RIO_OnTrackCreator.cxx.
41 }
else if (
m_mode ==
"indet") {
43 }
else if (
m_mode ==
"muon") {
51 return StatusCode::FAILURE;
92 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.
◆ interfaceID()
static const InterfaceID& Trk::IRIO_OnTrackCreator::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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()
◆ 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_detStore
◆ m_doPixel
bool Trk::RIO_OnTrackCreator::m_doPixel {true} |
|
private |
◆ m_doSCT
bool Trk::RIO_OnTrackCreator::m_doSCT {true} |
|
private |
◆ m_doTRT
bool Trk::RIO_OnTrackCreator::m_doTRT {true} |
|
private |
◆ m_enumMode
◆ m_evtStore
◆ m_idHelper
◆ m_mode
Gaudi::Property<std::string> Trk::RIO_OnTrackCreator::m_mode {this, "Mode" ,"all" } |
|
private |
◆ m_muonClusterCor
Initial value:{
this, "ToolMuonCluster",
"Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackTool"}
Detector-specific helper tool, performing the actual calibration corrections for the remaining muon detector technologies: RPC, TGC, CSC, MM, sTGC.
Definition at line 103 of file RIO_OnTrackCreator.h.
◆ m_muonDriftCircleCor
Initial value:{
this, "ToolMuonDriftCircle",
"Muon::MdtDriftCircleOnTrackCreator/MdtDriftCircleOnTrackTool"}
Detector-specific helper tool, performing the actual calibration corrections for every Muon::MdtPrepData.
Definition at line 97 of file RIO_OnTrackCreator.h.
◆ m_pixClusCor
Initial value:{
this, "ToolPixelCluster",
"InDet::PixelClusterOnTrackTool/PixelClusterOnTrackTool"}
Detector-specific helper tool, performing the actual calibration corrections for every InDet::PixelCluster.
Definition at line 82 of file RIO_OnTrackCreator.h.
◆ m_sctClusCor
Initial value:{
this, "ToolSCT_Cluster",
"InDet::SCT_ClusterOnTrackTool/SCT_ClusterOnTrackTool"}
Detector-specific helper tool, performing the actual calibration corrections for every InDet::SCT_Cluster.
Definition at line 87 of file RIO_OnTrackCreator.h.
◆ m_trt_Cor
Initial value:{
this, "ToolTRT_DriftCircle",
"InDet::TRT_DriftCircleOnTrackTool/TRT_DriftCircleOnTrackTool"}
Detector-specific helper tool, performing the actual calibration corrections for every InDet::TRT::DriftCircle.
Definition at line 92 of file RIO_OnTrackCreator.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool is_pixel(Identifier id) const
bool is_rpc(Identifier id) const
bool is_csc(Identifier id) const
bool is_sct(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool m_doPixel
Load Pixel IRIO_OnTrackCreator.
bool m_doTRT
Load TRT IRIO_OnTrackCreator.
bool is_mm(Identifier id) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ToolHandle< IRIO_OnTrackCreator > m_muonDriftCircleCor
Detector-specific helper tool, performing the actual calibration corrections for every Muon::MdtPrepD...
bool is_trt(Identifier id) const
#define ATH_MSG_VERBOSE(x)
ToolHandle< IRIO_OnTrackCreator > m_sctClusCor
Detector-specific helper tool, performing the actual calibration corrections for every InDet::SCT_Clu...
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
bool m_doSCT
Load SCT IRIO_OnTrackCreator.
bool is_tgc(Identifier id) const
ToolHandle< IRIO_OnTrackCreator > m_muonClusterCor
Detector-specific helper tool, performing the actual calibration corrections for the remaining muon d...
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
ToolHandle< IRIO_OnTrackCreator > m_pixClusCor
Detector-specific helper tool, performing the actual calibration corrections for every InDet::PixelCl...
ToolHandle< IRIO_OnTrackCreator > m_trt_Cor
Detector-specific helper tool, performing the actual calibration corrections for every InDet::TRT::Dr...
Gaudi::Property< std::string > m_mode
flag: can be 'all', 'indet' or 'muon'
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool is_stgc(Identifier id) const
const AtlasDetectorID * m_idHelper
Helper to detect type of sub-detector from PRD->identify().
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool is_mdt(Identifier id) const