ATLAS Offline Software
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

 MuonSegmentFinderAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
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
 
template<class ContType >
StatusCode loadFromStoreGate (const EventContext &ctx, const SG::ReadHandleKey< ContType > &key, const ContType *&cont_ptr) const
 load the container from storegate given a ReadHandleKey. 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

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()

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

Definition at line 22 of file MuonSegmentFinderAlg.cxx.

22 : AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~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 133 of file MuonSegmentFinderAlg.cxx.

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

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

◆ 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 116 of file MuonSegmentFinderAlg.cxx.

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

◆ createNSWSegments()

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

Constrain to NSW hits

Definition at line 162 of file MuonSegmentFinderAlg.cxx.

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

◆ createSegmentsWithMDTs()

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

Definition at line 196 of file MuonSegmentFinderAlg.cxx.

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

◆ 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 48 of file MuonSegmentFinderAlg.cxx.

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

◆ initialize()

StatusCode MuonSegmentFinderAlg::initialize ( )
overridevirtual

MDT segments

Initialize the alignment container in the NSW

Definition at line 24 of file MuonSegmentFinderAlg.cxx.

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

◆ 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

◆ loadFromStoreGate()

template<class ContType >
StatusCode MuonSegmentFinderAlg::loadFromStoreGate ( const EventContext &  ctx,
const SG::ReadHandleKey< ContType > &  key,
const ContType *&  cont_ptr 
) const
private

load the container from storegate given a ReadHandleKey.

If the key is empty a nullptr will be returned

Definition at line 237 of file MuonSegmentFinderAlg.cxx.

239  {
240  if (key.empty()){
241  ATH_MSG_VERBOSE("Empty key given for "<<typeid(ContType).name()<<".");
242  cont_ptr = nullptr;
243  return StatusCode::SUCCESS;
244  }
245  SG::ReadHandle<ContType> readHandle{key, ctx};
246  if (!readHandle.isValid()) {
247  ATH_MSG_FATAL("Failed to retrieve "<<key.fullKey()<<" from store gate");
248  return StatusCode::FAILURE;
249  }
250  cont_ptr = readHandle.cptr();
251  return StatusCode::SUCCESS;
252 }

◆ 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 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_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 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_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:133
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
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
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
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
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:396
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
MuonSegmentFinderAlg::loadFromStoreGate
StatusCode loadFromStoreGate(const EventContext &ctx, const SG::ReadHandleKey< ContType > &key, const ContType *&cont_ptr) const
load the container from storegate given a ReadHandleKey.
Definition: MuonSegmentFinderAlg.cxx:237
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:27
Muon::IMuonPatternCalibration::ROTRegion
Definition: IMuonPatternCalibration.h:30
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
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
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:196
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
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
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 >
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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:221
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
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:76
a
TList * a
Definition: liststreamerinfos.cxx:10
MuonSegmentFinderAlg::createNSWSegments
void createNSWSegments(const EventContext &ctx, const Muon::MuonPatternCombination *patt, NSWSegmentCache &cache) const
Definition: MuonSegmentFinderAlg.cxx:162
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:623
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:14
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:116
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 >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
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