Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MuonSegmentFinderAlg Class Reference

#include <MuonSegmentFinderAlg.h>

Inheritance diagram for MuonSegmentFinderAlg:
Collaboration diagram for MuonSegmentFinderAlg:

Public Member Functions

virtual ~MuonSegmentFinderAlg ()=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

using NSWSegmentCache = Muon::IMuonNSWSegmentFinderTool::SegmentMakingCache
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode createSegmentsWithMDTs (const EventContext &ctx, const Muon::MuonPatternCombination *patt, Trk::SegmentCollection *segs) const
 
void createNSWSegments (const EventContext &ctx, const Muon::MuonPatternCombination *patt, NSWSegmentCache &cache) const
 
StatusCode createCscSegments (const EventContext &ctx, std::unique_ptr< MuonSegmentCombinationCollection > &csc4dSegmentCombinations) const
 Retrieve the raw outputs from the Csc segment makers for the curved combination. More...
 
void appendSegmentsFromCombi (const std::unique_ptr< MuonSegmentCombinationCollection > &combi_coll, Trk::SegmentCollection *segments) const
 
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

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc
 
PublicToolHandle< Muon::MuonEDMPrinterToolm_printer
 
ToolHandle< Muon::IMuonPatternCalibrationm_patternCalibration
 
ToolHandle< Muon::IMuonSegmentMakerm_segmentMaker
 
ToolHandle< Muon::IMuonSegmentOverlapRemovalToolm_segmentOverlapRemovalTool
 
ToolHandle< Muon::IMuonClusterOnTrackCreatorm_clusterCreator
 
ToolHandle< Muon::IMuonNSWSegmentFinderToolm_clusterSegMakerNSW
 
ToolHandle< ICscSegmentFinderm_csc2dSegmentFinder
 
ToolHandle< ICscSegmentFinderm_csc4dSegmentFinder
 
ToolHandle< Muon::IMuonSegmentSelectionToolm_segmentSelector
 
SG::WriteHandleKey< Trk::SegmentCollectionm_segmentCollectionKey
 
SG::WriteHandleKey< Trk::SegmentCollectionm_segmentNSWCollectionKey
 
SG::ReadHandleKey< Muon::CscPrepDataContainerm_cscPrdsKey
 
SG::ReadHandleKey< MuonPatternCombinationCollectionm_patternCollKey
 
Gaudi::Property< bool > m_printSummary {this, "PrintSummary", false}
 
Gaudi::Property< bool > m_doFullFinder {this, "FullFinder", true}
 Run segment finding with eta / phi determination. More...
 
Gaudi::Property< bool > m_runMdtSegments {this, "doMdtSegments", true}
 Run the Mdt segment maker (Switched of the NCB systems) More...
 
Gaudi::Property< bool > m_doSTgcSegments {this, "doStgcSegments", true}
 Run the NSW segment maker. More...
 
Gaudi::Property< bool > m_doMMSegments {this, "doMMSegments", true}
 
Gaudi::Property< bool > m_removeUsedNswHits {this, "removeUsedNSW", true}
 If switched to true, hits that have been already successfully combined to a segment are removed from future searches. More...
 
Gaudi::Property< int > m_segQuality {this, "SegmentQuality", -1}
 Apply a preselection on the segments. More...
 
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

Definition at line 22 of file MuonSegmentFinderAlg.h.

Member Typedef Documentation

◆ NSWSegmentCache

Definition at line 111 of file MuonSegmentFinderAlg.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ~MuonSegmentFinderAlg()

virtual MuonSegmentFinderAlg::~MuonSegmentFinderAlg ( )
virtualdefault

Member Function Documentation

◆ appendSegmentsFromCombi()

void MuonSegmentFinderAlg::appendSegmentsFromCombi ( const std::unique_ptr< MuonSegmentCombinationCollection > &  combi_coll,
Trk::SegmentCollection segments 
) const
private

Push back the output containers

Definition at line 132 of file MuonSegmentFinderAlg.cxx.

133  {
134  if (!combi_coll) return;
136  for (const Muon::MuonSegmentCombination* combi: *combi_coll) {
137  if (!combi) {
138  ATH_MSG_WARNING(" empty MuonSegmentCombination!!! ");
139  continue;
140  }
141  const unsigned int nstations = combi->numberOfStations();
142  const bool useEta = combi->useStripsInSegment(1);
143  const bool usePhi = combi->useStripsInSegment(0);
144 
145  // loop over chambers in combi and extract segments
146  for (unsigned int i = 0; i < nstations; ++i) {
147  // loop over segments in station
148  Muon::MuonSegmentCombination::SegmentVec* segments = combi->stationSegments(i);
149  // check if not empty
150  if (!segments || segments->empty()) continue;
151  // loop over new segments, copy them into collection
152  for (std::unique_ptr<Muon::MuonSegment>& seg : *segments) {
153  if(m_segQuality >=0 && !m_segmentSelector->select(*seg, false, m_segQuality, useEta, usePhi)) continue;
154  ATH_MSG_VERBOSE("Append segment "<<std::endl<<m_printer->print(seg->containedMeasurements()));
155  segmentContainer->push_back(std::move(seg));
156  }
157 
158  }
159  }
160 }

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
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 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ createCscSegments()

StatusCode MuonSegmentFinderAlg::createCscSegments ( const EventContext &  ctx,
std::unique_ptr< MuonSegmentCombinationCollection > &  csc4dSegmentCombinations 
) const
private

Retrieve the raw outputs from the Csc segment makers for the curved combination.

Definition at line 115 of file MuonSegmentFinderAlg.cxx.

116  {
117 
118  const Muon::CscPrepDataContainer* cscPrds{nullptr};
119  ATH_CHECK(SG::get(cscPrds, m_cscPrdsKey, ctx));
120  if (!cscPrds) return StatusCode::SUCCESS;
121 
122  std::vector<const Muon::CscPrepDataCollection*> cscCols;
123  std::copy_if(cscPrds->begin(),cscPrds->end(), std::back_inserter(cscCols), [](const Muon::CscPrepDataCollection* coll) {return !coll->empty();});
124  ATH_MSG_DEBUG("Retrieved CscPrepDataContainer " << cscCols.size());
125  if (cscCols.empty()) return StatusCode::SUCCESS;
126  std::unique_ptr<MuonSegmentCombinationCollection> csc2dSegmentCombinations = m_csc2dSegmentFinder->find(cscCols, ctx);
127  if (!csc2dSegmentCombinations) return StatusCode::SUCCESS;
128 
129  csc4dSegmentCombinations = m_csc4dSegmentFinder->find(*csc2dSegmentCombinations, ctx);
130  return StatusCode::SUCCESS;
131 }

◆ createNSWSegments()

void MuonSegmentFinderAlg::createNSWSegments ( const EventContext &  ctx,
const Muon::MuonPatternCombination patt,
NSWSegmentCache cache 
) const
private

Constrain to NSW hits

Definition at line 161 of file MuonSegmentFinderAlg.cxx.

163  {
164  // turn the PRD into MuonCluster
165  if (!m_doSTgcSegments && !m_doMMSegments) return;
166  std::map<int, std::vector<std::unique_ptr<const Muon::MuonClusterOnTrack>> > clustersPerSector;
167 
168 
169  for (const Muon::MuonPatternChamberIntersect& it :patt->chamberData()) {
170  if (it.prepRawDataVec().empty()) continue;
171 
172  const Identifier id = it.prepRawDataVec().front()->identify();
173  const int sector = m_idHelperSvc->sector(id);
175  if (!m_idHelperSvc->isMM(id) && !m_idHelperSvc->issTgc(id)) continue;
176  for (const Trk::PrepRawData* pit : it.prepRawDataVec()) {
177  const Muon::MuonCluster* cl = dynamic_cast<const Muon::MuonCluster*>(pit);
178  if (!cl) continue;
179  else if (!m_doMMSegments && m_idHelperSvc->isMM(cl->identify())) continue;
180  else if (!m_doSTgcSegments && m_idHelperSvc->issTgc(cl->identify())) continue;
181  else if (m_removeUsedNswHits && cache.usedHits.count(cl->identify())) continue;
182  const Muon::MuonClusterOnTrack* newCluster = m_clusterCreator->createRIO_OnTrack(*cl, cl->globalPosition());
183  if (!newCluster) continue;
184  std::vector<std::unique_ptr<const Muon::MuonClusterOnTrack>>& clusters = clustersPerSector[sector];
185  clusters.emplace_back(newCluster);
186  }
187  }
188  for (auto&[sector, clusters] :clustersPerSector) {
189  ATH_MSG_VERBOSE("Run segment making on sector "<<sector);
190  cache.inputClust = std::move(clusters);
191  m_clusterSegMakerNSW->find(ctx, cache);
192  }
193 }

◆ createSegmentsWithMDTs()

StatusCode MuonSegmentFinderAlg::createSegmentsWithMDTs ( const EventContext &  ctx,
const Muon::MuonPatternCombination patt,
Trk::SegmentCollection segs 
) const
private

Definition at line 195 of file MuonSegmentFinderAlg.cxx.

197  {
198 
199  if (!m_runMdtSegments) {
200  ATH_MSG_DEBUG("Do not search segments in the Mdt part of the muon spectrometer");
201  return StatusCode::SUCCESS;
202  }
203 
204  bool hasPhiMeasurements = m_patternCalibration->checkForPhiMeasurements(*patcomb);
206  ATH_CHECK(m_patternCalibration->calibrate(ctx, *patcomb, hitsPerRegion));
208  using ROTRegion = Muon::IMuonPatternCalibration::ROTRegion;
209  for (const ROTRegion& region : hitsPerRegion) {
210  for (const MdtVec& mdts : region.mdts()) {
211  if (mdts.empty()) continue;
212  ATH_MSG_VERBOSE("Calling segment finding for sector " << m_idHelperSvc->chamberNameString(mdts.front()->identify()));
213  // fit the segments
214  if (m_doFullFinder) {
215  if (msgLvl(MSG::VERBOSE)){
216  std::vector<const Trk::MeasurementBase*> meas {};
217  meas.insert(meas.end(), mdts.begin(), mdts.end());
218  meas.insert(meas.end(), region.clusters().begin(), region.clusters().end());
219  ATH_MSG_VERBOSE("Call segment maker with road pos: "<<Amg::toString(region.regionPos)
220  << " road dir: "<<Amg::toString(region.regionDir)
221  <<" nMdts: "<<mdts.size()<<" nClusters "<<region.clusters().size()
222  <<std::endl<<m_printer->print(meas));
223 
224  }
225  m_segmentMaker->find(region.regionPos, region.regionDir, mdts, region.clusters(), hasPhiMeasurements, segs,
226  region.regionDir.mag());
227  } else {
228  std::vector<const Trk::RIO_OnTrack*> rios;
229  rios.insert(rios.begin(), mdts.begin(), mdts.end());
230  m_segmentMaker->find(rios, segs);
231  }
232  } // end loop on hits per region
233  }
234  return StatusCode::SUCCESS;
235 }

◆ 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 MuonSegmentFinderAlg::execute ( const EventContext &  ctx) const
overridevirtual

Move the segments into the output

Get rid of all the duplicates in the segment container

Definition at line 47 of file MuonSegmentFinderAlg.cxx.

47  {
48 
49  NSWSegmentCache nswCache{};
50  nswCache.buildQuads = !m_segmentNSWCollectionKey.empty();
51 
52  std::unique_ptr<Trk::SegmentCollection> segmentContainer = std::make_unique<Trk::SegmentCollection>();
53  std::unique_ptr<Trk::SegmentCollection> nswSegmentContainer = !m_segmentNSWCollectionKey.empty() ? std::make_unique<Trk::SegmentCollection>()
54  : nullptr;
55 
56 
57  const MuonPatternCombinationCollection* patternColl{nullptr};
58  ATH_CHECK(SG::get(patternColl, m_patternCollKey, ctx));
59  ATH_MSG_DEBUG("Processing the pattern collections with " << patternColl->size() << " Collections ");
60 
61  for (const Muon::MuonPatternCombination* patt : *patternColl) {
62  ATH_MSG_DEBUG("Working on pattern combination " << m_printer->print(*patt));
63  // check the technology & call the corresponding segment finder
64 
65  ATH_CHECK(createSegmentsWithMDTs(ctx, patt, segmentContainer.get()));
66 
67 
68  createNSWSegments(ctx, patt, nswCache);
69 
71  segmentContainer->insert(segmentContainer->end(), std::make_move_iterator(nswCache.constructedSegs.begin()),
72  std::make_move_iterator(nswCache.constructedSegs.end()));
73 
74  nswCache.constructedSegs.clear();
75 
76  if (!nswSegmentContainer) continue;
77  nswSegmentContainer->insert(nswSegmentContainer->end(), std::make_move_iterator(nswCache.quadSegs.begin()),
78  std::make_move_iterator(nswCache.quadSegs.end()));
79  nswCache.quadSegs.clear();
80 
81  } // end loop on pattern combinations
82 
83  m_segmentOverlapRemovalTool->removeDuplicates(*segmentContainer);
84 
85  std::unique_ptr<MuonSegmentCombinationCollection> csc4dSegmentCombinations{};
86  ATH_CHECK(createCscSegments(ctx, csc4dSegmentCombinations));
87  appendSegmentsFromCombi(csc4dSegmentCombinations, segmentContainer.get());
88 
90  ATH_MSG_DEBUG("segments before overlap removal: " << segmentContainer->size());
91  m_segmentOverlapRemovalTool->removeDuplicates(*segmentContainer);
92  ATH_MSG_DEBUG(" Segments after overlap removal: " << segmentContainer->size());
93 
94 
95  if (m_printSummary){
96  ATH_MSG_INFO("Number of segments found " << segmentContainer->size());
97  for (Trk::Segment* tseg : *segmentContainer) {
98  const Muon::MuonSegment* mseg{dynamic_cast<Muon::MuonSegment*>(tseg)};
99  ATH_MSG_INFO(m_printer->print(*mseg)<<std::endl<<m_printer->print(mseg->containedMeasurements())<<std::endl);
100  }
101  }
102 
103 
105  ATH_CHECK(handle.record(std::move(segmentContainer)));
106 
107  if (!m_segmentNSWCollectionKey.empty()) {
108  m_segmentOverlapRemovalTool->removeDuplicates(*nswSegmentContainer);
110  ATH_CHECK(handle_segNSW.record(std::move(nswSegmentContainer)));
111  }
112  return StatusCode::SUCCESS;
113 } // execute

◆ 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 & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ initialize()

StatusCode MuonSegmentFinderAlg::initialize ( )
overridevirtual

MDT segments

Initialize the alignment container in the NSW

Definition at line 23 of file MuonSegmentFinderAlg.cxx.

23  {
24  ATH_CHECK(m_idHelperSvc.retrieve());
25  ATH_CHECK(m_printer.retrieve());
27  ATH_CHECK(m_segmentSelector.retrieve(DisableTool{m_segQuality<0}));
29  ATH_CHECK(m_patternCalibration.retrieve(DisableTool{!m_runMdtSegments}));
30  ATH_CHECK(m_segmentMaker.retrieve(DisableTool{!m_runMdtSegments}));
31 
32  const bool doNSW = m_doSTgcSegments || m_doMMSegments;
33  ATH_CHECK(m_clusterCreator.retrieve(DisableTool{!doNSW}));
34  ATH_CHECK(m_clusterSegMakerNSW.retrieve(DisableTool{!doNSW}));
35  ATH_CHECK(m_csc2dSegmentFinder.retrieve(DisableTool{m_cscPrdsKey.empty()}));
36  ATH_CHECK(m_csc4dSegmentFinder.retrieve(DisableTool{m_cscPrdsKey.empty()}));
37 
38  ATH_CHECK(m_segmentCollectionKey.initialize());
40  ATH_CHECK(m_segmentNSWCollectionKey.initialize(doNSW && !m_segmentNSWCollectionKey.empty()));
41  ATH_CHECK(m_cscPrdsKey.initialize(!m_cscPrdsKey.empty())); // check for layouts without CSCs
42  ATH_CHECK(m_patternCollKey.initialize());
43 
44  return StatusCode::SUCCESS;
45 }

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

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

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

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

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

ToolHandle<Muon::IMuonClusterOnTrackCreator> MuonSegmentFinderAlg::m_clusterCreator
private
Initial value:
{
this,
"MuonClusterCreator",
"Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackCreator",
}

Definition at line 58 of file MuonSegmentFinderAlg.h.

◆ m_clusterSegMakerNSW

ToolHandle<Muon::IMuonNSWSegmentFinderTool> MuonSegmentFinderAlg::m_clusterSegMakerNSW
private
Initial value:
{
this,
"NSWSegmentMaker",
"",
}

Definition at line 63 of file MuonSegmentFinderAlg.h.

◆ m_csc2dSegmentFinder

ToolHandle<ICscSegmentFinder> MuonSegmentFinderAlg::m_csc2dSegmentFinder
private
Initial value:
{
this,
"Csc2dSegmentMaker",
"Csc2dSegmentMaker/Csc2dSegmentMaker",
}

Definition at line 68 of file MuonSegmentFinderAlg.h.

◆ m_csc4dSegmentFinder

ToolHandle<ICscSegmentFinder> MuonSegmentFinderAlg::m_csc4dSegmentFinder
private
Initial value:
{
this,
"Csc4dSegmentMaker",
"Csc4dSegmentMaker/Csc4dSegmentMaker",
}

Definition at line 73 of file MuonSegmentFinderAlg.h.

◆ m_cscPrdsKey

SG::ReadHandleKey<Muon::CscPrepDataContainer> MuonSegmentFinderAlg::m_cscPrdsKey
private
Initial value:
{
this,
"CSC_clusterkey",
"CSC_Clusters",
"CSC PRDs",
}

Definition at line 95 of file MuonSegmentFinderAlg.h.

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

Gaudi::Property<bool> MuonSegmentFinderAlg::m_doFullFinder {this, "FullFinder", true}
private

Run segment finding with eta / phi determination.

Definition at line 127 of file MuonSegmentFinderAlg.h.

◆ m_doMMSegments

Gaudi::Property<bool> MuonSegmentFinderAlg::m_doMMSegments {this, "doMMSegments", true}
private

Definition at line 132 of file MuonSegmentFinderAlg.h.

◆ m_doSTgcSegments

Gaudi::Property<bool> MuonSegmentFinderAlg::m_doSTgcSegments {this, "doStgcSegments", true}
private

Run the NSW segment maker.

Definition at line 131 of file MuonSegmentFinderAlg.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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_idHelperSvc

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

Definition at line 32 of file MuonSegmentFinderAlg.h.

◆ m_patternCalibration

ToolHandle<Muon::IMuonPatternCalibration> MuonSegmentFinderAlg::m_patternCalibration
private
Initial value:
{
this,
"MuonPatternCalibration",
"Muon::MuonPatternCalibration/MuonPatternCalibration",
}

Definition at line 43 of file MuonSegmentFinderAlg.h.

◆ m_patternCollKey

SG::ReadHandleKey<MuonPatternCombinationCollection> MuonSegmentFinderAlg::m_patternCollKey
private
Initial value:
{
this,
"MuonLayerHoughCombisKey",
"MuonLayerHoughCombis",
"Hough combinations",
}

Definition at line 101 of file MuonSegmentFinderAlg.h.

◆ m_printer

PublicToolHandle<Muon::MuonEDMPrinterTool> MuonSegmentFinderAlg::m_printer
private
Initial value:
{
this,
"EDMPrinter",
"Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
}

Definition at line 38 of file MuonSegmentFinderAlg.h.

◆ m_printSummary

Gaudi::Property<bool> MuonSegmentFinderAlg::m_printSummary {this, "PrintSummary", false}
private

Definition at line 124 of file MuonSegmentFinderAlg.h.

◆ m_removeUsedNswHits

Gaudi::Property<bool> MuonSegmentFinderAlg::m_removeUsedNswHits {this, "removeUsedNSW", true}
private

If switched to true, hits that have been already successfully combined to a segment are removed from future searches.

Definition at line 135 of file MuonSegmentFinderAlg.h.

◆ m_runMdtSegments

Gaudi::Property<bool> MuonSegmentFinderAlg::m_runMdtSegments {this, "doMdtSegments", true}
private

Run the Mdt segment maker (Switched of the NCB systems)

Definition at line 129 of file MuonSegmentFinderAlg.h.

◆ m_segmentCollectionKey

SG::WriteHandleKey<Trk::SegmentCollection> MuonSegmentFinderAlg::m_segmentCollectionKey
private
Initial value:
{
this,
"SegmentCollectionName",
"TrackMuonSegments",
"Muon Segments",
}

Definition at line 83 of file MuonSegmentFinderAlg.h.

◆ m_segmentMaker

ToolHandle<Muon::IMuonSegmentMaker> MuonSegmentFinderAlg::m_segmentMaker
private
Initial value:
{
this,
"SegmentMaker",
"Muon::DCMathSegmentMaker/DCMathSegmentMaker",
}

Definition at line 48 of file MuonSegmentFinderAlg.h.

◆ m_segmentNSWCollectionKey

SG::WriteHandleKey<Trk::SegmentCollection> MuonSegmentFinderAlg::m_segmentNSWCollectionKey
private
Initial value:
{
this,
"NSWSegmentCollectionName",
"TrackMuonNSWSegments",
"WriteHandleKey for NSW Segments",
}

Definition at line 89 of file MuonSegmentFinderAlg.h.

◆ m_segmentOverlapRemovalTool

ToolHandle<Muon::IMuonSegmentOverlapRemovalTool> MuonSegmentFinderAlg::m_segmentOverlapRemovalTool
private
Initial value:
{
this,
"MuonSegmentOverlapRemovalTool",
"Muon::MuonSegmentOverlapRemovalTool/MuonSegmentOverlapRemovalTool",
}

Definition at line 53 of file MuonSegmentFinderAlg.h.

◆ m_segmentSelector

ToolHandle<Muon::IMuonSegmentSelectionTool> MuonSegmentFinderAlg::m_segmentSelector
private
Initial value:
{this, "SegmentSelector",
"Muon::MuonSegmentSelectionTool/MuonSegmentSelectionTool"}

Definition at line 79 of file MuonSegmentFinderAlg.h.

◆ m_segQuality

Gaudi::Property<int> MuonSegmentFinderAlg::m_segQuality {this, "SegmentQuality", -1}
private

Apply a preselection on the segments.

Definition at line 137 of file MuonSegmentFinderAlg.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:
Muon::MuonPatternCombination::chamberData
const std::vector< MuonPatternChamberIntersect > & chamberData() const
access to the MuonPatternChamberIntersect associated with the MuonPatternCombination
Definition: MuonPatternCombination.h:60
MuonSegmentFinderAlg::m_segQuality
Gaudi::Property< int > m_segQuality
Apply a preselection on the segments.
Definition: MuonSegmentFinderAlg.h:137
MuonSegmentFinderAlg::appendSegmentsFromCombi
void appendSegmentsFromCombi(const std::unique_ptr< MuonSegmentCombinationCollection > &combi_coll, Trk::SegmentCollection *segments) const
Definition: MuonSegmentFinderAlg.cxx:132
Muon::IMuonPatternCalibration::MdtVec
std::vector< const MdtDriftCircleOnTrack * > MdtVec
Definition: IMuonPatternCalibration.h:27
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::MuonSegmentCombination
Definition: MuonSegmentCombination.h:30
MuonSegmentFinderAlg::m_doMMSegments
Gaudi::Property< bool > m_doMMSegments
Definition: MuonSegmentFinderAlg.h:132
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
MuonSegmentFinderAlg::m_clusterCreator
ToolHandle< Muon::IMuonClusterOnTrackCreator > m_clusterCreator
Definition: MuonSegmentFinderAlg.h:58
MuonSegmentFinderAlg::m_csc4dSegmentFinder
ToolHandle< ICscSegmentFinder > m_csc4dSegmentFinder
Definition: MuonSegmentFinderAlg.h:73
MuonSegmentFinderAlg::m_patternCalibration
ToolHandle< Muon::IMuonPatternCalibration > m_patternCalibration
Definition: MuonSegmentFinderAlg.h:43
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
MuonSegmentFinderAlg::m_segmentSelector
ToolHandle< Muon::IMuonSegmentSelectionTool > m_segmentSelector
Definition: MuonSegmentFinderAlg.h:79
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
skel.it
it
Definition: skel.GENtoEVGEN.py:407
MuonSegmentFinderAlg::m_segmentCollectionKey
SG::WriteHandleKey< Trk::SegmentCollection > m_segmentCollectionKey
Definition: MuonSegmentFinderAlg.h:83
MuonSegmentFinderAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonSegmentFinderAlg.h:32
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
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
MuonSegmentFinderAlg::m_cscPrdsKey
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_cscPrdsKey
Definition: MuonSegmentFinderAlg.h:95
MuonSegmentFinderAlg::m_doFullFinder
Gaudi::Property< bool > m_doFullFinder
Run segment finding with eta / phi determination.
Definition: MuonSegmentFinderAlg.h:127
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
MuonSegmentFinderAlg::m_removeUsedNswHits
Gaudi::Property< bool > m_removeUsedNswHits
If switched to true, hits that have been already successfully combined to a segment are removed from ...
Definition: MuonSegmentFinderAlg.h:135
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
MuonSegmentFinderAlg::m_printer
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
Definition: MuonSegmentFinderAlg.h:38
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
Muon::IMuonPatternCalibration::ROTRegion
Definition: IMuonPatternCalibration.h:30
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
MuonSegmentFinderAlg::m_doSTgcSegments
Gaudi::Property< bool > m_doSTgcSegments
Run the NSW segment maker.
Definition: MuonSegmentFinderAlg.h:131
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MuonSegmentFinderAlg::createSegmentsWithMDTs
StatusCode createSegmentsWithMDTs(const EventContext &ctx, const Muon::MuonPatternCombination *patt, Trk::SegmentCollection *segs) const
Definition: MuonSegmentFinderAlg.cxx:195
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition: ReadCondHandle.h:287
Muon::MuonPatternChamberIntersect
This class holds information needed for the Moore and MoMu pattern recognition for a muon chamber.
Definition: MuonPatternChamberIntersect.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
Trk::Segment
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:56
MuonSegmentFinderAlg::m_printSummary
Gaudi::Property< bool > m_printSummary
Definition: MuonSegmentFinderAlg.h:124
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
DataVector::insert
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Muon::MuonPrepDataCollection
Template to hold collections of MuonPrepRawData objects.
Definition: MuonPrepDataCollection.h:46
DataVector< Muon::MuonPatternCombination >
Muon::IMuonNSWSegmentFinderTool::SegmentMakingCache::buildQuads
bool buildQuads
Toggle whether quad segments should be built or not.
Definition: IMuonNSWSegmentFinderTool.h:35
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::IMuonPatternCalibration::ROTsPerRegion
std::vector< ROTRegion > ROTsPerRegion
Definition: IMuonPatternCalibration.h:55
Trk::PrepRawData
Definition: PrepRawData.h:62
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
MuonSegmentFinderAlg::m_segmentMaker
ToolHandle< Muon::IMuonSegmentMaker > m_segmentMaker
Definition: MuonSegmentFinderAlg.h:48
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
a
TList * a
Definition: liststreamerinfos.cxx:10
MuonSegmentFinderAlg::createNSWSegments
void createNSWSegments(const EventContext &ctx, const Muon::MuonPatternCombination *patt, NSWSegmentCache &cache) const
Definition: MuonSegmentFinderAlg.cxx:161
h
MuonSegmentFinderAlg::m_csc2dSegmentFinder
ToolHandle< ICscSegmentFinder > m_csc2dSegmentFinder
Definition: MuonSegmentFinderAlg.h:68
MuonSegmentFinderAlg::m_segmentOverlapRemovalTool
ToolHandle< Muon::IMuonSegmentOverlapRemovalTool > m_segmentOverlapRemovalTool
Definition: MuonSegmentFinderAlg.h:53
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Muon::MuonSegmentCombination::SegmentVec
std::vector< std::unique_ptr< MuonSegment > > SegmentVec
Definition: MuonSegmentCombination.h:32
MuonSegmentFinderAlg::m_segmentNSWCollectionKey
SG::WriteHandleKey< Trk::SegmentCollection > m_segmentNSWCollectionKey
Definition: MuonSegmentFinderAlg.h:89
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
Muon::MuonCluster
Class representing clusters in the muon system.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:37
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:13
Muon::MuonSegment
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:45
Muon::MuonPatternCombination
The MuonPatternCombination class provides the means to store the output of the initial global pattern...
Definition: MuonPatternCombination.h:29
MuonSegmentFinderAlg::m_patternCollKey
SG::ReadHandleKey< MuonPatternCombinationCollection > m_patternCollKey
Definition: MuonSegmentFinderAlg.h:101
MuonSegmentFinderAlg::createCscSegments
StatusCode createCscSegments(const EventContext &ctx, std::unique_ptr< MuonSegmentCombinationCollection > &csc4dSegmentCombinations) const
Retrieve the raw outputs from the Csc segment makers for the curved combination.
Definition: MuonSegmentFinderAlg.cxx:115
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MuonSegmentFinderAlg::m_clusterSegMakerNSW
ToolHandle< Muon::IMuonNSWSegmentFinderTool > m_clusterSegMakerNSW
Definition: MuonSegmentFinderAlg.h:63
MuonSegmentFinderAlg::NSWSegmentCache
Muon::IMuonNSWSegmentFinderTool::SegmentMakingCache NSWSegmentCache
Definition: MuonSegmentFinderAlg.h:111
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
MuonSegmentFinderAlg::m_runMdtSegments
Gaudi::Property< bool > m_runMdtSegments
Run the Mdt segment maker (Switched of the NCB systems)
Definition: MuonSegmentFinderAlg.h:129
Identifier
Definition: IdentifierFieldParser.cxx:14