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

Algorithm to handle the phi hough transform. More...

#include <MuonPhiHoughTransformAlg.h>

Inheritance diagram for MuonR4::MuonPhiHoughTransformAlg:
Collaboration diagram for MuonR4::MuonPhiHoughTransformAlg:

Public Member Functions

 MuonPhiHoughTransformAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~MuonPhiHoughTransformAlg ()=default
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

template<class ContainerType >
StatusCode retrieveContainer (const EventContext &ctx, const SG::ReadHandleKey< ContainerType > &key, const ContainerType *&contToPush) const
 Helper method to fetch data from StoreGate. More...
 
StatusCode prepareHoughPlane (MuonHoughEventData &data) const
 prepare the hough plane once per event. More...
 
StatusCode preProcessMaximum (MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
 pre-processing for a given input eta-maximum Counts potential phi-hits and defines the search space More...
 
HoughSegmentSeed recoverSinglePhiMax (MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
 extend an eta maximum with just a single attached phi measurement. More...
 
std::vector< MuonR4::ActsPeakFinderForMuon::Maximum > findRankedSegmentSeeds (MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
 perform a hough search for the most promising phi extension of an eta-maximum Performs a local hough transform using the phi-measurements on the maximum and returns the maxima ranked by their compatibility with the eta-measurements on the maximum. More...
 
int countIncompatibleEtaHits (const MuonR4::ActsPeakFinderForMuon::Maximum &phiMaximum, const MuonR4::HoughMaximum &etaMaximum) const
 helper to count the number of eta measurements that would be discarded for a given phi extension candidate. More...
 
MuonR4::HoughSegmentSeed buildSegmentSeed (const HoughMaximum &etaMax, const MuonR4::ActsPeakFinderForMuon::Maximum &phiMax) const
 constructs a segment seed from an eta maximum and a phi-extension. More...
 
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

SG::ReadHandleKey< StationHoughMaxContainerm_maxima {this, "StationHoughMaxContainer", "MuonHoughStationMaxima"}
 
SG::WriteHandleKey< StationHoughSegmentSeedContainerm_segmentSeeds {this, "StationHoughSegmentSeedContainer", "MuonHoughStationSegmentSeeds"}
 
SG::ReadHandleKey< ActsGeometryContextm_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"}
 
DoubleProperty m_targetResoTanPhi {this, "ResolutionTargetTanAngle", 0.01}
 
DoubleProperty m_targetResoIntercept {this, "ResolutionTargetIntercept", 10.}
 
DoubleProperty m_minSigmasSearchTanPhi {this, "minSigmasSearchTanPhi", 3.}
 
DoubleProperty m_minSigmasSearchIntercept {this, "minSigmasSearchIntercept", 3.}
 
IntegerProperty m_nBinsTanPhi {this, "nBinsTanAngle", 15}
 
IntegerProperty m_nBinsIntercept {this, "nBinsIntercept", 100}
 
IntegerProperty m_maxEtaHolesOnMax {this, "maxEtaHoles", 1}
 
BooleanProperty m_recoverSinglePhiWithBS {this, "recoverSinglePhiHitsWithBS", true}
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

Algorithm to handle the phi hough transform.

This algorithm is responsible for extending existing hough maxima found in a previous eta-transform. It will try to form a phi extension from the phi-sensitive measurements attached to the maximum and remove incompatible ones. It will write MuonSegmentSeeds into the event store for downstream use.

Definition at line 36 of file MuonPhiHoughTransformAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonPhiHoughTransformAlg()

MuonPhiHoughTransformAlg::MuonPhiHoughTransformAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 14 of file MuonPhiHoughTransformAlg.cxx.

16  : AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~MuonPhiHoughTransformAlg()

virtual MuonR4::MuonPhiHoughTransformAlg::~MuonPhiHoughTransformAlg ( )
virtualdefault

Member Function Documentation

◆ buildSegmentSeed()

MuonR4::HoughSegmentSeed MuonPhiHoughTransformAlg::buildSegmentSeed ( const HoughMaximum etaMax,
const MuonR4::ActsPeakFinderForMuon::Maximum &  phiMax 
) const
private

constructs a segment seed from an eta maximum and a phi-extension.

Will keep all pure eta-measurements on the original maximum and add those eta-phi or pure phi measurements compatible with the extension.

Parameters
etaMaxthe eta-maximum
phiMaxthe phi-transform maximum
Returns
a HoughSegmentSeed representing the updated candidate

Definition at line 81 of file MuonPhiHoughTransformAlg.cxx.

83  {
84  // book a new hit list
85  std::vector<MuonR4::HoughHitType> hitsOnMax;
86  // copy the pure eta hits onto the hit list
87  std::copy_if(etaMax.getHitsInMax().begin(), etaMax.getHitsInMax().end(), std::back_inserter(hitsOnMax), [](const HoughHitType &hit){
88  return (hit->measuresEta() && !hit->measuresPhi());
89  });
90  // and then add all hits (2D and pure phi) from the phi-extension to it
91  hitsOnMax.insert(hitsOnMax.end(), phiMax.hitIdentifiers.begin(), phiMax.hitIdentifiers.end());
92  // use this to construct the segment seed
93  return HoughSegmentSeed( etaMax.tanTheta(), etaMax.interceptY(), phiMax.x, phiMax.y, hitsOnMax.size(), std::move(hitsOnMax));
94 }

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ countIncompatibleEtaHits()

int MuonPhiHoughTransformAlg::countIncompatibleEtaHits ( const MuonR4::ActsPeakFinderForMuon::Maximum &  phiMaximum,
const MuonR4::HoughMaximum etaMaximum 
) const
private

helper to count the number of eta measurements that would be discarded for a given phi extension candidate.

Correct extensions should have a very small or zero number.

Parameters
phiMaximumPhi-maximum to evaluate
etaMaximumEta-maximum the candidate was obtained from

Definition at line 59 of file MuonPhiHoughTransformAlg.cxx.

61  {
62  std::unordered_map<const xAOD::UncalibratedMeasurement*, bool> foundEtas;
63  // loop over the original eta maximum and check all hits measuring the eta-coordinate
64  for (auto& hit : etaMaximum.getHitsInMax()) {
65  if (hit->measuresEta() && hit->measuresPhi()) {
66  auto [iter, added] =
67  foundEtas.emplace(hit->primaryMeasurement(), false);
68  // test if the PRD for the eta-measurement appears on at least
69  // one space point of this phi extension.
70  // This will be done for all space points containing the eta-PRD
71  iter->second |= phiMaximum.hitIdentifiers.count(hit);
72  }
73  }
74  // count the number of eta PRD not compatible with this extension.
75  return std::count_if(
76  foundEtas.begin(), foundEtas.end(),
77  [](const std::pair<const xAOD::UncalibratedMeasurement*, bool>& p) {
78  return !p.second;
79  });
80 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode MuonPhiHoughTransformAlg::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 187 of file MuonPhiHoughTransformAlg.cxx.

187  {
188 
189  // read the inputs
190  const StationHoughMaxContainer* maxima{nullptr};
191  ATH_CHECK(retrieveContainer(ctx, m_maxima, maxima));
192 
193  const ActsGeometryContext* gctx{nullptr};
195 
196  // book the event data object
197  MuonHoughEventData eventData(*gctx);
198 
199  // prepare the accumulator
200  ATH_CHECK(prepareHoughPlane(eventData));
201 
202  // prepare our output collection
204  m_segmentSeeds, ctx);
205  ATH_CHECK(writeMaxima.record(
206  std::make_unique<StationHoughSegmentSeedContainer>()));
207 
208  // loop over the previously found eta-maxima for each station
209  for (auto& stationAndMax : *maxima) {
210  std::vector<MuonR4::HoughSegmentSeed> segmentSeedsInStation;
211  for (auto& max : stationAndMax.getMaxima()) {
212  // for each maximum, pre-process
213  ATH_CHECK(preProcessMaximum(eventData,max));
214  bool foundSolution=false;
215  // if we have enough hits, run a phi transform
216  if (eventData.phiHitsOnMax > 1){
217  std::vector<MuonR4::ActsPeakFinderForMuon::Maximum> rankedSeeds = findRankedSegmentSeeds(eventData, max);
218  for (auto & phiSolution : rankedSeeds){
219  foundSolution = true;
220  segmentSeedsInStation.push_back(buildSegmentSeed(max, phiSolution));
221  }
222  }
223  // if we do not have at least two phi-hits for a proper transform:
224  if (!foundSolution){
225  // if we have a single phi hit, we can approximate the phi
226  // solution using the beam spot (as the IP is far).
227  // This is steered by a flag, and not appropriate for splashes
228  // or cosmics.
229  if (m_recoverSinglePhiWithBS && eventData.phiHitsOnMax == 1){
230  segmentSeedsInStation.push_back(recoverSinglePhiMax(eventData,max));
231  }
232  // otherwise we have no phi-solution, and we fall back to writing a 1D eta-maximum
233  else{
234  segmentSeedsInStation.push_back(HoughSegmentSeed(max));
235  }
236  }
237  }
238  // add the maxima for this station to the output
239  writeMaxima->emplace(StationHoughSegmentSeeds(stationAndMax.chamber(),
240  segmentSeedsInStation));
241 
242  }
243  return StatusCode::SUCCESS;
244 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ findRankedSegmentSeeds()

std::vector< MuonR4::ActsPeakFinderForMuon::Maximum > MuonPhiHoughTransformAlg::findRankedSegmentSeeds ( MuonHoughEventData data,
const MuonR4::HoughMaximum maximum 
) const
private

perform a hough search for the most promising phi extension of an eta-maximum Performs a local hough transform using the phi-measurements on the maximum and returns the maxima ranked by their compatibility with the eta-measurements on the maximum.

Parameters
dataevent data object
maximumeta maximum to extend
Returns
: The best maxima found by the extension (lowest number of eta measurements that would need to be discarded)

Definition at line 141 of file MuonPhiHoughTransformAlg.cxx.

141  {
142  std::map<int, std::vector<MuonR4::ActsPeakFinderForMuon::Maximum>> rankedSeeds;
143  // reset the accumulator
144  eventData.houghPlane->reset();
145  // fill the accumulator with the phi measurements
146  for (auto hit : maximum.getHitsInMax()){
147  if (!hit->measuresPhi())
148  continue;
149  eventData.houghPlane->fill<HoughHitType>(
150  hit, eventData.currAxisRanges,
153  // up-weigh 2D spacepoints w.r.t 1D phi hits to prevent
154  // discarding measurements known to be compatible in eta
155  (hit->measuresEta() ? 2.0 : 1.0)
156  );
157  }
158  // run the peak finder
159  auto foundMaxPhi = eventData.peakFinder->findPeaks(
160  *(eventData.houghPlane), eventData.currAxisRanges);
161  // now rank the found peaks by the number of eta-compatible PRDs they would discard.
162  for (auto solution : foundMaxPhi) {
163  // for each solution, count how many eta PRDs would not be compatible with this phi extension.
164  // rank by the lowest number of such "holes".
165  rankedSeeds[countIncompatibleEtaHits(solution, maximum)].push_back(solution);
166  }
167  // return only the best solution(s)
168  auto best = rankedSeeds.begin();
169  // and apply the maximum hole cut.
170  if (best != rankedSeeds.end() && best->first <= m_maxEtaHolesOnMax){
171  return best->second;
172  }
173  return {};
174 }

◆ initialize()

StatusCode MuonPhiHoughTransformAlg::initialize ( )
overridevirtual

Definition at line 18 of file MuonPhiHoughTransformAlg.cxx.

18  {
22 
23  return StatusCode::SUCCESS;
24 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ prepareHoughPlane()

StatusCode MuonPhiHoughTransformAlg::prepareHoughPlane ( MuonHoughEventData data) const
private

prepare the hough plane once per event.

Books the accumulator and attaches it to the event data

Parameters
dataEvent data object
Returns
a status code

Definition at line 42 of file MuonPhiHoughTransformAlg.cxx.

43  {
44  HoughPlaneConfig cfg;
45  cfg.nBinsX = m_nBinsTanPhi;
46  cfg.nBinsY = m_nBinsIntercept;
47  // configure the peak finder for the phi-extension.
48  // Expect "shallow" maxima with 2-3 hits.
49  ActsPeakFinderForMuonCfg peakFinderCfg;
50  peakFinderCfg.fractionCutoff = 0.4;
51  peakFinderCfg.threshold = 2; // 2D spacepoints receive a weight of 2
52  peakFinderCfg.minSpacingBetweenPeaks = {0., 30.};
53  data.houghPlane = std::make_unique<HoughPlane>(cfg);
54  data.peakFinder = std::make_unique<ActsPeakFinderForMuon>(peakFinderCfg);
55 
56  return StatusCode::SUCCESS;
57 }

◆ preProcessMaximum()

StatusCode MuonPhiHoughTransformAlg::preProcessMaximum ( MuonHoughEventData data,
const MuonR4::HoughMaximum maximum 
) const
private

pre-processing for a given input eta-maximum Counts potential phi-hits and defines the search space

Parameters
dataEvent data object
maximumAn (eta) maximum
Returns
a status code

Definition at line 96 of file MuonPhiHoughTransformAlg.cxx.

96  {
97  // reset the event data
98  eventData.phiHitsOnMax = 0;
99  eventData.searchSpaceTanAngle = std::make_pair(1e10, -1e10);
100  eventData.searchSpaceIntercept = std::make_pair(1e10, -1e10);
101  // loop over the measurements on the maximum
102  for (auto hit : maximum.getHitsInMax()) {
103  // reject the pure eta measurements - not relevant here
104  if (!hit->measuresPhi())
105  continue;
106  // find the direction of the IP viewed from the chamber frame
107  Amg::Vector3D extrapDir = (hit->positionInChamber() - hit->muonChamber()->globalToLocalTrans(eventData.gctx).translation()).unit();
108  // express the x location of our phi hits on the chamber plane (z = 0) when projecting from the beam spot
109  std::optional<double> dummyIntercept = Amg::intersect<3>(hit->positionInChamber(),extrapDir,Amg::Vector3D::UnitZ(),0);
110  double x0 = (hit->positionInChamber() + dummyIntercept.value_or(0) * extrapDir).x();
111  // now we can obtain the most likely tan(phi) via the pointing vector from the origin to our hit
112  double tanPhi = extrapDir.x()/extrapDir.z();
113  // update our search space with this info
114  MuonR4::updateSearchWindow(eventData.searchSpaceTanAngle, tanPhi);
115  MuonR4::updateSearchWindow(eventData.searchSpaceIntercept, x0);
116  // and increment the hit counter
117  ++ eventData.phiHitsOnMax;
118  }
119  // now use the results from the individual hits to define an axis range adapted to the binning we desire
120  double chamberCenter = (eventData.searchSpaceIntercept.second + eventData.searchSpaceIntercept.first) * 0.5;
121  double searchStart = chamberCenter - 0.5 * eventData.houghPlane->nBinsY() * m_targetResoIntercept;
122  double searchEnd = chamberCenter + 0.5 * eventData.houghPlane->nBinsY() * m_targetResoIntercept;
123  // Protection for very wide buckets - if the search space does not cover all of the bucket, widen the bin size
124  // so that we cover everything
125  searchStart = std::min(searchStart, eventData.searchSpaceIntercept.first- m_minSigmasSearchIntercept * m_targetResoIntercept);
126  searchEnd = std::max(searchEnd, eventData.searchSpaceIntercept.second + m_minSigmasSearchIntercept * m_targetResoIntercept);
127  // also treat tan(phi)
128  double tanPhiMean = 0.5 * (eventData.searchSpaceTanAngle.first + eventData.searchSpaceTanAngle.second);
129  double searchStartTanPhi = tanPhiMean - 0.5 * eventData.houghPlane->nBinsX() * m_targetResoTanPhi;
130  double searchEndTanPhi = tanPhiMean + 0.5* eventData.houghPlane->nBinsX() * m_targetResoTanPhi;
131  searchStartTanPhi = std::min(searchStartTanPhi, eventData.searchSpaceTanAngle.first- m_minSigmasSearchTanPhi * m_targetResoTanPhi);
132  searchEndTanPhi = std::max(searchEndTanPhi, eventData.searchSpaceTanAngle.second + m_minSigmasSearchTanPhi * m_targetResoTanPhi);
133 
134  // and update the axis ranges for the search space according to our results
135  eventData.currAxisRanges =
136  Acts::HoughTransformUtils::HoughAxisRanges{searchStartTanPhi, searchEndTanPhi, searchStart, searchEnd};
137 
138  return StatusCode::SUCCESS;
139 }

◆ recoverSinglePhiMax()

HoughSegmentSeed MuonPhiHoughTransformAlg::recoverSinglePhiMax ( MuonHoughEventData data,
const MuonR4::HoughMaximum maximum 
) const
private

extend an eta maximum with just a single attached phi measurement.

Uses the beam spot direction to guess an approximate phi-intercept and direction.

Parameters
dataevent data object
maximumeta-maximum to extend
Returns
a HoughSegmentSeed extended using the pointing assumption

Definition at line 175 of file MuonPhiHoughTransformAlg.cxx.

175  {
176  // recovers cases of a single phi hit assuming a straight
177  // line extrapolation from the beam line to the phi measurement
178  return HoughSegmentSeed(maximum.tanTheta(), maximum.interceptY(),
179  data.searchSpaceTanAngle.first,
180  data.searchSpaceIntercept.first,
181  maximum.getCounts(),
182  std::vector<HoughHitType>(maximum.getHitsInMax()));
183 
184 }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ retrieveContainer()

template<class ContainerType >
StatusCode MuonPhiHoughTransformAlg::retrieveContainer ( const EventContext &  ctx,
const SG::ReadHandleKey< ContainerType > &  key,
const ContainerType *&  contToPush 
) const
private

Helper method to fetch data from StoreGate.

If the key is empty, a nullptr is assigned to the container ptr Failure is returned in cases, of non-empty keys and failed retrieval

Definition at line 27 of file MuonPhiHoughTransformAlg.cxx.

29  {
30  contToPush = nullptr;
31  if (key.empty()) {
32  ATH_MSG_VERBOSE("No key has been parsed for object "
33  << typeid(ContainerType).name());
34  return StatusCode::SUCCESS;
35  }
36  SG::ReadHandle<ContainerType> readHandle{key, ctx};
37  ATH_CHECK(readHandle.isPresent());
38  contToPush = readHandle.cptr();
39  return StatusCode::SUCCESS;
40 }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_geoCtxKey

SG::ReadHandleKey<ActsGeometryContext> MuonR4::MuonPhiHoughTransformAlg::m_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"}
private

Definition at line 99 of file MuonPhiHoughTransformAlg.h.

◆ m_maxEtaHolesOnMax

IntegerProperty MuonR4::MuonPhiHoughTransformAlg::m_maxEtaHolesOnMax {this, "maxEtaHoles", 1}
private

Definition at line 119 of file MuonPhiHoughTransformAlg.h.

◆ m_maxima

SG::ReadHandleKey<StationHoughMaxContainer> MuonR4::MuonPhiHoughTransformAlg::m_maxima {this, "StationHoughMaxContainer", "MuonHoughStationMaxima"}
private

Definition at line 94 of file MuonPhiHoughTransformAlg.h.

◆ m_minSigmasSearchIntercept

DoubleProperty MuonR4::MuonPhiHoughTransformAlg::m_minSigmasSearchIntercept {this, "minSigmasSearchIntercept", 3.}
private

Definition at line 110 of file MuonPhiHoughTransformAlg.h.

◆ m_minSigmasSearchTanPhi

DoubleProperty MuonR4::MuonPhiHoughTransformAlg::m_minSigmasSearchTanPhi {this, "minSigmasSearchTanPhi", 3.}
private

Definition at line 107 of file MuonPhiHoughTransformAlg.h.

◆ m_nBinsIntercept

IntegerProperty MuonR4::MuonPhiHoughTransformAlg::m_nBinsIntercept {this, "nBinsIntercept", 100}
private

Definition at line 116 of file MuonPhiHoughTransformAlg.h.

◆ m_nBinsTanPhi

IntegerProperty MuonR4::MuonPhiHoughTransformAlg::m_nBinsTanPhi {this, "nBinsTanAngle", 15}
private

Definition at line 114 of file MuonPhiHoughTransformAlg.h.

◆ m_recoverSinglePhiWithBS

BooleanProperty MuonR4::MuonPhiHoughTransformAlg::m_recoverSinglePhiWithBS {this, "recoverSinglePhiHitsWithBS", true}
private

Definition at line 122 of file MuonPhiHoughTransformAlg.h.

◆ m_segmentSeeds

SG::WriteHandleKey<StationHoughSegmentSeedContainer> MuonR4::MuonPhiHoughTransformAlg::m_segmentSeeds {this, "StationHoughSegmentSeedContainer", "MuonHoughStationSegmentSeeds"}
private

Definition at line 96 of file MuonPhiHoughTransformAlg.h.

◆ m_targetResoIntercept

DoubleProperty MuonR4::MuonPhiHoughTransformAlg::m_targetResoIntercept {this, "ResolutionTargetIntercept", 10.}
private

Definition at line 104 of file MuonPhiHoughTransformAlg.h.

◆ m_targetResoTanPhi

DoubleProperty MuonR4::MuonPhiHoughTransformAlg::m_targetResoTanPhi {this, "ResolutionTargetTanAngle", 0.01}
private

Definition at line 102 of file MuonPhiHoughTransformAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
MuonR4::MuonPhiHoughTransformAlg::findRankedSegmentSeeds
std::vector< MuonR4::ActsPeakFinderForMuon::Maximum > findRankedSegmentSeeds(MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
perform a hough search for the most promising phi extension of an eta-maximum Performs a local hough ...
Definition: MuonPhiHoughTransformAlg.cxx:141
MuonR4::MuonPhiHoughTransformAlg::preProcessMaximum
StatusCode preProcessMaximum(MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
pre-processing for a given input eta-maximum Counts potential phi-hits and defines the search space
Definition: MuonPhiHoughTransformAlg.cxx:96
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
MuonR4::MuonPhiHoughTransformAlg::m_targetResoIntercept
DoubleProperty m_targetResoIntercept
Definition: MuonPhiHoughTransformAlg.h:104
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
max
#define max(a, b)
Definition: cfImp.cxx:41
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
MuonR4::HoughHitType
std::shared_ptr< MuonR4::MuonSpacePoint > HoughHitType
Definition: MuonHoughDefs.h:20
MuonR4::StationHoughMaxContainer
std::set< StationHoughMaxima > StationHoughMaxContainer
Definition: StationHoughMaxContainer.h:12
MuonR4::HoughMaximum_impl::tanTheta
double tanTheta() const
getter
Definition: HoughMaximum.h:31
MuonR4::HoughMaximum_impl::interceptY
double interceptY() const
getter
Definition: HoughMaximum.h:35
MuonR4::MuonPhiHoughTransformAlg::m_nBinsIntercept
IntegerProperty m_nBinsIntercept
Definition: MuonPhiHoughTransformAlg.h:116
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
MuonR4::HoughSegmentSeed
HoughSegmentSeed_impl< HoughHitType > HoughSegmentSeed
Definition: MuonHoughDefs.h:24
MuonR4::MuonPhiHoughTransformAlg::buildSegmentSeed
MuonR4::HoughSegmentSeed buildSegmentSeed(const HoughMaximum &etaMax, const MuonR4::ActsPeakFinderForMuon::Maximum &phiMax) const
constructs a segment seed from an eta maximum and a phi-extension.
Definition: MuonPhiHoughTransformAlg.cxx:81
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
MuonR4::HoughHelpers::Phi::houghParamStrip
double houghParamStrip(double tanPhi, const MuonR4::HoughHitType &dc)
straight line parametrisation for strip detector measurements, in the x-direction
Definition: HoughHelperFunctions.cxx:31
MuonR4::MuonPhiHoughTransformAlg::m_segmentSeeds
SG::WriteHandleKey< StationHoughSegmentSeedContainer > m_segmentSeeds
Definition: MuonPhiHoughTransformAlg.h:96
MuonR4::ActsPeakFinderForMuonCfg
Acts::HoughTransformUtils::PeakFinders::IslandsAroundMaxConfig ActsPeakFinderForMuonCfg
Definition: MuonHoughDefs.h:33
MuonR4::StationHoughSegmentSeeds
StationHoughResults< HoughSegmentSeed > StationHoughSegmentSeeds
Definition: StationHoughMaxima.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
x
#define x
MuonR4::MuonPhiHoughTransformAlg::m_recoverSinglePhiWithBS
BooleanProperty m_recoverSinglePhiWithBS
Definition: MuonPhiHoughTransformAlg.h:122
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
MuonR4::updateSearchWindow
void updateSearchWindow(std::pair< double, double > &searchWindow, double value)
Updates a search space window to account for a value.
Definition: MuonHoughEventData.h:23
MuonR4::MuonPhiHoughTransformAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MuonPhiHoughTransformAlg.h:99
MuonR4::MuonPhiHoughTransformAlg::m_minSigmasSearchTanPhi
DoubleProperty m_minSigmasSearchTanPhi
Definition: MuonPhiHoughTransformAlg.h:107
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MuonR4::MuonHoughEventData_impl
Templated event data class for the phase-2 muon hough transform.
Definition: MuonHoughEventData.h:34
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
MuonR4::MuonPhiHoughTransformAlg::retrieveContainer
StatusCode retrieveContainer(const EventContext &ctx, const SG::ReadHandleKey< ContainerType > &key, const ContainerType *&contToPush) const
Helper method to fetch data from StoreGate.
Definition: MuonPhiHoughTransformAlg.cxx:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
python.utils.best
def best(iterable, priorities=[3, 2, 1, -1, 0])
Definition: DataQuality/DQUtils/python/utils.py:50
AnalysisUtils::copy_if
Out copy_if(In first, const In &last, Out res, const Pred &p)
Definition: IFilterUtils.h:30
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
min
#define min(a, b)
Definition: cfImp.cxx:40
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
MuonR4::HoughMaximum_impl::getCounts
double getCounts() const
getter
Definition: HoughMaximum.h:38
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
WriteCaloSwCorrections.cfg
cfg
Definition: WriteCaloSwCorrections.py:23
MuonR4::MuonPhiHoughTransformAlg::recoverSinglePhiMax
HoughSegmentSeed recoverSinglePhiMax(MuonHoughEventData &data, const MuonR4::HoughMaximum &maximum) const
extend an eta maximum with just a single attached phi measurement.
Definition: MuonPhiHoughTransformAlg.cxx:175
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonR4::MuonPhiHoughTransformAlg::prepareHoughPlane
StatusCode prepareHoughPlane(MuonHoughEventData &data) const
prepare the hough plane once per event.
Definition: MuonPhiHoughTransformAlg.cxx:42
MuonR4::HoughHelpers::Phi::houghWidthStrip
double houghWidthStrip(double tanPhi, const MuonR4::HoughHitType &dc)
Uncertainty parametrisation for strip measurements.
Definition: HoughHelperFunctions.cxx:34
MuonR4::MuonPhiHoughTransformAlg::m_minSigmasSearchIntercept
DoubleProperty m_minSigmasSearchIntercept
Definition: MuonPhiHoughTransformAlg.h:110
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MuonR4::MuonPhiHoughTransformAlg::m_nBinsTanPhi
IntegerProperty m_nBinsTanPhi
Definition: MuonPhiHoughTransformAlg.h:114
unit
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Definition: AmgMatrixBasePlugin.h:20
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
MuonR4::MuonPhiHoughTransformAlg::m_targetResoTanPhi
DoubleProperty m_targetResoTanPhi
Definition: MuonPhiHoughTransformAlg.h:102
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
MuonR4::HoughMaximum_impl::getHitsInMax
const std::vector< HitType > & getHitsInMax() const
getter
Definition: HoughMaximum.h:41
MuonR4::MuonPhiHoughTransformAlg::m_maxima
SG::ReadHandleKey< StationHoughMaxContainer > m_maxima
Definition: MuonPhiHoughTransformAlg.h:94
MuonR4::MuonPhiHoughTransformAlg::countIncompatibleEtaHits
int countIncompatibleEtaHits(const MuonR4::ActsPeakFinderForMuon::Maximum &phiMaximum, const MuonR4::HoughMaximum &etaMaximum) const
helper to count the number of eta measurements that would be discarded for a given phi extension cand...
Definition: MuonPhiHoughTransformAlg.cxx:59
MuonR4::MuonPhiHoughTransformAlg::m_maxEtaHolesOnMax
IntegerProperty m_maxEtaHolesOnMax
Definition: MuonPhiHoughTransformAlg.h:119
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
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37