ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
Muon::MdtMathSegmentFinder Class Reference

#include <MdtMathSegmentFinder.h>

Inheritance diagram for Muon::MdtMathSegmentFinder:
Collaboration diagram for Muon::MdtMathSegmentFinder:

Public Member Functions

 MdtMathSegmentFinder (const std::string &t, const std::string &n, const IInterface *p)
 
 ~MdtMathSegmentFinder ()=default
 
virtual StatusCode initialize ()
 
virtual const TrkDriftCircleMath::SegVec findSegments (const TrkDriftCircleMath::DCVec &dcvec, const TrkDriftCircleMath::CLVec &clvec, const TrkDriftCircleMath::Road &road, const TrkDriftCircleMath::DCStatistics &dcstats, const TrkDriftCircleMath::ChamberGeometry *multiGeo) const
 IMdtMdtMathSegmentFinder interface implementation
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
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Protected Attributes

ToolHandle< IDCSLFitProviderm_dcslFitProvider
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc
 
Gaudi::Property< int > m_finderDebugLevel {this, "FinderDebugLevel", 0, "switch on debug output of finder"}
 
Gaudi::Property< bool > m_doDrop {this, "DoDrop", true, "Recursive outlier removal"}
 
Gaudi::Property< bool > m_useChamberTheta {this, "UseChamberTheta", true, "Always look for pointing segments"}
 
Gaudi::Property< bool > m_enableSeedCleaning {this, "EnableSeedCleaning", false, "only use dc witout neighbours as seeds"}
 
Gaudi::Property< double > m_occupancyThreshold {this, "OccupancyThreshold", 0.3, "occupancy threshold before enabling seed cleaning"}
 
Gaudi::Property< double > m_occupancyCutOff {this, "OccupancyCutoff", 0.8, "above the occupancy threshold no segment finding"}
 
Gaudi::Property< double > m_roadWidth {this, "AssociationRoadWidth", 1.5, "Road width used during hit association with seed lines"}
 
Gaudi::Property< double > m_chi2PerDofDrop {this, "Chi2PerDofDropping", 10., "Chi2 cut for recursive outlier removal"}
 
Gaudi::Property< double > m_ratioEmptyTubesCut {this, "RatioEmptyTubeCut", 1.1, "holes/hits cut - holes are all non-hits along the line"}
 
Gaudi::Property< double > m_rpcAssociationPullCut {this, "RPCAssocationPullcut", 5., "Association cut for RPCs"}
 
Gaudi::Property< double > m_tgcAssociationPullCut {this, "TGCAssocationPullcut", 5., "Association cut for TGCs"}
 
Gaudi::Property< double > m_mdtAssociationPullCut {this, "MDTAssocationPullcut", 5., "Association cut for MDTs"}
 
Gaudi::Property< bool > m_doAllHitSort {this, "SortSegmentWithAllHits", true, "Including triggers in segment selection"}
 
Gaudi::Property< bool > m_doRoadAngleSeeding {this, "DoRoadSeeding", true, "use angle of road to seed segment search"}
 
Gaudi::Property< bool > m_doIPAngleSeeding {this, "DoIPSeeding", true, "use angle of IP to seed segment search"}
 
Gaudi::Property< double > m_tightRoadCut
 
Gaudi::Property< bool > m_doSingleMultiLayerScan {this, "DoSingleMultiLayerScan", true, "Look for segments in one multi layer"}
 
Gaudi::Property< bool > m_recoverMdtOutliers {this, "RecoverMdtOutliers", true, "Recover MDT outliers after fit"}
 
Gaudi::Property< bool > m_removeSingleOutliers {this, "RemoveSingleMdtOutliers", true, "Remove single MDT outliers"}
 
Gaudi::Property< bool > m_doCurvedSegmentFinder {this, "DoCurvedSegmentFinder", false, "Use the curved segment finding routine"}
 
Gaudi::Property< double > m_deltaCutT0Segments {this, "DeltaCutT0Segments", 5., "Delta cut for segments with T0 fit"}
 
Gaudi::Property< double > m_residualCutT0Segments {this, "ResidualCutT0Segments", 1., "Residual cut for segments with T0 fit"}
 
Gaudi::Property< bool > m_useSegmentQuality {this, "UseSegmentQuality", false, "Use segment quality in hit dropping"}
 
Gaudi::Property< unsigned int > m_maxHitsPerFullSearch
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

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
 

Detailed Description

Definition at line 16 of file MdtMathSegmentFinder.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

◆ MdtMathSegmentFinder()

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

Definition at line 17 of file MdtMathSegmentFinder.cxx.

17  : AthAlgTool(t, n, p) {
18  declareInterface<IMdtSegmentFinder>(this);
19  }

◆ ~MdtMathSegmentFinder()

Muon::MdtMathSegmentFinder::~MdtMathSegmentFinder ( )
default

Member Function Documentation

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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

◆ findSegments()

const TrkDriftCircleMath::SegVec Muon::MdtMathSegmentFinder::findSegments ( const TrkDriftCircleMath::DCVec dcvec,
const TrkDriftCircleMath::CLVec clvec,
const TrkDriftCircleMath::Road road,
const TrkDriftCircleMath::DCStatistics dcstats,
const TrkDriftCircleMath::ChamberGeometry multiGeo 
) const
virtual

IMdtMdtMathSegmentFinder interface implementation

Definition at line 30 of file MdtMathSegmentFinder.cxx.

34  {
35  // setup finder
37 
38  // set debug level
39  segmentFinder.debugLevel(m_finderDebugLevel);
40 
41  // configure uasge of chamber position for angular seeding
42  segmentFinder.setUseChamberPhi(m_useChamberTheta);
43 
44  // enable dropping of hits
45  segmentFinder.setDropHits(m_doDrop);
46 
47  // enable seed cleaing
48  segmentFinder.setSeedCleaning(m_enableSeedCleaning);
49 
50  // do single multilayer scan?
51  segmentFinder.setSingleMultiLayerScan(m_doSingleMultiLayerScan);
52 
53  // set chi2/ndof threshold for cleaning of segments
54  segmentFinder.setChi2DropCut(m_chi2PerDofDrop);
55 
56  // set ratio for dropping segments with many empty tubes
57  segmentFinder.setRatioEmptyTubesCut(m_ratioEmptyTubesCut);
58 
59  // set sort mode segment finder
60  segmentFinder.setSortSegmentsUsingAllHits(m_doAllHitSort);
61 
62  // set RPC pull cut
63  segmentFinder.setRPCPullCut(m_rpcAssociationPullCut);
64 
65  // set TGC pull cut
66  segmentFinder.setTGCPullCut(m_tgcAssociationPullCut);
67 
68  // set MDT outlier recovery
69  segmentFinder.setRecoverMDT(m_recoverMdtOutliers);
70 
71  // set removal of single outliers
72  segmentFinder.setRemoveSingleOutliers(m_removeSingleOutliers);
73 
74  // set the curved segment finder
75  segmentFinder.setCurvedSegmentFinder(m_doCurvedSegmentFinder);
76 
77  // set removal of single outliers
78  segmentFinder.setDeltaCutT0(m_deltaCutT0Segments); // reset defaults
79 
80  // set removal of single outliers
81  segmentFinder.setResidualCutT0(m_residualCutT0Segments);
82 
83  // set use of segment quality
84  segmentFinder.setUseSegmentQuality(m_useSegmentQuality);
85 
86  if (!m_dcslFitProvider.empty()) {
87  std::shared_ptr<const TrkDriftCircleMath::DCSLFitter> fitter(m_dcslFitProvider->getFitter(), Muon::IDCSLFitProvider::Unowned{});
88  segmentFinder.setFitter(fitter);
89  } else {
90  segmentFinder.setFitter(std::make_shared<TrkDriftCircleMath::DCSLFitter>());
91  }
92 
93  // set angle prediction from road
94  segmentFinder.setPhiRoad(road.angle(), road.chamberAngle(), road.width(), m_doRoadAngleSeeding, m_doIPAngleSeeding);
95 
96  // set pointer to geometry
97  segmentFinder.setMdtGeometry(multiGeo);
98 
99  // set seed cleaning
100  bool highOccupancy = false;
101  bool aboveOccupancyCut = false;
102  double occupancyMax = 0.;
103  unsigned int nmdtHits = 0;
104  // calculate multi layer occupancy
105  TrkDriftCircleMath::DCStatCit mit = dcstats.begin();
106  TrkDriftCircleMath::DCStatCit mit_end = dcstats.end();
107  for (; mit != mit_end; ++mit) {
108  unsigned int channels = mit->first->getNLayers() * mit->first->getNtubesperlayer();
109  double occupancy = (double)mit->second / (double)channels;
110 
111  nmdtHits += mit->second;
112 
113  occupancyMax = std::max(occupancy, occupancyMax);
114 
115  if (occupancy > m_occupancyThreshold) highOccupancy = true;
116 
117  if (occupancy > m_occupancyCutOff) aboveOccupancyCut = true;
118  }
119 
120  // sanity check
121  if (nmdtHits != dcvec.size()) {
122  ATH_MSG_WARNING(" inconsistent number of mdt hits " << nmdtHits << " from vec " << dcvec.size());
123  nmdtHits = dcvec.size();
124  }
125 
126  if (aboveOccupancyCut) {
127  ATH_MSG_DEBUG(" layer with occupancy above threshold, aborting segment finding "
128  << occupancyMax << " cut " << m_occupancyCutOff << " nhits " << nmdtHits << " cut " << m_maxHitsPerFullSearch);
129  return {};
130  }
131 
132  // enable seed cleaning
133  if (highOccupancy || nmdtHits > m_maxHitsPerFullSearch) {
134  ATH_MSG_DEBUG(" switch to fast search: occupancy " << occupancyMax << " cut " << m_occupancyThreshold << " nhits " << nmdtHits
135  << " cut " << m_maxHitsPerFullSearch);
136 
137  // to speed up reconstruction use default fitter
138  if (!m_dcslFitProvider.empty()) {
139  segmentFinder.setFitter(std::make_shared<TrkDriftCircleMath::DCSLFitter>());
140  }
141 
142  // use tight road cuts and only look for pointing segments
143  segmentFinder.setPhiRoad(road.chamberAngle(), road.chamberAngle(), m_tightRoadCut);
144  }
145 
146  return segmentFinder.findSegments(dcvec, clvec);
147  }

◆ initialize()

StatusCode Muon::MdtMathSegmentFinder::initialize ( )
virtual

Definition at line 21 of file MdtMathSegmentFinder.cxx.

21  {
22  if (!m_dcslFitProvider.empty()) {
23  ATH_CHECK(m_dcslFitProvider.retrieve());
24  ATH_MSG_INFO(" Using fitter from " << m_dcslFitProvider);
25  }
26  ATH_CHECK(m_idHelperSvc.retrieve());
27  return StatusCode::SUCCESS;
28  }

◆ 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() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_chi2PerDofDrop

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_chi2PerDofDrop {this, "Chi2PerDofDropping", 10., "Chi2 cut for recursive outlier removal"}
protected

Definition at line 51 of file MdtMathSegmentFinder.h.

◆ m_dcslFitProvider

ToolHandle<IDCSLFitProvider> Muon::MdtMathSegmentFinder::m_dcslFitProvider
protected
Initial value:
{
this,
"DCFitProvider",
""
}

Definition at line 31 of file MdtMathSegmentFinder.h.

◆ m_deltaCutT0Segments

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_deltaCutT0Segments {this, "DeltaCutT0Segments", 5., "Delta cut for segments with T0 fit"}
protected

Definition at line 73 of file MdtMathSegmentFinder.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_doAllHitSort

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doAllHitSort {this, "SortSegmentWithAllHits", true, "Including triggers in segment selection"}
protected

Definition at line 58 of file MdtMathSegmentFinder.h.

◆ m_doCurvedSegmentFinder

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doCurvedSegmentFinder {this, "DoCurvedSegmentFinder", false, "Use the curved segment finding routine"}
protected

Definition at line 72 of file MdtMathSegmentFinder.h.

◆ m_doDrop

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doDrop {this, "DoDrop", true, "Recursive outlier removal"}
protected

Definition at line 44 of file MdtMathSegmentFinder.h.

◆ m_doIPAngleSeeding

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doIPAngleSeeding {this, "DoIPSeeding", true, "use angle of IP to seed segment search"}
protected

Definition at line 63 of file MdtMathSegmentFinder.h.

◆ m_doRoadAngleSeeding

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doRoadAngleSeeding {this, "DoRoadSeeding", true, "use angle of road to seed segment search"}
protected

Definition at line 60 of file MdtMathSegmentFinder.h.

◆ m_doSingleMultiLayerScan

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_doSingleMultiLayerScan {this, "DoSingleMultiLayerScan", true, "Look for segments in one multi layer"}
protected

Definition at line 67 of file MdtMathSegmentFinder.h.

◆ m_enableSeedCleaning

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_enableSeedCleaning {this, "EnableSeedCleaning", false, "only use dc witout neighbours as seeds"}
protected

Definition at line 47 of file MdtMathSegmentFinder.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_finderDebugLevel

Gaudi::Property<int> Muon::MdtMathSegmentFinder::m_finderDebugLevel {this, "FinderDebugLevel", 0, "switch on debug output of finder"}
protected

Definition at line 43 of file MdtMathSegmentFinder.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> Muon::MdtMathSegmentFinder::m_idHelperSvc
protected
Initial value:
{
this,
"MuonIdHelperSvc",
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
}

Definition at line 37 of file MdtMathSegmentFinder.h.

◆ m_maxHitsPerFullSearch

Gaudi::Property<unsigned int> Muon::MdtMathSegmentFinder::m_maxHitsPerFullSearch
protected
Initial value:
{this, "MaxHitsPerFullSearch", 100,
"maximum number of hits, above will use faster search mode"}

Definition at line 77 of file MdtMathSegmentFinder.h.

◆ m_mdtAssociationPullCut

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_mdtAssociationPullCut {this, "MDTAssocationPullcut", 5., "Association cut for MDTs"}
protected

Definition at line 56 of file MdtMathSegmentFinder.h.

◆ m_occupancyCutOff

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_occupancyCutOff {this, "OccupancyCutoff", 0.8, "above the occupancy threshold no segment finding"}
protected

Definition at line 49 of file MdtMathSegmentFinder.h.

◆ m_occupancyThreshold

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_occupancyThreshold {this, "OccupancyThreshold", 0.3, "occupancy threshold before enabling seed cleaning"}
protected

Definition at line 48 of file MdtMathSegmentFinder.h.

◆ m_ratioEmptyTubesCut

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_ratioEmptyTubesCut {this, "RatioEmptyTubeCut", 1.1, "holes/hits cut - holes are all non-hits along the line"}
protected

Definition at line 52 of file MdtMathSegmentFinder.h.

◆ m_recoverMdtOutliers

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_recoverMdtOutliers {this, "RecoverMdtOutliers", true, "Recover MDT outliers after fit"}
protected

Definition at line 69 of file MdtMathSegmentFinder.h.

◆ m_removeSingleOutliers

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_removeSingleOutliers {this, "RemoveSingleMdtOutliers", true, "Remove single MDT outliers"}
protected

Definition at line 71 of file MdtMathSegmentFinder.h.

◆ m_residualCutT0Segments

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_residualCutT0Segments {this, "ResidualCutT0Segments", 1., "Residual cut for segments with T0 fit"}
protected

Definition at line 74 of file MdtMathSegmentFinder.h.

◆ m_roadWidth

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_roadWidth {this, "AssociationRoadWidth", 1.5, "Road width used during hit association with seed lines"}
protected

Definition at line 50 of file MdtMathSegmentFinder.h.

◆ m_rpcAssociationPullCut

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_rpcAssociationPullCut {this, "RPCAssocationPullcut", 5., "Association cut for RPCs"}
protected

Definition at line 54 of file MdtMathSegmentFinder.h.

◆ m_tgcAssociationPullCut

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_tgcAssociationPullCut {this, "TGCAssocationPullcut", 5., "Association cut for TGCs"}
protected

Definition at line 55 of file MdtMathSegmentFinder.h.

◆ m_tightRoadCut

Gaudi::Property<double> Muon::MdtMathSegmentFinder::m_tightRoadCut
protected
Initial value:
{this, "TightRoadCut", 0.1,
"tight cut on angle with prediction, used for very busy chambers"}

Definition at line 64 of file MdtMathSegmentFinder.h.

◆ m_useChamberTheta

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_useChamberTheta {this, "UseChamberTheta", true, "Always look for pointing segments"}
protected

Definition at line 45 of file MdtMathSegmentFinder.h.

◆ m_useSegmentQuality

Gaudi::Property<bool> Muon::MdtMathSegmentFinder::m_useSegmentQuality {this, "UseSegmentQuality", false, "Use segment quality in hit dropping"}
protected

Definition at line 75 of file MdtMathSegmentFinder.h.

◆ 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:
LArSamples::FitterData::fitter
const ShapeFitter * fitter
Definition: ShapeFitter.cxx:23
Muon::MdtMathSegmentFinder::m_doRoadAngleSeeding
Gaudi::Property< bool > m_doRoadAngleSeeding
Definition: MdtMathSegmentFinder.h:60
Muon::MdtMathSegmentFinder::m_doSingleMultiLayerScan
Gaudi::Property< bool > m_doSingleMultiLayerScan
Definition: MdtMathSegmentFinder.h:67
Muon::MdtMathSegmentFinder::m_doDrop
Gaudi::Property< bool > m_doDrop
Definition: MdtMathSegmentFinder.h:44
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
max
#define max(a, b)
Definition: cfImp.cxx:41
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Muon::MdtMathSegmentFinder::m_rpcAssociationPullCut
Gaudi::Property< double > m_rpcAssociationPullCut
Definition: MdtMathSegmentFinder.h:54
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Muon::MdtMathSegmentFinder::m_doCurvedSegmentFinder
Gaudi::Property< bool > m_doCurvedSegmentFinder
Definition: MdtMathSegmentFinder.h:72
Muon::IDCSLFitProvider::Unowned
Helper struct to overload the destructors of smart pointers.
Definition: IDCSLFitProvider.h:39
Muon::MdtMathSegmentFinder::m_mdtAssociationPullCut
Gaudi::Property< double > m_mdtAssociationPullCut
Definition: MdtMathSegmentFinder.h:56
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Muon::MdtMathSegmentFinder::m_dcslFitProvider
ToolHandle< IDCSLFitProvider > m_dcslFitProvider
Definition: MdtMathSegmentFinder.h:31
TrkDriftCircleMath::DCStatCit
DCStatistics::const_iterator DCStatCit
Definition: DCStatistics.h:21
Muon::MdtMathSegmentFinder::m_finderDebugLevel
Gaudi::Property< int > m_finderDebugLevel
Definition: MdtMathSegmentFinder.h:43
Muon::MdtMathSegmentFinder::m_doAllHitSort
Gaudi::Property< bool > m_doAllHitSort
Definition: MdtMathSegmentFinder.h:58
Muon::MdtMathSegmentFinder::m_residualCutT0Segments
Gaudi::Property< double > m_residualCutT0Segments
Definition: MdtMathSegmentFinder.h:74
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TrkDriftCircleMath::Road::chamberAngle
double chamberAngle() const
returns the angle of the line from the chamber center to the IP in local AMDB chamber coordinates
Definition: Road.h:35
Muon::MdtMathSegmentFinder::m_chi2PerDofDrop
Gaudi::Property< double > m_chi2PerDofDrop
Definition: MdtMathSegmentFinder.h:51
Muon::MdtMathSegmentFinder::m_occupancyCutOff
Gaudi::Property< double > m_occupancyCutOff
Definition: MdtMathSegmentFinder.h:49
dq_defect_copy_defect_database.channels
def channels
Definition: dq_defect_copy_defect_database.py:56
Muon::MdtMathSegmentFinder::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MdtMathSegmentFinder.h:37
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
Muon::MdtMathSegmentFinder::m_deltaCutT0Segments
Gaudi::Property< double > m_deltaCutT0Segments
Definition: MdtMathSegmentFinder.h:73
Muon::MdtMathSegmentFinder::m_occupancyThreshold
Gaudi::Property< double > m_occupancyThreshold
Definition: MdtMathSegmentFinder.h:48
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TrkDriftCircleMath::Road::width
double width() const
returns the width angle of the road
Definition: Road.h:38
beamspotman.n
n
Definition: beamspotman.py:731
TrkDriftCircleMath::Road::angle
double angle() const
returns the angle of the road in local coordinates
Definition: Road.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Muon::MdtMathSegmentFinder::m_useChamberTheta
Gaudi::Property< bool > m_useChamberTheta
Definition: MdtMathSegmentFinder.h:45
Muon::MdtMathSegmentFinder::m_ratioEmptyTubesCut
Gaudi::Property< double > m_ratioEmptyTubesCut
Definition: MdtMathSegmentFinder.h:52
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Muon::MdtMathSegmentFinder::m_roadWidth
Gaudi::Property< double > m_roadWidth
Definition: MdtMathSegmentFinder.h:50
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Muon::MdtMathSegmentFinder::m_removeSingleOutliers
Gaudi::Property< bool > m_removeSingleOutliers
Definition: MdtMathSegmentFinder.h:71
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
Muon::MdtMathSegmentFinder::m_enableSeedCleaning
Gaudi::Property< bool > m_enableSeedCleaning
Definition: MdtMathSegmentFinder.h:47
Muon::MdtMathSegmentFinder::m_maxHitsPerFullSearch
Gaudi::Property< unsigned int > m_maxHitsPerFullSearch
Definition: MdtMathSegmentFinder.h:77
Muon::MdtMathSegmentFinder::m_tgcAssociationPullCut
Gaudi::Property< double > m_tgcAssociationPullCut
Definition: MdtMathSegmentFinder.h:55
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Muon::MdtMathSegmentFinder::m_doIPAngleSeeding
Gaudi::Property< bool > m_doIPAngleSeeding
Definition: MdtMathSegmentFinder.h:63
Muon::MdtMathSegmentFinder::m_recoverMdtOutliers
Gaudi::Property< bool > m_recoverMdtOutliers
Definition: MdtMathSegmentFinder.h:69
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TrkDriftCircleMath::SegmentFinder
Definition: SegmentFinder.h:32
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
Muon::MdtMathSegmentFinder::m_tightRoadCut
Gaudi::Property< double > m_tightRoadCut
Definition: MdtMathSegmentFinder.h:64
Muon::MdtMathSegmentFinder::m_useSegmentQuality
Gaudi::Property< bool > m_useSegmentQuality
Definition: MdtMathSegmentFinder.h:75
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528