ATLAS Offline Software
Loading...
Searching...
No Matches
TrigL2MuonSA::MuFastPatternFinder Class Reference

#include <MuFastPatternFinder.h>

Inheritance diagram for TrigL2MuonSA::MuFastPatternFinder:
Collaboration diagram for TrigL2MuonSA::MuFastPatternFinder:

Public Member Functions

virtual StatusCode initialize () override
StatusCode findPatterns (const EventContext &ctx, const TrigL2MuonSA::MuonRoad &muonRoad, TrigL2MuonSA::MdtHits &mdtHits, std::vector< TrigL2MuonSA::TrackPattern > &v_trackPatterns) const
StatusCode findPatterns (const EventContext &ctx, const TrigL2MuonSA::MuonRoad &muonRoad, TrigL2MuonSA::MdtHits &mdtHits, TrigL2MuonSA::StgcHits &stgcHits, TrigL2MuonSA::MmHits &mmHits, std::vector< TrigL2MuonSA::TrackPattern > &v_trackPatterns) const
 AthAlgTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor with parameters:
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

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 calc_residual (double aw, double bw, double x, double y) const
void doMdtCalibration (const EventContext &ctx, TrigL2MuonSA::MdtHitData &mdtHit, double track_phi, double phi0, bool isEndcap) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ToolHandle< NswPatternFinderm_nswPatternFinder {this, "NswPatternFinder", "TrigL2MuonSA::NswPatternFinder"}
ToolHandle< IMdtCalibrationToolm_mdtCalibrationTool {this, "CalibrationTool", "MdtCalibrationTool"}
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

Definition at line 38 of file MuFastPatternFinder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ AthAlgTool()

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

Constructor with parameters:

Definition at line 31 of file AthAlgTool.cxx.

◆ calc_residual()

double TrigL2MuonSA::MuFastPatternFinder::calc_residual ( double aw,
double bw,
double x,
double y ) const
private

Definition at line 271 of file MuFastPatternFinder.cxx.

272{
273 const double ZERO_LIMIT = 1e-4;
274 if( std::abs(aw) < ZERO_LIMIT ) return y-bw;
275 double ia = 1/aw;
276 double iaq = ia*ia;
277 double dz = x - (y-bw)*ia;
278 return dz/std::sqrt(1.+iaq);
279}
#define y
#define x
const float ZERO_LIMIT

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

◆ doMdtCalibration()

void TrigL2MuonSA::MuFastPatternFinder::doMdtCalibration ( const EventContext & ctx,
TrigL2MuonSA::MdtHitData & mdtHit,
double track_phi,
double phi0,
bool isEndcap ) const
private

Definition at line 20 of file MuFastPatternFinder.cxx.

21{
22 int StationName = mdtHit.name;
23 int StationEta = mdtHit.StationEta;
24 int StationPhi = mdtHit.StationPhi;
25 int Multilayer = mdtHit.Multilayer;
26 int Layer = mdtHit.TubeLayer;
27 int Tube = mdtHit.Tube;
28
29 ATH_MSG_DEBUG("...StationName/StationEta/StationPhi/Multilayer/Layer/Tube="
30 << StationName << "/" << StationEta << "/" << StationPhi << "/" << Multilayer << "/"
31 << Layer << "/" << Tube);
32
33 Identifier id = ( mdtHit.Id.is_valid() ) ? mdtHit.Id : m_idHelperSvc->mdtIdHelper().channelID(StationName,StationEta,
34 StationPhi,Multilayer,Layer,Tube);
35 int tdcCounts = (int)mdtHit.DriftTime;
36 int adcCounts = mdtHit.Adc;
37
38 double R = mdtHit.R;
39 const double cosDphi = std::cos(track_phi - phi0);
40 double InCo = cosDphi ? 1./ cosDphi: 0;
41 double X = (isEndcap)? R*std::cos(track_phi): R*InCo*std::cos(track_phi);
42 double Y = (isEndcap)? R*std::sin(track_phi): R*InCo*std::sin(track_phi);
43 double Z = mdtHit.Z;
44 const Amg::Vector3D point{X,Y,Z};
45
46 MdtCalibInput calHit(id, adcCounts,tdcCounts, mdtHit.readEle);
47 calHit.setClosestApproach(point);
48 ATH_MSG_DEBUG("... MDT hit raw digit tdcCounts/adcCounts=" << tdcCounts << "/" << adcCounts);
49
50 ATH_MSG_DEBUG("... MDT hit position X/Y/Z/track_phi/Multilayer/Layer/Tube="
51 << Amg::toString(point, 2) << "/" << track_phi << "/" << Multilayer << "/" << Layer << "/" << Tube);
52
53 MdtCalibOutput calibOut = m_mdtCalibrationTool->calibrate(ctx, calHit, false);
54 double driftSpace = calibOut.driftRadius();
55 double driftSigma = calibOut.driftRadiusUncert();
56
57 ATH_MSG_DEBUG("... MDT hit calibrated driftSpace/driftSigma=" << driftSpace << "/" << driftSigma);
58
59 const double ZERO_LIMIT = 1e-4;
60
61 if( std::abs(driftSpace) > ZERO_LIMIT ) {
62 mdtHit.DriftSpace = driftSpace;
63 mdtHit.DriftSigma = driftSigma;
64 }
65 else {
66 mdtHit.DriftSpace = 0;
67 mdtHit.DriftSigma = 0;
68 }
69
70}
#define ATH_MSG_DEBUG(x)
bool is_valid() const
Check if id is in a valid state.
double driftRadiusUncert() const
Returns the uncertainty on the drift radius.
double driftRadius() const
Returns the drift radius of the calibrated object.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
ToolHandle< IMdtCalibrationTool > m_mdtCalibrationTool
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, 3, 1 > Vector3D
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)
const MuonGM::MdtReadoutElement * readEle
Definition MdtData.h:50
unsigned int name
Definition MdtData.h:19

◆ 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

◆ findPatterns() [1/2]

StatusCode TrigL2MuonSA::MuFastPatternFinder::findPatterns ( const EventContext & ctx,
const TrigL2MuonSA::MuonRoad & muonRoad,
TrigL2MuonSA::MdtHits & mdtHits,
std::vector< TrigL2MuonSA::TrackPattern > & v_trackPatterns ) const

Definition at line 99 of file MuFastPatternFinder.cxx.

103{
104
105 // find only 1 track pattern
106 v_trackPatterns.clear();
107 TrigL2MuonSA::TrackPattern trackPattern;
108 for (int i=0; i<xAOD::L2MuonParameters::Chamber::MaxChamber; i++) trackPattern.mdtSegments[i].clear();
109
110 // Saddress = pos1/3 = 0:Large, 1:Large-SP, 2:Small, 3:Small-SP
111 trackPattern.s_address = (muonRoad.isEndcap)? -1: muonRoad.Special + 2*muonRoad.LargeSmall;
112
113 const unsigned int MAX_STATION = 11;
114 const unsigned int MAX_LAYER = 12;
115
116 TrigL2MuonSA::MdtLayerHits v_mdtLayerHits[MAX_STATION][MAX_LAYER];
117
118 unsigned int i_layer_max = 0;
119 unsigned int chamber_max = 0;
120
121 double trigger_phi = muonRoad.phiMiddle; // phi fit result to be used
122
123 for(unsigned int i_hit=0; i_hit<mdtHits.size(); i_hit++) {
124
125 unsigned int chamber = mdtHits[i_hit].Chamber;
126 if( chamber > chamber_max ) chamber_max = chamber;
127 if (chamber >= xAOD::L2MuonParameters::Chamber::MaxChamber) continue;
128
129 int stationPhi = mdtHits[i_hit].StationPhi;
130 std::string name = m_idHelperSvc->mdtIdHelper().stationNameString(mdtHits[i_hit].name);
131 int chamber_this = 99;
132 int sector_this = 99;
133 bool isEndcap;
134 MdtRegionDefiner::find_station_sector(name, stationPhi, isEndcap, chamber_this, sector_this);
135 if( !isEndcap && sector_this != muonRoad.MDT_sector_trigger ) {
136 mdtHits[i_hit].isOutlier = 3;
137 continue;
138 }
139
140 double aw = muonRoad.aw[chamber][0];
141 double bw = muonRoad.bw[chamber][0];
142 double Z = mdtHits[i_hit].Z;
143 double R = mdtHits[i_hit].R;
144 double residual = calc_residual(aw,bw,Z,R);
145
146 mdtHits[i_hit].Residual = residual;
147 mdtHits[i_hit].isOutlier = 0;
148 unsigned int i_layer = mdtHits[i_hit].Layer;
149 double rWidth = muonRoad.rWidth[chamber][i_layer];
150
151 ATH_MSG_DEBUG("... chamber/Z/R/aw/bw/residual/rWidth="
152 << chamber << "/" << Z << "/" << R << "/" << aw << "/" << bw << "/" << residual << "/" << rWidth);
153
154 if( std::abs(residual) > rWidth ) {
155 mdtHits[i_hit].isOutlier = 2;
156 continue;
157 }
158
159 ATH_MSG_DEBUG(" --> included at i_layer=" << i_layer);
160 if( mdtHits[i_hit].TubeLayer < 1 || i_layer > (MAX_LAYER-1) ) {
161 ATH_MSG_WARNING("strange i_layer=" << i_layer);
162 return StatusCode::FAILURE;
163 }
164 if( i_layer > i_layer_max ) i_layer_max = i_layer;
165
166 v_mdtLayerHits[chamber][i_layer].indexes.push_back(i_hit);
167 v_mdtLayerHits[chamber][i_layer].ndigi++;
168 v_mdtLayerHits[chamber][i_layer].ndigi_all++;
169 v_mdtLayerHits[chamber][0].ntot++;
170 v_mdtLayerHits[chamber][0].ntot_all++;
171 v_mdtLayerHits[chamber][0].ResSum += residual;
172 }
173
174 const double DeltaMin = 0.025;
175
176 for(unsigned int chamber=0; chamber<=chamber_max; chamber++) {
177 ATH_MSG_DEBUG(" --- chamber=" << chamber);
178
179 ATH_MSG_DEBUG("removing outliers...");
180 while(1) {
181 if (chamber==9) break;//BME skips this loop
182 if (chamber==10) break;//BMG skips this loop
183 unsigned int layer = 999999;
184 double DistMax = 0.;
185 double Residual = 0.;
186 unsigned int i_hit_max = 999999;
187 double ResMed = (v_mdtLayerHits[chamber][0].ntot!=0) ? v_mdtLayerHits[chamber][0].ResSum/v_mdtLayerHits[chamber][0].ntot : 0.;
188
189 for(unsigned int i_layer=0; i_layer<=i_layer_max; i_layer++) {
190 for(unsigned int idigi=0; idigi<v_mdtLayerHits[chamber][i_layer].ndigi_all;idigi++) {
191
192 unsigned int i_hit = v_mdtLayerHits[chamber][i_layer].indexes[idigi];
193 if(mdtHits[i_hit].isOutlier > 0) continue;
194 double DistMed = std::abs(mdtHits[i_hit].Residual - ResMed);
195 if(DistMed>=DistMax) {
196 DistMax = DistMed;
197 Residual = mdtHits[i_hit].Residual;
198 layer = i_layer;
199 i_hit_max = i_hit;
200 }
201 }
202 }
203 ATH_MSG_DEBUG("ResMed=" << ResMed << ": DistMax/layer/i_hit_max/ntot="
204 << DistMax << "/" << layer << "/" << i_hit_max << "/" << v_mdtLayerHits[chamber][0].ntot);
205
206 // break conditions
207 if(layer == 999999) break;
208 if(v_mdtLayerHits[chamber][layer].ndigi==1) break;
209
210 double Mednew = (v_mdtLayerHits[chamber][0].ResSum - Residual)/(v_mdtLayerHits[chamber][0].ntot - 1);
211 double Delta = 2.*std::abs((ResMed - Mednew)/(ResMed + Mednew));
212 ATH_MSG_DEBUG("Mednew/Delta/DeltaMin=" << Mednew << "/" << Delta << "/" << DeltaMin);
213 if(Delta<=DeltaMin) break;
214
215 // if not, delete the maxRes and continue;
216 v_mdtLayerHits[chamber][0].ResSum -= Residual;
217 v_mdtLayerHits[chamber][0].ntot--;
218 v_mdtLayerHits[chamber][layer].ndigi--;
219 mdtHits[i_hit_max].isOutlier = 2;
220 }
221
222 ATH_MSG_DEBUG("choosing one at each layer, and record it in segment...");
223 TrigL2MuonSA::MdtHits& mdtSegment {trackPattern.mdtSegments[chamber]};
224 mdtSegment.clear();
225
226 double phi0 {0}; // phi at the first layer to be used
227 for(unsigned int i_layer=0; i_layer<=i_layer_max; i_layer++) {
228
229 ATH_MSG_DEBUG("i_layer=" << i_layer << ": ndigi=" << v_mdtLayerHits[chamber][i_layer].ndigi);
230
231 // choose one at each layer
232 while( v_mdtLayerHits[chamber][i_layer].ndigi>=2 ) {
233 double ResMax = 0.;
234 unsigned int i_hit_max = 999999;
235 for(unsigned int idigi=0;idigi<v_mdtLayerHits[chamber][i_layer].ndigi_all;idigi++) {
236 unsigned int i_hit = v_mdtLayerHits[chamber][i_layer].indexes[idigi];
237 if( mdtHits[i_hit].isOutlier > 0 ) continue;
238 if( std::abs(mdtHits[i_hit].Residual) >= ResMax ) {
239 ResMax = std::abs(mdtHits[i_hit].Residual);
240 i_hit_max = i_hit;
241 }
242 }
243 ATH_MSG_DEBUG("ResMax=" << ResMax << ": i_hit_max=" << i_hit_max);
244 if( i_hit_max == 999999 ) break;
245 v_mdtLayerHits[chamber][0].ResSum -= ResMax;
246 v_mdtLayerHits[chamber][0].ntot--;
247 v_mdtLayerHits[chamber][i_layer].ndigi--;
248 mdtHits[i_hit_max].isOutlier = 1;
249 }
250
251 // record it into segement
252 for(unsigned int i_digi=0; i_digi< v_mdtLayerHits[chamber][i_layer].ndigi_all; i_digi++) {
253 unsigned int i_hit = v_mdtLayerHits[chamber][i_layer].indexes[i_digi];
254 if (i_layer==0) phi0 = mdtHits[i_hit].cPhi0;
255 doMdtCalibration(ctx, mdtHits[i_hit], trigger_phi, phi0, muonRoad.isEndcap);
256 if (mdtHits[i_hit].isOutlier > 1) continue;
257 mdtSegment.push_back(mdtHits[i_hit]);
258 }
259 }
260 ATH_MSG_DEBUG("nr of hits in segment=" << mdtSegment.size());
261 } // end loop on stations.
262
263 v_trackPatterns.push_back(trackPattern);
264
265 return StatusCode::SUCCESS;
266}
#define ATH_MSG_WARNING(x)
static void find_station_sector(const std::string &name, int phi, bool &endcap, int &chamber, int &sector)
double calc_residual(double aw, double bw, double x, double y) const
void doMdtCalibration(const EventContext &ctx, TrigL2MuonSA::MdtHitData &mdtHit, double track_phi, double phi0, bool isEndcap) const
double aw[N_STATION][N_SECTOR]
Definition MuonRoad.h:83
double bw[N_STATION][N_SECTOR]
Definition MuonRoad.h:84
double rWidth[N_STATION][N_LAYER]
Definition MuonRoad.h:86
TrigL2MuonSA::MdtHits mdtSegments[s_NCHAMBER]
Definition TrackData.h:57
constexpr uint8_t stationPhi
station Phi 1 to 8
@ layer
Definition HitInfo.h:79
std::vector< MdtHitData > MdtHits
Definition MdtData.h:56
@ MaxChamber
Number of measurement point definitions.
std::vector< unsigned int > indexes

◆ findPatterns() [2/2]

StatusCode TrigL2MuonSA::MuFastPatternFinder::findPatterns ( const EventContext & ctx,
const TrigL2MuonSA::MuonRoad & muonRoad,
TrigL2MuonSA::MdtHits & mdtHits,
TrigL2MuonSA::StgcHits & stgcHits,
TrigL2MuonSA::MmHits & mmHits,
std::vector< TrigL2MuonSA::TrackPattern > & v_trackPatterns ) const

Definition at line 76 of file MuFastPatternFinder.cxx.

82{
83 ATH_CHECK( findPatterns(ctx, muonRoad, mdtHits, v_trackPatterns) );
84 ATH_CHECK( m_nswPatternFinder->findPatterns(muonRoad, stgcHits, mmHits, v_trackPatterns.back()) );
85
86 if (msgLvl(MSG::DEBUG)) {
87 for(unsigned int i_hit=0; i_hit<v_trackPatterns.back().stgcSegment.size(); i_hit++) {
88 ATH_MSG_DEBUG("PatternFinder: output sTGC hits global eta/phi/r/z/layer/channelType/isOutlier " << v_trackPatterns.back().stgcSegment[i_hit].eta << "/" << v_trackPatterns.back().stgcSegment[i_hit].phi << "/" << v_trackPatterns.back().stgcSegment[i_hit].r << "/" << v_trackPatterns.back().stgcSegment[i_hit].z << "/" << v_trackPatterns.back().stgcSegment[i_hit].layerNumber << "/" << v_trackPatterns.back().stgcSegment[i_hit].channelType << "/" << v_trackPatterns.back().stgcSegment[i_hit].isOutlier);
89 }
90
91 for(unsigned int i_hit=0; i_hit<v_trackPatterns.back().mmSegment.size(); i_hit++) {
92 ATH_MSG_DEBUG("PatternFinder: output MM hits global eta/phi/r/z/layer/isOutlier " << v_trackPatterns.back().mmSegment[i_hit].eta << "/" << v_trackPatterns.back().mmSegment[i_hit].phi << "/" << v_trackPatterns.back().mmSegment[i_hit].r << "/" << v_trackPatterns.back().mmSegment[i_hit].z << "/" << v_trackPatterns.back().mmSegment[i_hit].layerNumber << "/" << v_trackPatterns.back().mmSegment[i_hit].isOutlier);
93 }
94 }
95 return StatusCode::SUCCESS;
96}
#define ATH_CHECK
Evaluate an expression and check for errors.
bool msgLvl(const MSG::Level lvl) const
StatusCode findPatterns(const EventContext &ctx, const TrigL2MuonSA::MuonRoad &muonRoad, TrigL2MuonSA::MdtHits &mdtHits, std::vector< TrigL2MuonSA::TrackPattern > &v_trackPatterns) const
ToolHandle< NswPatternFinder > m_nswPatternFinder

◆ initialize()

StatusCode TrigL2MuonSA::MuFastPatternFinder::initialize ( )
overridevirtual

Definition at line 10 of file MuFastPatternFinder.cxx.

11{
12 ATH_CHECK( m_nswPatternFinder.retrieve() );
13 ATH_CHECK( m_idHelperSvc.retrieve() );
14 return StatusCode::SUCCESS;
15}

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

◆ 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_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> TrigL2MuonSA::MuFastPatternFinder::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 70 of file MuFastPatternFinder.h.

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

◆ m_mdtCalibrationTool

ToolHandle<IMdtCalibrationTool> TrigL2MuonSA::MuFastPatternFinder::m_mdtCalibrationTool {this, "CalibrationTool", "MdtCalibrationTool"}
private

Definition at line 68 of file MuFastPatternFinder.h.

68{this, "CalibrationTool", "MdtCalibrationTool"};

◆ m_nswPatternFinder

ToolHandle<NswPatternFinder> TrigL2MuonSA::MuFastPatternFinder::m_nswPatternFinder {this, "NswPatternFinder", "TrigL2MuonSA::NswPatternFinder"}
private

Definition at line 65 of file MuFastPatternFinder.h.

65{this, "NswPatternFinder", "TrigL2MuonSA::NswPatternFinder"};

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