ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::MuonAlignmentUncertTool Class Reference

#include <MuonAlignmentUncertTool.h>

Inheritance diagram for Muon::MuonAlignmentUncertTool:
Collaboration diagram for Muon::MuonAlignmentUncertTool:

Public Member Functions

 MuonAlignmentUncertTool (const std::string &type, const std::string &name, const IInterface *parent)
 ~MuonAlignmentUncertTool ()=default
StatusCode initialize () override
float get_uncertainty (const Trk::Track *trk) const override
 IMuonAlignmentUncertTool interface: retrieve the associated uncertainties.
void get_track_state_measures (const Trk::Track *track, const Trk::TrackStateOnSurface *&id_exit, const Trk::TrackStateOnSurface *&calo_entrance, const Trk::TrackStateOnSurface *&calo_exit, const Trk::TrackStateOnSurface *&ms_entrance) const override
 Helper method to retrieve the last measurement of the ID, the first and last scatterer in the calorimeter and finally to retrieve the first measurement inside the MS.
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 ()
 AlgTool and IAlgTool interface methods.

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

std::function< int(const Trk::Track *trk)> make_reader (const TAxis *axis) const
 Helper function to assign the uncertainty from the Axis.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< Trk::ITrackingVolumesSvcm_trackingVolumesSvc {this, "TrackingVolumesSvc", "Trk::TrackingVolumesSvc/TrackingVolumesSvc"}
 Volume service to.
Gaudi::Property< std::string > m_in_file
Gaudi::Property< std::string > m_histo_name {this, "HistoName", "", "Name of the histogram in the file"}
std::unique_ptr< TH1 > m_histo
 Histogram to be cached.
unsigned int m_dim
std::function< int(const Trk::Track *trk)> m_x_reader
 Standard functions used to read the histogram having as input a Trk::Track.
std::function< int(const Trk::Track *trk)> m_y_reader
std::function< int(const Trk::Track *trk)> m_z_reader
std::unique_ptr< const Trk::Volumem_calorimeterVolume
std::unique_ptr< const Trk::Volumem_indetVolume
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

Definition at line 34 of file MuonAlignmentUncertTool.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

◆ MuonAlignmentUncertTool()

Muon::MuonAlignmentUncertTool::MuonAlignmentUncertTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 27 of file MuonAlignmentUncertTool.cxx.

27 :
28 AthAlgTool(type, name, parent),
29 m_histo(nullptr),
30 m_dim(-1),
31 m_x_reader(make_reader(nullptr)),
32 m_y_reader(make_reader(nullptr)),
33 m_z_reader(make_reader(nullptr)),
34 m_calorimeterVolume(nullptr),
35 m_indetVolume(nullptr) {}
AthAlgTool()
Default constructor:
std::unique_ptr< const Trk::Volume > m_calorimeterVolume
std::function< int(const Trk::Track *trk)> make_reader(const TAxis *axis) const
Helper function to assign the uncertainty from the Axis.
std::function< int(const Trk::Track *trk)> m_y_reader
std::unique_ptr< TH1 > m_histo
Histogram to be cached.
std::function< int(const Trk::Track *trk)> m_x_reader
Standard functions used to read the histogram having as input a Trk::Track.
std::unique_ptr< const Trk::Volume > m_indetVolume
std::function< int(const Trk::Track *trk)> m_z_reader

◆ ~MuonAlignmentUncertTool()

Muon::MuonAlignmentUncertTool::~MuonAlignmentUncertTool ( )
default

Member Function Documentation

◆ 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

◆ get_track_state_measures()

void Muon::MuonAlignmentUncertTool::get_track_state_measures ( const Trk::Track * track,
const Trk::TrackStateOnSurface *& id_exit,
const Trk::TrackStateOnSurface *& calo_entrance,
const Trk::TrackStateOnSurface *& calo_exit,
const Trk::TrackStateOnSurface *& ms_entrance ) const
overridevirtual

Helper method to retrieve the last measurement of the ID, the first and last scatterer in the calorimeter and finally to retrieve the first measurement inside the MS.

Try to find the calorimeter entrance and leaving points

inside muon system

Implements Muon::IMuonAlignmentUncertTool.

Definition at line 219 of file MuonAlignmentUncertTool.cxx.

222 {
223 id_exit = calo_entrance = calo_exit = ms_entrance = nullptr;
224 if (!track) {
225 ATH_MSG_DEBUG("No track has been given. Where is my track?!");
226 return;
227 }
228 for (const Trk::TrackStateOnSurface* trk_srf : *track->trackStateOnSurfaces()) {
229 if (!trk_srf->trackParameters()) { continue; }
230 if (m_indetVolume->inside(trk_srf->trackParameters()->position())) {
231 if (trk_srf->type(Trk::TrackStateOnSurface::Measurement)) id_exit = trk_srf;
232 continue;
233 }
235 if (m_calorimeterVolume->inside(trk_srf->trackParameters()->position())) {
236 // first scattering plane in Calorimeter
237 if (trk_srf->type(Trk::TrackStateOnSurface::Scatterer) && trk_srf->materialEffectsOnTrack()) {
238 if (trk_srf->materialEffectsOnTrack()->thicknessInX0() < 10) { continue; }
239 if (!calo_entrance) {
240 calo_entrance = trk_srf;
241 } else {
242 calo_exit = trk_srf;
243 }
244 }
245 }
247 else if (trk_srf->measurementOnTrack()) {
248 ms_entrance = trk_srf;
249 break;
250 }
251 }
252 }
#define ATH_MSG_DEBUG(x)
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
@ Scatterer
This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffe...

◆ get_uncertainty()

float Muon::MuonAlignmentUncertTool::get_uncertainty ( const Trk::Track * trk) const
overridevirtual

IMuonAlignmentUncertTool interface: retrieve the associated uncertainties.

The second and third arguments of the GetBin method are 0 as default

Implements Muon::IMuonAlignmentUncertTool.

Definition at line 64 of file MuonAlignmentUncertTool.cxx.

64 {
65 if (!trk) {
66 ATH_MSG_ERROR("No track has been given. Return FLT_MAX");
67 return FLT_MAX;
68 }
69 const int bin_x = m_x_reader(trk);
72 const int bin_y = m_dim > 1 ? m_y_reader(trk) : 0;
73 const int bin_z = m_dim > 2 ? m_z_reader(trk) : 0;
74 return m_histo->GetBinContent(bin_x, bin_y, bin_z);
75 }
#define ATH_MSG_ERROR(x)

◆ initialize()

StatusCode Muon::MuonAlignmentUncertTool::initialize ( )
override

Open the TFile

Read the histogram from the file

Set the dimension and the readers to be used

Definition at line 36 of file MuonAlignmentUncertTool.cxx.

36 {
38 std::unique_ptr<TFile> r_file(TFile::Open(PathResolverFindCalibFile(m_in_file).c_str(), "READ"));
39 if (!r_file || !r_file->IsOpen()) {
40 ATH_MSG_FATAL("No such file or directory " << m_in_file);
41 return StatusCode::FAILURE;
42 }
44 TH1* histo_in_file = nullptr;
45 r_file->GetObject(m_histo_name.value().c_str(), histo_in_file);
46 m_histo = std::unique_ptr<TH1>(histo_in_file);
47 if (!m_histo) {
48 ATH_MSG_FATAL("File " << m_in_file << " does not contain the histogram " << m_histo_name << ".");
49 return StatusCode::FAILURE;
50 }
51 m_histo->SetDirectory(nullptr);
53 m_dim = m_histo->GetDimension();
54 m_x_reader = make_reader(m_histo->GetXaxis());
55 m_y_reader = make_reader(m_histo->GetYaxis());
56 m_z_reader = make_reader(m_histo->GetZaxis());
57
62 return StatusCode::SUCCESS;
63 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< std::string > m_in_file
ServiceHandle< Trk::ITrackingVolumesSvc > m_trackingVolumesSvc
Volume service to.
Gaudi::Property< std::string > m_histo_name
@ CalorimeterEntryLayer
Tracking Volume which defines the entrance srufaces of the calorimeter.
@ MuonSpectrometerEntryLayer
Tracking Volume which defines the entrance surfaces of the MS.

◆ 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 & Muon::IMuonAlignmentUncertTool::interfaceID ( )
inlinestaticinherited

AlgTool and IAlgTool interface methods.

Definition at line 32 of file IMuonAlignmentUncertTool.h.

static const InterfaceID IID_IMuonAlignmentUncertTool("IMuonAlignmentUncertTool", 1, 0)
Interface ID for ICombinedMuonTrackBuilder.

◆ make_reader()

std::function< int(const Trk::Track *trk)> Muon::MuonAlignmentUncertTool::make_reader ( const TAxis * axis) const
private

Helper function to assign the uncertainty from the Axis.

Assignment is based on the title of the axis

Dummy function just returning 0 if no axis is given

Definition at line 76 of file MuonAlignmentUncertTool.cxx.

76 {
78 if (!axis) {
79 return [](const Trk::Track*) { return 0; };
80 }
81 std::string axis_title = axis->GetTitle();
82 if (axis_title == "#eta" || axis_title == "eta") {
83 return [axis](const Trk::Track* trk) {
84 const Trk::Perigee* perigee = trk->perigeeParameters();
85 return axis->FindBin(perigee->eta());
86 };
87 } else if (axis_title == "|#eta|" || axis_title == "abseta") {
88 return [axis](const Trk::Track* trk) {
89 const Trk::Perigee* perigee = trk->perigeeParameters();
90 return axis->FindBin(std::abs(perigee->eta()));
91 };
92 } else if (axis_title == "#phi" || axis_title == "phi") {
93 return [axis](const Trk::Track* trk) {
94 const Trk::Perigee* perigee = trk->perigeeParameters();
95 return axis->FindBin(perigee->parameters()[2]);
96 };
97 } else if (axis_title == "|#phi|" || axis_title == "absphi") {
98 return [axis](const Trk::Track* trk) {
99 const Trk::Perigee* perigee = trk->perigeeParameters();
100 return axis->FindBin(std::abs(perigee->parameters()[2]));
101 };
102 } else if (axis_title == "#theta" || axis_title == "theta") {
103 return [axis](const Trk::Track* trk) {
104 const Trk::Perigee* perigee = trk->perigeeParameters();
105 return axis->FindBin(perigee->parameters()[3]);
106 };
107 } else if (axis_title == "|#theta|" || axis_title == "abstheta") {
108 return [axis](const Trk::Track* trk) {
109 const Trk::Perigee* perigee = trk->perigeeParameters();
110 return axis->FindBin(std::abs(perigee->parameters()[3]));
111 };
112 } else if (axis_title == "p_{T}" || axis_title == "pT") {
113 return [axis](const Trk::Track* trk) {
114 const Trk::Perigee* perigee = trk->perigeeParameters();
115 return axis->FindBin(perigee->pT());
116 };
117 } else if (axis_title == "p_{T} [GeV]" || axis_title == "pTinGeV") {
118 return [axis](const Trk::Track* trk) {
119 const Trk::Perigee* perigee = trk->perigeeParameters();
120 return axis->FindBin(perigee->pT() * MeVtoGeV);
121 };
122 } else if (axis_title == "#rho @ ID-exit") {
123 return [axis, this](const Trk::Track* trk) {
124 const Trk::TrackStateOnSurface* id_exit;
125 const Trk::TrackStateOnSurface* dummy;
126 get_track_state_measures(trk, id_exit, dummy, dummy, dummy);
127 return axis->FindBin(id_exit->trackParameters()->position().perp());
128 };
129 } else if (axis_title == "R @ ID-exit") {
130 return [axis, this](const Trk::Track* trk) {
131 const Trk::TrackStateOnSurface* id_exit;
132 const Trk::TrackStateOnSurface* dummy;
133 get_track_state_measures(trk, id_exit, dummy, dummy, dummy);
134 return axis->FindBin(id_exit->trackParameters()->position().mag());
135 };
136 } else if (axis_title == "z @ ID-exit") {
137 return [axis, this](const Trk::Track* trk) {
138 const Trk::TrackStateOnSurface* id_exit;
139 const Trk::TrackStateOnSurface* dummy;
140 get_track_state_measures(trk, id_exit, dummy, dummy, dummy);
141 return axis->FindBin(id_exit->trackParameters()->position()[2]);
142 };
143 } else if (axis_title == "#rho @ Calo-entrance") {
144 return [axis, this](const Trk::Track* trk) {
145 const Trk::TrackStateOnSurface* calo_entrance;
146 const Trk::TrackStateOnSurface* dummy;
147 get_track_state_measures(trk, dummy, calo_entrance, dummy, dummy);
148 return axis->FindBin(calo_entrance->trackParameters()->position().perp());
149 };
150 } else if (axis_title == "R @ Calo-entrance") {
151 return [axis, this](const Trk::Track* trk) {
152 const Trk::TrackStateOnSurface* calo_entrance;
153 const Trk::TrackStateOnSurface* dummy;
154 get_track_state_measures(trk, dummy, calo_entrance, dummy, dummy);
155 return axis->FindBin(calo_entrance->trackParameters()->position().mag());
156 };
157 } else if (axis_title == "z @ Calo-entrance") {
158 return [axis, this](const Trk::Track* trk) {
159 const Trk::TrackStateOnSurface* calo_entrance;
160 const Trk::TrackStateOnSurface* dummy;
161 get_track_state_measures(trk, dummy, calo_entrance, dummy, dummy);
162 return axis->FindBin(calo_entrance->trackParameters()->position()[2]);
163 };
164 } else if (axis_title == "#rho @ Calo-centre") {
165 return [axis, this](const Trk::Track* trk) {
166 const Trk::TrackStateOnSurface* calo_entrance;
167 const Trk::TrackStateOnSurface* calo_exit;
168 const Trk::TrackStateOnSurface* dummy;
169 get_track_state_measures(trk, dummy, calo_entrance, calo_exit, dummy);
170 const Amg::Vector3D calo_centre =
171 0.5 * (calo_entrance->trackParameters()->position() + calo_exit->trackParameters()->position());
172 return axis->FindBin(calo_centre.perp());
173 };
174 } else if (axis_title == "R @ Calo-centre") {
175 return [axis, this](const Trk::Track* trk) {
176 const Trk::TrackStateOnSurface* calo_entrance;
177 const Trk::TrackStateOnSurface* calo_exit;
178 const Trk::TrackStateOnSurface* dummy;
179 get_track_state_measures(trk, dummy, calo_entrance, calo_exit, dummy);
180 const Amg::Vector3D calo_centre =
181 0.5 * (calo_entrance->trackParameters()->position() + calo_exit->trackParameters()->position());
182 return axis->FindBin(calo_centre.mag());
183 };
184 } else if (axis_title == "z @ Calo-centre") {
185 return [axis, this](const Trk::Track* trk) {
186 const Trk::TrackStateOnSurface* calo_entrance;
187 const Trk::TrackStateOnSurface* calo_exit;
188 const Trk::TrackStateOnSurface* dummy;
189 get_track_state_measures(trk, dummy, calo_entrance, calo_exit, dummy);
190 const Amg::Vector3D calo_centre =
191 0.5 * (calo_entrance->trackParameters()->position() + calo_exit->trackParameters()->position());
192 return axis->FindBin(calo_centre[2]);
193 };
194 } else if (axis_title == "#rho @ MS-entrance") {
195 return [axis, this](const Trk::Track* trk) {
196 const Trk::TrackStateOnSurface* ms_entrance;
197 const Trk::TrackStateOnSurface* dummy;
198 get_track_state_measures(trk, dummy, dummy, dummy, ms_entrance);
199 return axis->FindBin(ms_entrance->trackParameters()->position().perp());
200 };
201 } else if (axis_title == "R @ MS-entrance") {
202 return [axis, this](const Trk::Track* trk) {
203 const Trk::TrackStateOnSurface* ms_entrance;
204 const Trk::TrackStateOnSurface* dummy;
205 get_track_state_measures(trk, dummy, dummy, dummy, ms_entrance);
206 return axis->FindBin(ms_entrance->trackParameters()->position().mag());
207 };
208 } else if (axis_title == "z @ MS-entrance") {
209 return [axis, this](const Trk::Track* trk) {
210 const Trk::TrackStateOnSurface* ms_entrance;
211 const Trk::TrackStateOnSurface* dummy;
212 get_track_state_measures(trk, dummy, dummy, dummy, ms_entrance);
213 return axis->FindBin(ms_entrance->trackParameters()->position()[2]);
214 };
215 }
216 return make_reader(nullptr);
217 }
void get_track_state_measures(const Trk::Track *track, const Trk::TrackStateOnSurface *&id_exit, const Trk::TrackStateOnSurface *&calo_entrance, const Trk::TrackStateOnSurface *&calo_exit, const Trk::TrackStateOnSurface *&ms_entrance) const override
Helper method to retrieve the last measurement of the ID, the first and last scatterer in the calorim...
double eta() const
Access method for pseudorapidity - from momentum.
const Amg::Vector3D & position() const
Access method for the position.
double pT() const
Access method for transverse momentum.
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
Eigen::Matrix< double, 3, 1 > Vector3D
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee

◆ 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 }

◆ 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_calorimeterVolume

std::unique_ptr<const Trk::Volume> Muon::MuonAlignmentUncertTool::m_calorimeterVolume
private

Definition at line 73 of file MuonAlignmentUncertTool.h.

◆ 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_dim

unsigned int Muon::MuonAlignmentUncertTool::m_dim
private

Definition at line 66 of file MuonAlignmentUncertTool.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_histo

std::unique_ptr<TH1> Muon::MuonAlignmentUncertTool::m_histo
private

Histogram to be cached.

Definition at line 65 of file MuonAlignmentUncertTool.h.

◆ m_histo_name

Gaudi::Property<std::string> Muon::MuonAlignmentUncertTool::m_histo_name {this, "HistoName", "", "Name of the histogram in the file"}
private

Definition at line 62 of file MuonAlignmentUncertTool.h.

62{this, "HistoName", "", "Name of the histogram in the file"};

◆ m_in_file

Gaudi::Property<std::string> Muon::MuonAlignmentUncertTool::m_in_file
private
Initial value:
{this, "InFile",
"MuonCombinedBaseTools/AlignmentUncertainties/201029_initial/ID_MS_Uncertainties.root",
"Location of the calibration file"}

Definition at line 59 of file MuonAlignmentUncertTool.h.

59 {this, "InFile",
60 "MuonCombinedBaseTools/AlignmentUncertainties/201029_initial/ID_MS_Uncertainties.root",
61 "Location of the calibration file"};

◆ m_indetVolume

std::unique_ptr<const Trk::Volume> Muon::MuonAlignmentUncertTool::m_indetVolume
private

Definition at line 74 of file MuonAlignmentUncertTool.h.

◆ m_trackingVolumesSvc

ServiceHandle<Trk::ITrackingVolumesSvc> Muon::MuonAlignmentUncertTool::m_trackingVolumesSvc {this, "TrackingVolumesSvc", "Trk::TrackingVolumesSvc/TrackingVolumesSvc"}
private

Volume service to.

Definition at line 57 of file MuonAlignmentUncertTool.h.

57{this, "TrackingVolumesSvc", "Trk::TrackingVolumesSvc/TrackingVolumesSvc"};

◆ 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.

◆ m_x_reader

std::function<int(const Trk::Track* trk)> Muon::MuonAlignmentUncertTool::m_x_reader
private

Standard functions used to read the histogram having as input a Trk::Track.

Definition at line 69 of file MuonAlignmentUncertTool.h.

◆ m_y_reader

std::function<int(const Trk::Track* trk)> Muon::MuonAlignmentUncertTool::m_y_reader
private

Definition at line 70 of file MuonAlignmentUncertTool.h.

◆ m_z_reader

std::function<int(const Trk::Track* trk)> Muon::MuonAlignmentUncertTool::m_z_reader
private

Definition at line 71 of file MuonAlignmentUncertTool.h.


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