ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::TGC_ResidualPullCalculator Class Referencefinal

TGC-specific tool to calculate hit residual and pull from a RIO_OnTrack/TrackParameter pair. More...

#include <TGC_ResidualPullCalculator.h>

Inheritance diagram for Muon::TGC_ResidualPullCalculator:
Collaboration diagram for Muon::TGC_ResidualPullCalculator:

Public Member Functions

 TGC_ResidualPullCalculator (const std::string &, const std::string &, const IInterface *)
virtual ~TGC_ResidualPullCalculator ()=default
virtual StatusCode initialize () override
virtual std::optional< Trk::ResidualPullresidualPull (const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType) const override
 This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state.
virtual std::array< double, 5 > residuals (const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType) const override
 This function is a light-weight version of the function above, designed for track fitters where speed is critical.
virtual std::optional< Trk::ResidualPullresidualPull (const Trk::MeasurementBase *, const Trk::TrackParameters *, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType, const std::vector< const Trk::AlignmentEffectsOnTrack * > &) const
 This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state, and the Alignment effects.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Interface ID, declared here, and defined below.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

double calcPull (const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &) const
 internal structuring: common code for calculating hit pulls
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

TGC-specific tool to calculate hit residual and pull from a RIO_OnTrack/TrackParameter pair.

Uses Muon-specific info to code the strip type (measuring phi/eta) in the 2nd coordinate of the residual and to un-do the rotation from strip to chamber system. That is, the residual and pull is calculated in the direction perpendicular to the strip allowing e.g. a validation of the strip errors.

Author
Wolfgang Liebig http://consult.cern.ch/xwho/people/54608

Definition at line 31 of file TGC_ResidualPullCalculator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TGC_ResidualPullCalculator()

Muon::TGC_ResidualPullCalculator::TGC_ResidualPullCalculator ( const std::string & t,
const std::string & n,
const IInterface * p )

Definition at line 14 of file TGC_ResidualPullCalculator.cxx.

14 :
15 AthAlgTool(t,n,p) {
16 declareInterface<IResidualPullCalculator>(this);
17}
AthAlgTool()
Default constructor:

◆ ~TGC_ResidualPullCalculator()

virtual Muon::TGC_ResidualPullCalculator::~TGC_ResidualPullCalculator ( )
virtualdefault

Member Function Documentation

◆ calcPull()

double Muon::TGC_ResidualPullCalculator::calcPull ( const double residual,
const double locMesCov,
const double locTrkCov,
const Trk::ResidualPull::ResidualType & resType ) const
private

internal structuring: common code for calculating hit pulls

calc pull in 1 dimension

Definition at line 223 of file TGC_ResidualPullCalculator.cxx.

227 {
228 if( locMesCov < 0 ) {
229 ATH_MSG_DEBUG("Bad error " << locMesCov << " " << locTrkCov << " using measured error ");
230 return 0;
231 }
232 double ErrorSum;
233 if (resType == Trk::ResidualPull::Unbiased) {
234 if( locMesCov + locTrkCov > 0 ) ErrorSum = std::sqrt(locMesCov + locTrkCov);
235 else{
236 ATH_MSG_DEBUG("Bad error measurement " << locMesCov << " from track " << locTrkCov << ", using measured error ");
237 ErrorSum = std::sqrt(locMesCov);
238 }
239 } else if (resType == Trk::ResidualPull::Biased) {
240 if ((locMesCov - locTrkCov) < 0.) {
241 return 0;
242 }
243 ErrorSum = std::sqrt(locMesCov - locTrkCov);
244 } else ErrorSum = std::sqrt(locMesCov);
245 if (ErrorSum != 0) return residual/ErrorSum;
246 return 0;
247}
#define ATH_MSG_DEBUG(x)
@ Biased
RP with track state including the hit.
@ Unbiased
RP with track state that has measurement not included.

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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 Muon::TGC_ResidualPullCalculator::initialize ( )
overridevirtual

Definition at line 21 of file TGC_ResidualPullCalculator.cxx.

22{
23 ATH_CHECK(m_idHelperSvc.retrieve());
24 ATH_MSG_DEBUG ("initialize() successful in " << name());
25 return StatusCode::SUCCESS;
26}
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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()

const InterfaceID & Trk::IResidualPullCalculator::interfaceID ( )
inlinestaticinherited

Interface ID, declared here, and defined below.

Definition at line 84 of file IResidualPullCalculator.h.

84 {
86}
static const InterfaceID IID_IResidualPullCalculator("IResidualPullCalculator", 1, 0)

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ residualPull() [1/2]

std::optional< Trk::ResidualPull > Muon::TGC_ResidualPullCalculator::residualPull ( const Trk::MeasurementBase * measurement,
const Trk::TrackParameters * trkPar,
const Trk::ResidualPull::ResidualType resType,
const Trk::TrackState::MeasurementType  ) const
overridevirtual

This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state.

The track state can be an unbiased one (which can be retrieved by the Trk::IUpdator), a biased one (which contains the measurement), or a truth state. The enum ResidualType must be set according to this, otherwise the pulls will be wrong. Residuals differ in all three cases; please be aware of this!!!

Implements Trk::IResidualPullCalculator.

Definition at line 98 of file TGC_ResidualPullCalculator.cxx.

102 {
103
104 const Trk::RIO_OnTrack* rot = dynamic_cast<const Trk::RIO_OnTrack*>(measurement);
105 if (!rot) {
106 const Muon::CompetingMuonClustersOnTrack* muonCompClusters =
107 dynamic_cast<const Muon::CompetingMuonClustersOnTrack*>(measurement);
108 if (muonCompClusters) rot = muonCompClusters->containedROTs().empty() ? nullptr :
109 muonCompClusters->containedROTs().front();
110 }
111 if (!trkPar || !rot) {
112 if( !trkPar ) ATH_MSG_WARNING ("No TrackParameters, cannot calculate residual/pull ");
113 if( !rot ) ATH_MSG_WARNING ("No ROT, cannot calculate residual/pull ");
114 return std::nullopt;
115 }
116 Identifier ID = rot->identify();
117
118 if( m_idHelperSvc->isTgc(ID) ) {
119
120 // try to cast the track parameters to measured ones
121 const AmgSymMatrix(5)* trkCov = trkPar->covariance();
122 bool pullIsValid = (trkCov);
123
124 double sinAlpha = 0.0;
125
126 bool isStrip = m_idHelperSvc->tgcIdHelper().isStrip(ID);
127
128 // calculate residual
129 std::vector<double> residual(1);
130 std::vector<double> pull(1);
131 if (isStrip) {
132 // consistency check that Muon EDM is as expected
133 if (measurement->localParameters().parameterKey() !=3) {
134 ATH_MSG_WARNING ( "TGC ClusterOnTrack does not carry the expected "
135 << "LocalParameters structure!");
136 return std::nullopt;
137 }
138 // get orientation angle of strip to rotate back from local frame to strip
139 const Amg::MatrixX &covmat=measurement->localCovariance();
140 double v0=0.5*(covmat(0,0)+covmat(1,1)-sqrt((covmat(0,0)+covmat(1,1))*(covmat(0,0)+covmat(1,1))-
141 4*(covmat(0,0)*covmat(1,1)-covmat(0,1)*covmat(0,1))));
142 double v1=0.5*(covmat(0,0)+covmat(1,1)+sqrt((covmat(0,0)+covmat(1,1))*(covmat(0,0)+covmat(1,1))-
143 4*(covmat(0,0)*covmat(1,1)-covmat(0,1)*covmat(0,1))));
144 sinAlpha=std::sin(0.5*std::asin(2*covmat(0,1)/(v0-v1)));
145
146 const MuonGM::TgcReadoutElement *ele =
147 dynamic_cast<const MuonGM::TgcReadoutElement*>(rot->detectorElement());
148 if (!ele) {
149 ATH_MSG_WARNING ("Could not obtain TGC detEl from TGC ROT, this is a bug!" );
150 return std::nullopt;
151 }
152
153 double cosAlpha = std::sqrt(1 - sinAlpha*sinAlpha);
154
155 // Calculate Residual for hit: res = (vec(x_hit) - vec(x_track)) * vec(n_perpendicular)
157 (measurement->localParameters()[Trk::locX] - trkPar->parameters()[Trk::locX]) * cosAlpha
158 + (measurement->localParameters()[Trk::locY] - trkPar->parameters()[Trk::locY]) * sinAlpha;
159
160 // Fill transformation matrix to transform covariance matrices
161 Amg::MatrixX RotMat(2,2);
162 RotMat(0,0) = cosAlpha;
163 RotMat(0,1) = sinAlpha;
164 RotMat(1,0) = -sinAlpha;
165 RotMat(1,1) = cosAlpha;
166 // get the covariance matrix of the ROT and rotate it by stereo angle
167 Amg::MatrixX transformedROTCov = measurement->localCovariance().similarity(RotMat);
168
169 if (pullIsValid) {
170 // Get local error matrix for track to calc pull
171 // Just use first local coordinates
172 // and rotate by the stereo angle
173 Amg::MatrixX subm = trkCov->block<2,2>(0,0);
174 Amg::MatrixX transformedTrkCov = subm.similarity(RotMat);
175 // calc pull now
176 pull[Trk::loc1] = calcPull(residual[Trk::loc1],
177 transformedROTCov(0,0),
178 transformedTrkCov(0,0),
179 resType);
180 } else {
181 pull[Trk::loc1] = calcPull(residual[Trk::loc1],
182 transformedROTCov(0,0),
183 0.,
184 resType);
185 }
186
187 } else {
188 if (measurement->localParameters().parameterKey() != 1) {
189 ATH_MSG_WARNING ("TGC ClusterOnTrack does not carry the expected "
190 << "LocalParameters structure!" );
191 return std::nullopt;
192 } else {
193 // convention to be interpreted by TrkValTools: 2nd coordinate codes orientation of TGC
195 - trkPar->parameters()[Trk::loc1];
196 // calculate pull
197 if (pullIsValid)
198 pull[Trk::loc1] = calcPull(residual[Trk::loc1],
199 measurement->localCovariance()(Trk::loc1,Trk::loc1),
200 (*trkCov)(Trk::loc1,Trk::loc1),
201 resType);
202 else
203 pull[Trk::loc1] = calcPull(residual[Trk::loc1],
204 measurement->localCovariance()(Trk::loc1,Trk::loc1),
205 0,
206 resType);
207 }
208 }
209 // create the Trk::ResidualPull.
210 ATH_MSG_VERBOSE ( "Calculating Pull for channel " << m_idHelperSvc->toString(ID) << " residual " << residual[Trk::loc1] << " pull " << pull[Trk::loc1] );
211
212 return std::make_optional<Trk::ResidualPull>(std::move(residual), std::move(pull), pullIsValid, resType, 1, sinAlpha);
213
214 } else {
215 ATH_MSG_DEBUG ( "Input problem measurement is not TGC." );
216 return std::nullopt;
217 }
218}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
std::vector< Identifier > ID
#define AmgSymMatrix(dim)
const std::vector< const MuonClusterOnTrack * > & containedROTs() const
returns the vector of SCT_ClusterOnTrack objects .
double calcPull(const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &) const
internal structuring: common code for calculating hit pulls
int parameterKey() const
Identifier key for matrix expansion/reduction.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
Identifier identify() const
return the identifier -extends MeasurementBase
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
@ locY
local cartesian
Definition ParamDefs.h:38
@ locX
Definition ParamDefs.h:37
@ loc1
Definition ParamDefs.h:34

◆ residualPull() [2/2]

virtual std::optional< Trk::ResidualPull > Trk::IResidualPullCalculator::residualPull ( const Trk::MeasurementBase * ,
const Trk::TrackParameters * ,
const Trk::ResidualPull::ResidualType ,
const Trk::TrackState::MeasurementType ,
const std::vector< const Trk::AlignmentEffectsOnTrack * > &  ) const
inlinevirtualinherited

This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state, and the Alignment effects.

The track state can be an unbiased one (which can be retrieved by the Trk::IUpdator), a biased one (which contains the measurement), or a truth state. The enum residualTyp must be set according to this, otherwise the pulls will be wrong. Residuals differ in all three cases; please be aware of this.

This function determines the sub-detector type itself by using the ID helper

Reimplemented in InDet::SCT_ResidualPullCalculator, and Trk::ResidualPullCalculator.

Definition at line 64 of file IResidualPullCalculator.h.

69 {
70 return std::nullopt;
71 }

◆ residuals()

std::array< double, 5 > Muon::TGC_ResidualPullCalculator::residuals ( const Trk::MeasurementBase * measurement,
const Trk::TrackParameters * trkPar,
const Trk::ResidualPull::ResidualType ,
const Trk::TrackState::MeasurementType  ) const
overridevirtual

This function is a light-weight version of the function above, designed for track fitters where speed is critical.

Implements Trk::IResidualPullCalculator.

Definition at line 30 of file TGC_ResidualPullCalculator.cxx.

34 {
35 std::array<double,5> residuals{};
36 const Trk::RIO_OnTrack* rot = dynamic_cast<const Trk::RIO_OnTrack*>(measurement);
37 if (!rot) {
38 const Muon::CompetingMuonClustersOnTrack* muonCompClusters =
39 dynamic_cast<const Muon::CompetingMuonClustersOnTrack*>(measurement);
40 if (muonCompClusters) rot = muonCompClusters->containedROTs().empty() ? nullptr :
41 muonCompClusters->containedROTs().front();
42 }
43 if (!trkPar || !rot) {
44 if( !trkPar ) ATH_MSG_WARNING ("No TrackParameters, cannot calculate residual/pull ");
45 if( !rot ) ATH_MSG_WARNING ("No ROT, cannot calculate residual/pull ");
46 return residuals;
47 }
48 Identifier ID = rot->identify();
49
50 if( m_idHelperSvc->isTgc(ID) ) {
51
52 double sinAlpha = 0.0;
53
54 bool isStrip = m_idHelperSvc->tgcIdHelper().isStrip(ID);
55
56 // calculate residual
57 if (isStrip) {
58 // consistency check that Muon EDM is as expected
59 if (measurement->localParameters().parameterKey() !=3) {
60 ATH_MSG_WARNING ( "TGC ClusterOnTrack does not carry the expected "
61 << "LocalParameters structure!");
62 return residuals;
63 }
64 // get orientation angle of strip to rotate back from local frame to strip
65 const Amg::MatrixX &covmat=measurement->localCovariance();
66 double v0=0.5*(covmat(0,0)+covmat(1,1)-sqrt((covmat(0,0)+covmat(1,1))*(covmat(0,0)+covmat(1,1))-
67 4*(covmat(0,0)*covmat(1,1)-covmat(0,1)*covmat(0,1))));
68 double v1=0.5*(covmat(0,0)+covmat(1,1)+sqrt((covmat(0,0)+covmat(1,1))*(covmat(0,0)+covmat(1,1))-
69 4*(covmat(0,0)*covmat(1,1)-covmat(0,1)*covmat(0,1))));
70 sinAlpha=std::sin(0.5*std::asin(2*covmat(0,1)/(v0-v1)));
71
72 double cosAlpha = std::sqrt(1 - sinAlpha*sinAlpha);
73
74 // Calculate Residual for hit: res = (vec(x_hit) - vec(x_track)) * vec(n_perpendicular)
76 (measurement->localParameters()[Trk::locX] - trkPar->parameters()[Trk::locX]) * cosAlpha
77 + (measurement->localParameters()[Trk::locY] - trkPar->parameters()[Trk::locY]) * sinAlpha;
78
79 } else {
80 if (measurement->localParameters().parameterKey() != 1) {
81 ATH_MSG_WARNING ("TGC ClusterOnTrack does not carry the expected "
82 << "LocalParameters structure!" );
83 return residuals;
84 } else {
85 // convention to be interpreted by TrkValTools: 2nd coordinate codes orientation of TGC
87 - trkPar->parameters()[Trk::loc1];
88 }
89 }
90 } else {
91 ATH_MSG_DEBUG ( "Input problem measurement is not TGC." );
92 return residuals;
93 }
94 return residuals;
95}
virtual std::array< double, 5 > residuals(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType) const override
This function is a light-weight version of the function above, designed for track fitters where speed...

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> Muon::TGC_ResidualPullCalculator::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 68 of file TGC_ResidualPullCalculator.h.

68{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: