|
ATLAS Offline Software
|
#include <egammaTrkRefitterTool.h>
|
| egammaTrkRefitterTool (const std::string &, const std::string &, const IInterface *) |
| Constructor with AlgTool parameters. More...
|
|
virtual | ~egammaTrkRefitterTool ()=default |
| Destructor. More...
|
|
virtual StatusCode | initialize () override |
| AlgTool initialise method. More...
|
|
virtual StatusCode | finalize () override |
| AlgTool finalise method. More...
|
|
virtual StatusCode | refitTrack (const EventContext &ctx, const Trk::Track *, Cache &cache) const override final |
| Refit a track. 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 |
|
Definition at line 35 of file egammaTrkRefitterTool.h.
◆ Cache
◆ StoreGateSvc_t
◆ egammaTrkRefitterTool()
egammaTrkRefitterTool::egammaTrkRefitterTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Constructor with AlgTool parameters.
Definition at line 26 of file egammaTrkRefitterTool.cxx.
33 declareInterface<IegammaTrkRefitterTool>(
this);
◆ ~egammaTrkRefitterTool()
virtual egammaTrkRefitterTool::~egammaTrkRefitterTool |
( |
| ) |
|
|
virtualdefault |
◆ addPointsToTrack()
Adds a beam spot to the Measurements passed to the track refitter.
Definition at line 135 of file egammaTrkRefitterTool.cxx.
145 if (
track->perigeeParameters()) {
148 std::unique_ptr<const Trk::CaloCluster_OnTrack> ccot(
150 if (ccot !=
nullptr) {
151 collect.m_trash.push_back(std::move(ccot));
155 std::vector<const Trk::MeasurementBase*> vecIDHits =
getIDHits(
track);
156 std::vector<const Trk::MeasurementBase*>::const_iterator
it =
158 std::vector<const Trk::MeasurementBase*>::const_iterator itend =
161 for (;
it != itend; ++
it) {
◆ 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
◆ finalize()
StatusCode egammaTrkRefitterTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getIDHits()
Get the hits from the Inner Detector.
Definition at line 168 of file egammaTrkRefitterTool.cxx.
172 std::vector<const Trk::MeasurementBase*> measurementSet;
173 measurementSet.reserve(
track->trackStateOnSurfaces()->size());
175 for (
const auto* tsos : *(
track->trackStateOnSurfaces())) {
178 "This track contains an empty TrackStateOnSurface "
179 "that won't be included in the fit");
185 const auto* meas = tsos->measurementOnTrack();
191 if (rio !=
nullptr) {
196 measurementSet.push_back(meas);
202 return measurementSet;
◆ initialize()
StatusCode egammaTrkRefitterTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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& IegammaTrkRefitterTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Alg tool and IAlgTool interface method.
Definition at line 34 of file IegammaTrkRefitterTool.h.
35 {
return IID_egammaTrkRefitterTool; };
◆ 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.
◆ refitTrack()
Refit a track.
Implements IegammaTrkRefitterTool.
Definition at line 62 of file egammaTrkRefitterTool.cxx.
66 cache.refittedTrack =
nullptr;
67 cache.refittedTrackPerigee =
nullptr;
68 cache.originalTrack =
nullptr;
69 cache.originalTrackPerigee =
nullptr;
71 return StatusCode::FAILURE;
74 cache.originalTrack =
track;
77 cache.originalTrackPerigee = cache.originalTrack->perigeeParameters();
79 if (cache.originalTrackPerigee !=
nullptr) {
80 double od0 = cache.originalTrackPerigee->parameters()[
Trk::d0];
81 double oz0 = cache.originalTrackPerigee->parameters()[
Trk::z0];
82 double ophi0 = cache.originalTrackPerigee->parameters()[
Trk::phi0];
83 double otheta = cache.originalTrackPerigee->parameters()[
Trk::theta];
84 double oqOverP = cache.originalTrackPerigee->parameters()[
Trk::qOverP];
85 ATH_MSG_DEBUG(
"Original parameters " << od0 <<
" " << oz0 <<
" " << ophi0
86 <<
" " << otheta <<
" " << oqOverP
87 <<
" " << 1 / oqOverP);
97 if (
collect.m_measurements.size() > 4) {
101 *cache.originalTrack->perigeeParameters(),
105 cache.refittedTrack =
nullptr;
108 std::vector<const Trk::MeasurementBase*> measurements =
110 if (measurements.size() > 4) {
111 cache.refittedTrack =
114 *cache.originalTrack->perigeeParameters(),
118 cache.refittedTrack =
nullptr;
123 if (cache.refittedTrack) {
124 cache.refittedTrackPerigee = cache.refittedTrack->perigeeParameters();
125 if (cache.refittedTrackPerigee ==
nullptr) {
127 return StatusCode::FAILURE;
129 return StatusCode::SUCCESS;
131 return StatusCode::FAILURE;
◆ 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_CCOTBuilder
◆ m_detStore
◆ m_evtStore
◆ m_idHelper
◆ m_ITrackFitter
Initial value:{
this,
"FitterTool",
"Trk__GaussianSumFitter/GSFTrackFitter",
"ToolHandle for track fitter implementation"
}
The track refitter.
Definition at line 84 of file egammaTrkRefitterTool.h.
◆ m_matEffects
Gaudi::Property<int> egammaTrkRefitterTool::m_matEffects |
|
private |
Initial value:{
this,
"matEffects",
1,
"Type of material interaction in extrapolation (Default Electron)"
}
type of material interaction in extrapolation
Definition at line 95 of file egammaTrkRefitterTool.h.
◆ m_ParticleHypothesis
◆ m_RemoveTRT
Gaudi::Property<bool> egammaTrkRefitterTool::m_RemoveTRT |
|
private |
Initial value:{ this,
"RemoveTRTHits",
false,
"RemoveTRT Hits" }
Option to remove TRT hits from track.
Definition at line 115 of file egammaTrkRefitterTool.h.
◆ m_useClusterPosition
Gaudi::Property<bool> egammaTrkRefitterTool::m_useClusterPosition |
|
private |
Initial value:{
this,
"useClusterPosition",
false,
"Switch to control use of Cluster position measurement"
}
Definition at line 107 of file egammaTrkRefitterTool.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
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
bool is_sct(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool is_trt(Identifier id) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
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
double charge(const T &p)
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.