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

#include <AlignAlg.h>

Inheritance diagram for Trk::AlignAlg:
Collaboration diagram for Trk::AlignAlg:

Public Member Functions

 AlignAlg (const std::string &name, ISvcLocator *pSvcLocator)
 constructor More...
 
virtual ~AlignAlg ()
 destructor More...
 
virtual StatusCode initialize ()
 initialize method More...
 
virtual StatusCode start ()
 set up geometry and prepare the tools More...
 
virtual StatusCode execute ()
 loops over tracks in event, and accumulates information necessary for alignmnet More...
 
virtual StatusCode stop ()
 processes information accumulated in execute method to determine alignment parameters More...
 
virtual StatusCode finalize ()
 finalize method More...
 
void showStatistics ()
 dumps statistics accumulated in each event More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

ToolHandle< ITrackCollectionProviderm_trackCollectionProvider
 
ToolHandle< IAlignTrackPreProcessorm_alignTrackPreProcessor
 Pointer to AlignTrackPreProcessor, used to select hits on tracks and/or tracks before passing to AlignTrackCreator. More...
 
ToolHandle< IAlignTrackCreatorm_alignTrackCreator
 Pointer to alignTrackCreator, used to convert Trk::Track to vector of AlignTrack. More...
 
ToolHandle< IAlignTrackDresserm_alignTrackDresser
 Pointer to alignTrackDresser, used to add residuals, derivatives, etc. More...
 
ToolHandle< IAlignToolm_alignTool
 Pointer to alignTool. More...
 
ToolHandle< IGeometryManagerToolm_geometryManagerTool
 Pointer to GeometryManagerTool, used to get lists of chambers for which alignment parameters will be determined. More...
 
ToolHandle< ITrkAlignDBToolm_trkAlignDBTool
 Pointer to TrkAlignDBTool, used for reading/writing alignment parameters from/to the database. More...
 
ToolHandle< IFillNtupleToolm_fillNtupleTool
 Pointer to FillNtupleTool, used to write track information to ntuple. More...
 
std::string m_filename
 name of ntuple file More...
 
std::string m_filepath
 path to ntuple file More...
 
bool m_solveOnly
 only do the solving (accumulate from binaries) More...
 
bool m_writeNtuple
 write track and event information to ntuple More...
 
int m_alignSolveLevel
 Set the Alignment Solve Level. More...
 
int m_nDoF
 Number of degrees of freedom = sum over chambers(DoF per chamber) More...
 
TFile * m_ntuple
 output ntuple More...
 
bool m_writeLogfile
 write a logfile for solving More...
 
std::string m_logfileName
 name of the logfile More...
 
std::ostream * m_logStream
 logfile output stream More...
 
int m_nevents
 number of processed events More...
 
int m_ntracks
 number of processed tracks More...
 
int m_ntracksSel
 number of selected tracks More...
 
int m_ntracksProc
 number of tracks successfully processed More...
 
int m_ntracksDress
 number of tracks successfully dressed More...
 
int m_ntracksAccum
 number of tracks successfully accumulated More...
 
std::string m_alignTracksName
 name of the AlignTrack collection in the StoreGate More...
 
DataObjIDColl m_extendedExtraObjects
 
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 38 of file AlignAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ AlignAlg()

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

constructor

Definition at line 23 of file AlignAlg.cxx.

24  : AthAlgorithm (name, pSvcLocator)
25  , m_trackCollectionProvider("Trk::TrackCollectionProvider",this)
26  , m_alignTrackPreProcessor("Trk::AlignTrackPreProcessor",this)
27  , m_alignTrackCreator("Trk::AlignTrackCreator",this)
28  , m_alignTrackDresser("Trk::AlignTrackDresser",this)
29  , m_alignTool("Trk::GlobalChi2AlignTool",this)
30  , m_geometryManagerTool("Muon::MuonGeometryManagerTool") // use as public tool
31  , m_trkAlignDBTool("Trk::TrkAlignDBTool", this)
32  , m_fillNtupleTool("",this)
33  , m_nDoF(-1)
34  , m_ntuple(nullptr)
35  , m_logStream(nullptr)
36  , m_nevents(0)
37  , m_ntracks(0)
38  , m_ntracksSel(0)
39  , m_ntracksProc(0)
40  , m_ntracksDress(0)
41  , m_ntracksAccum(0)
42 {
43 
44  // TrkGlobalChi2AlignTools
45  declareProperty("AlignDBTool", m_trkAlignDBTool,
46  "tool for handling DB stuff ");
47 
48  declareProperty("TrackCollectionProvider", m_trackCollectionProvider,
49  "tool for getting track collection from StoreGate");
50 
51  declareProperty("AlignTrackPreProcessor", m_alignTrackPreProcessor,
52  "tool for converting Trk::Track to AlignTrack after processing if necessary");
53 
54  declareProperty("AlignTrackCreator", m_alignTrackCreator,
55  "tool for creating AlignTSOSCollection to store on AlignTrack");
56 
57  declareProperty("AlignTrackDresser", m_alignTrackDresser,
58  "tool for dressing AlignTrack with residuals, derivatives, etc.");
59 
60  declareProperty("AlignTool", m_alignTool,
61  "alignment algorithm-specific tool");
62 
63  declareProperty("GeometryManagerTool", m_geometryManagerTool,
64  "tool for configuring geometry");
65 
66  declareProperty("FillNtupleTool", m_fillNtupleTool,
67  "tool for storing Trk::Track information into the ntuple");
68 
69  // processing options
70  declareProperty("WriteNtuple", m_writeNtuple = true );
71  declareProperty("FileName", m_filename = "Align.root" );
72  declareProperty("FilePath", m_filepath = "./" );
73 
74  declareProperty("AlignSolveLevel", m_alignSolveLevel = 3 );
75 
76  declareProperty("SolveOnly", m_solveOnly = false );
77 
78  declareProperty("WriteLogFile", m_writeLogfile = true );
79  declareProperty("LogFileName", m_logfileName = "alignlogfile.txt" );
80 
81  declareProperty("AlignTracksName", m_alignTracksName = "AlignTracks" );
82 
83 }

◆ ~AlignAlg()

AlignAlg::~AlignAlg ( )
virtual

destructor

Definition at line 86 of file AlignAlg.cxx.

87 {
88 
89  if (m_ntuple && m_solveOnly) {
90  ATH_MSG_DEBUG("closing file");
91  m_ntuple->Close();
92  ATH_MSG_DEBUG("file closed");
93  }
94 }

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< 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< 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< 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< 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< 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< 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< 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< 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< 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< 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< 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< 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< 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 AlignAlg::execute ( )
virtual

loops over tracks in event, and accumulates information necessary for alignmnet

Definition at line 250 of file AlignAlg.cxx.

251 {
252  ATH_MSG_DEBUG("AlignAlg::execute()");
253 
254  // increment number of events
255  m_nevents++;
256 
257  if(m_solveOnly) {
258  if (m_nevents<=1)
259  return StatusCode::SUCCESS;
260  else {
261  // return FAILURE to make sure that the job ends after 1st event
262  msg(MSG::INFO)<<"Only doing the solving. Aborting event processing after first event."<<endmsg;
263  msg(MSG::INFO)<<"Following ERROR message is not a problem..."<<endmsg;
264  return StatusCode::FAILURE;
265  }
266  }
267 
268 
270  // 1. apply event selection, select hits, refit tracks
272  // m_trackSelector->cleanTracks();
273 
274  // loop over tracks
275  TrackCollection * alignTracks;
276  const TrackCollection* originalTracks;
277 
278  StatusCode sc = m_trackCollectionProvider->trackCollection(originalTracks);
279  if (!originalTracks || sc.isFailure()) return sc;
280 
281  if(originalTracks->empty()) {
282  ATH_MSG_DEBUG("found no tracks");
283  return StatusCode::SUCCESS;
284  }
285 
286  // increment number of processed tracks
287  m_ntracks += originalTracks->size();
288  ATH_MSG_DEBUG("nTracks: "<<m_ntracks);
289 
290  // process track collection and create collection of AlignTracks
291  alignTracks = m_alignTrackPreProcessor->processTrackCollection(originalTracks);
292 
293  // method returns zero or empty collection
294  if (!alignTracks || alignTracks->empty()) {
295  ATH_MSG_DEBUG("processTrackCollection() returned empty Track collection.");
296  return StatusCode::SUCCESS;
297  }
298 
299  // increment number of selected tracks
300  m_ntracksSel += alignTracks->size();
301 
302  // loop over AlignTracks and pass to AlignTrackCreator and Dresser for more processing
303  int itrk = 0;
304  for (Track* trk : *alignTracks) { // first loop over AlignTracks
305 
306  ATH_MSG_DEBUG("1st loop: Processing track "<<itrk);
307 
308  // each track in the collection HAS to be an AlignTrack
309  AlignTrack * alignTrack = dynamic_cast<AlignTrack*>(trk);
310  if(!alignTrack) {
311  msg(MSG::FATAL)<<"Track is not an AlignTrack. PreProcessor returns TrackCollection but"
312  <<"it has to be filled with AlignTracks. Otherwise the code doesn't work."<<endmsg;
313  return StatusCode::FAILURE;
314  }
315 
316  // process AlignTrack
317  bool success = m_alignTrackCreator->processAlignTrack(alignTrack);
318  if (!success) {
319  ATH_MSG_DEBUG("processAlignTrack() returned FALSE, Skipping the track.");
320  continue;
321  }
322 
323  m_ntracksProc++;
324 
325  // dress AlignTrack with extra info
326  success = m_alignTrackDresser->dressAlignTrack(alignTrack);
327  ATH_MSG_DEBUG("back from dressing AlignTrack");
328 
329  if (!success) {
330  ATH_MSG_DEBUG("dressAlignTrack() returned FALSE, Skipping the track.");
331  continue;
332  }
333 
334  m_ntracksDress++;
335 
336  // accumulate vertex fit information:
337  m_alignTrackPreProcessor->accumulateVTX(alignTrack);
338 
339  ATH_MSG_DEBUG("back from accumulateVTX");
340 
341  } // end of the first loop over AlignTracks
342 
343 
344  // solve existing vertices:
345  m_alignTrackPreProcessor->solveVTX();
346 
347 
348  for (Track* trk : *alignTracks) { // second loop over AlignTracks
349 
350  ATH_MSG_DEBUG("2nd loop: Processing tracks");
351 
352  // each track in the collection HAS to be an AlignTrack
353  AlignTrack * alignTrack = dynamic_cast<AlignTrack*>(trk);
354  if(!alignTrack) {
355  msg(MSG::FATAL)<<"Track is not an AlignTrack. PreProcessor returns TrackCollection but"
356  <<"it has to be filled with AlignTracks. Otherwise the code doesn't work."<<endmsg;
357  return StatusCode::FAILURE;
358  }
359 
360 
361  // check if the dressing was successful:
362  const Amg::SymMatrixX * ptrWeights = alignTrack->weightMatrix(); //Symmetric Matrix
363  if ( !ptrWeights ) {
364  ATH_MSG_DEBUG("dressAlignTrack failed, Skipping the track.");
365  continue;
366  }
367 
368  // check if the eventual VTX solving was successful:
369  const AlignVertex * ptrVertex = alignTrack->getVtx();
370  if ( ptrVertex && (ptrVertex->type() < AlignVertex::Refitted) ) {
371  ATH_MSG_DEBUG("Vertex fit failed for this track. Skipping the track.");
372  continue;
373  }
374 
375 
376  // pass to AlignTool for processing of track information
377  bool success = m_alignTool->accumulate(alignTrack);
378  ATH_MSG_DEBUG("back from accumulate");
379 
380  if (!success) {
381  ATH_MSG_DEBUG("accumulate() returned FALSE, Skipping the track.");
382  continue;
383  }
384 
385  ATH_MSG_DEBUG("calling fillntuple::dumptrack");
386 
387  m_ntracksAccum++;
388 
389  if (m_writeNtuple)
390  m_fillNtupleTool->dumpTrack(itrk,alignTrack);
391  ATH_MSG_DEBUG("done with track "<<itrk);
392 
393  } // end of the second loop over AlignTracks
394 
395 
396 
397 
398  // record the collection in the StoreGate
399  // the ownership is transferred to StoreGate so we don't delete the collection here
400  if(evtStore()->record(alignTracks,m_alignTracksName,false).isFailure()) {
401  ATH_MSG_ERROR("Unable to record "<<m_alignTracksName<<" in the StoreGate");
402  delete alignTracks;
403  alignTracks = nullptr;
404  }
405  if (alignTracks) ATH_MSG_DEBUG("Recorded \'"<<m_alignTracksName<<"\' with size "<<alignTracks->size()<<" to StoreGate");
406 
407  ATH_MSG_DEBUG("returning SUCCESS");
408  return StatusCode::SUCCESS;
409 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< 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 & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode AlignAlg::finalize ( )
virtual

finalize method

Definition at line 484 of file AlignAlg.cxx.

485 {
486  ATH_MSG_INFO("AlignAlg::finalize()");
487 
488  // close the logfile
489  if(m_writeLogfile) {
490  if(std::ofstream * ofs = dynamic_cast<std::ofstream *>(m_logStream)) {
491  if(ofs->is_open()) {
492  *ofs<<std::flush;
493  ofs->close();
494  }
495  delete m_logStream;
496  }
497  }
498 
499  if (m_writeNtuple) {
500  ATH_MSG_INFO("closing "<<m_ntuple->GetName());
501  m_ntuple->Close();
502  }
503 
504  return StatusCode::SUCCESS;
505 }

◆ initialize()

StatusCode AlignAlg::initialize ( )
virtual

initialize method

Definition at line 97 of file AlignAlg.cxx.

98 {
99  ATH_MSG_INFO("AlignAlg::initialize()");
100 
101  // Get GeometryManagerTool
102  if ( m_geometryManagerTool.retrieve().isFailure() ) {
103  msg(MSG::FATAL)<<"Failed to retrieve tool " << m_geometryManagerTool
104  << endmsg;
105  return StatusCode::FAILURE;
106  }
107  else
108  ATH_MSG_INFO("Retrieved tool " << m_geometryManagerTool);
109 
110  // some tools are not needed if only solving is done
111  if ( !m_solveOnly ) {
112 
113  // get TrackCollectionProvider
114  if (m_trackCollectionProvider.retrieve().isSuccess())
115  ATH_MSG_INFO("Retrieved " << m_trackCollectionProvider);
116  else{
117  msg(MSG::FATAL) << "Could not get " << m_trackCollectionProvider << endmsg;
118  return StatusCode::FAILURE;
119  }
120 
121  // get AlignTrackPreProcessor
122  if (m_alignTrackPreProcessor.retrieve().isSuccess())
123  ATH_MSG_INFO("Retrieved " << m_alignTrackPreProcessor);
124  else{
125  msg(MSG::FATAL) << "Could not get " << m_alignTrackPreProcessor << endmsg;
126  return StatusCode::FAILURE;
127  }
128 
129  // Get AlignTrackCreator tool
130  if ( m_alignTrackCreator.retrieve().isFailure() ) {
131  msg(MSG::FATAL)<<"Failed to retrieve tool "<<m_alignTrackCreator<<endmsg;
132  return StatusCode::FAILURE;
133  }
134  else
135  ATH_MSG_INFO("Retrieved tool "<<m_alignTrackCreator);
136 
137  // Get AlignTrackDresser tool
138  if ( m_alignTrackDresser.retrieve().isFailure() ) {
139  msg(MSG::FATAL)<<"Failed to retrieve tool "<<m_alignTrackDresser<<endmsg;
140  return StatusCode::FAILURE;
141  }
142  else
143  ATH_MSG_INFO("Retrieved tool "<<m_alignTrackDresser);
144 
145  // Get TrkAlign::FillTrack
146  if (m_writeNtuple) {
147  if ( m_fillNtupleTool.retrieve().isFailure() ) {
148  msg(MSG::FATAL)<<"Failed to retrieve tool "<<m_fillNtupleTool<<endmsg;
149  return StatusCode::FAILURE;
150  }
151  else
152  ATH_MSG_INFO("Retrieved tool "<<m_fillNtupleTool);
153  }
154  }
155 
156  // Get AlignTool tool
157  if ( m_alignTool.retrieve().isFailure() ) {
158  msg(MSG::FATAL)<<"Failed to retrieve tool "<<m_alignTool<<endmsg;
159  return StatusCode::FAILURE;
160  }
161  else
162  ATH_MSG_INFO("Retrieved tool "<<m_alignTool);
163 
164  // Get TrkAlignDataBaseTool
165  if ( m_trkAlignDBTool.retrieve().isFailure() ) {
166  msg(MSG::FATAL)<<"Failed to retrieve tool "<<m_trkAlignDBTool<<endmsg;
167  return StatusCode::FAILURE;
168  }
169  else
170  ATH_MSG_INFO("Retrieved tool "<<m_trkAlignDBTool);
171 
172  // Alignment Level
173  // Number of layers in the superstructures
175  msg(MSG::FATAL)<<"AlignSolveLevel could be 1, 2 or 3"<<endmsg;
176  return StatusCode::FAILURE;
177  }
178 
179  // open logfile
180  if(m_writeLogfile) {
181  std::ostream * out = &std::cout;
182  std::ofstream * ofile = new std::ofstream(m_logfileName.c_str());
183  if(!ofile->is_open()) {
184  msg(MSG::ERROR)<<"Couldn't open logfile. Writing to standard output."<<endmsg;
185  delete ofile;
186  }
187  else
188  out = ofile;
189 
190  m_logStream = out;
191 
192  // set logStream in the tools
193  m_geometryManagerTool->setLogStream(m_logStream);
194  m_alignTool->setLogStream(m_logStream);
195  m_trkAlignDBTool->setLogStream(m_logStream);
196  if( !m_solveOnly ) {
197  m_trackCollectionProvider->setLogStream(m_logStream);
198  m_alignTrackPreProcessor->setLogStream(m_logStream);
199  m_alignTrackCreator->setLogStream(m_logStream);
200  m_alignTrackDresser->setLogStream(m_logStream);
201  if (m_writeNtuple)
202  m_fillNtupleTool->setLogStream(m_logStream);
203  }
204  }
205 
206  return StatusCode::SUCCESS;
207 }

◆ inputHandles()

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

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< 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< 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< 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< 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< 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  }

◆ showStatistics()

void Trk::AlignAlg::showStatistics ( )

dumps statistics accumulated in each event

◆ start()

StatusCode AlignAlg::start ( )
virtual

set up geometry and prepare the tools

Definition at line 210 of file AlignAlg.cxx.

211 {
212  ATH_MSG_DEBUG("AlignAlg::start()");
213 
214  if (m_writeNtuple) {
215  m_ntuple = new TFile((m_filepath+m_filename).c_str(),"RECREATE");
216  // set the ntuple points of the tools
217  m_geometryManagerTool->setNtuple(m_ntuple);
220  m_alignTool->setNtuple(m_ntuple);
221  m_trkAlignDBTool->setNtuple(m_ntuple);
222  m_fillNtupleTool->setNtuple(m_ntuple);
223  }
224 
225  ATH_MSG_DEBUG("reading geometry");
226  int NDoF = m_geometryManagerTool->ReadGeometry(m_alignSolveLevel);
227  ATH_MSG_DEBUG("read geometry, "<<NDoF<<" alignment parameters");
228 
229  m_geometryManagerTool->PrintModPositions();
230 
231  // fix pathname (used to be m_pathbin+m+prefixName)
232  // m_geometryManagerTool->StoreModPositions(pathname);
233 
234  StatusCode sc = m_alignTool->firstEventInitialize();
235 
236  if (sc != StatusCode::SUCCESS) {
237  msg(MSG::FATAL)<<"problem with alignTool->firstEventInitialize()"<<endmsg;
238  return StatusCode::FAILURE;
239  }
240 
241  if(m_solveOnly) {
242  ATH_MSG_DEBUG("getting data from files");
243  m_alignTool->accumulateFromFiles();
244  }
245 
246  return StatusCode::SUCCESS;
247 }

◆ stop()

StatusCode AlignAlg::stop ( )
virtual

processes information accumulated in execute method to determine alignment parameters

Definition at line 412 of file AlignAlg.cxx.

413 {
414  ATH_MSG_INFO("AlignAlg::stop()");
415 
416  if(m_logStream && !m_solveOnly) {
417  *m_logStream<<"*************************************************************"<<std::endl;
418  *m_logStream<<"****** Alignment Job summary ******"<<std::endl;
419  *m_logStream<<"*************************************************************"<<std::endl;
420  *m_logStream<<"*"<<std::endl;
421  *m_logStream<<"* number of processed events: "<<m_nevents<<std::endl;
422  *m_logStream<<"* number of processed tracks: "<<m_ntracks<<std::endl;
423  *m_logStream<<"* number of selected tracks: "<<m_ntracksSel<<std::endl;
424  *m_logStream<<"* number of tracks processed: "<<m_ntracksProc<<std::endl;
425  *m_logStream<<"* number of tracks dressed: "<<m_ntracksDress<<std::endl;
426  *m_logStream<<"* number of tracks accumulated: "<<m_ntracksAccum<<std::endl;
427 
428  *m_logStream<<"*"<<std::endl;
429 
430  m_alignTrackPreProcessor->printSummary();
431  m_trackCollectionProvider->printSummary();
432  }
433 
434  // fill ntuple for all tools
435  if (m_writeNtuple) {
436  ATH_MSG_INFO("calling alignTool->fillNtuple()");
437  if(m_alignTool->fillNtuple().isFailure()) {
438  msg(MSG::ERROR)<<"problem with alignTool fillNtuple()!"<<endmsg;
439  return StatusCode::FAILURE;
440  }
441  ATH_MSG_INFO("calling fillNtupleTool->fillNtuple()");
442  if(m_fillNtupleTool->fillNtuple().isFailure()) {
443  msg(MSG::ERROR)<<"problem with fillNtupleTool fillNtuple()!"<<endmsg;
444  return StatusCode::FAILURE;
445  }
446 
447  ATH_MSG_INFO("calling alignTrackPreProcessor->fillNtuple()");
448  if(m_alignTrackPreProcessor->fillNtuple().isFailure()) {
449  msg(MSG::ERROR)<<"problem with alignTrackPreProcessor fillNtuple()!"<<endmsg;
450  return StatusCode::FAILURE;
451  }
452 
453  ATH_MSG_INFO("calling trackCollectionProvider->fillNtuple()");
454  if(m_trackCollectionProvider->fillNtuple().isFailure()) {
455  msg(MSG::ERROR)<<"problem with trackCollectionProvider fillNtuple()!"<<endmsg;
456  return StatusCode::FAILURE;
457  }
458  }
459 
460  if(!m_solveOnly && m_ntracksSel==0) {
461  msg(MSG::WARNING)<<"No tracks passed track selection. No solving."<<endmsg;
462  return StatusCode::SUCCESS;
463  }
464 
465  ATH_MSG_INFO("calling trkAlignDBTool->preSolve()");
466  if (m_trkAlignDBTool->preSolve().isFailure()) {
467  msg(MSG::FATAL)<<"failure in ITrkAlignDBTool->preSolve()"<<endmsg;
468  return StatusCode::FAILURE;
469  }
470 
471  ATH_MSG_INFO("calling alignTool->solve()");
472  if (m_alignTool->solve().isFailure()) {
473  msg(MSG::FATAL)<<"failure in IAlignTool->solve()"<<endmsg;
474  return StatusCode::FAILURE;
475  }
476 
477  ATH_MSG_INFO("calling trkAlignDBTool->writeAlignPar()");
478  m_trkAlignDBTool->writeAlignPar();
479 
480  return StatusCode::SUCCESS;
481 }

◆ sysInitialize()

StatusCode AthAlgorithm::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< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< 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< 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_alignSolveLevel

int Trk::AlignAlg::m_alignSolveLevel
private

Set the Alignment Solve Level.

Definition at line 112 of file AlignAlg.h.

◆ m_alignTool

ToolHandle<IAlignTool> Trk::AlignAlg::m_alignTool
private

Pointer to alignTool.

Definition at line 93 of file AlignAlg.h.

◆ m_alignTrackCreator

ToolHandle<IAlignTrackCreator> Trk::AlignAlg::m_alignTrackCreator
private

Pointer to alignTrackCreator, used to convert Trk::Track to vector of AlignTrack.

Definition at line 87 of file AlignAlg.h.

◆ m_alignTrackDresser

ToolHandle<IAlignTrackDresser> Trk::AlignAlg::m_alignTrackDresser
private

Pointer to alignTrackDresser, used to add residuals, derivatives, etc.

to vector of AlignTrack

Definition at line 90 of file AlignAlg.h.

◆ m_alignTrackPreProcessor

ToolHandle<IAlignTrackPreProcessor> Trk::AlignAlg::m_alignTrackPreProcessor
private

Pointer to AlignTrackPreProcessor, used to select hits on tracks and/or tracks before passing to AlignTrackCreator.

Definition at line 84 of file AlignAlg.h.

◆ m_alignTracksName

std::string Trk::AlignAlg::m_alignTracksName
private

name of the AlignTrack collection in the StoreGate

Definition at line 128 of file AlignAlg.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_filename

std::string Trk::AlignAlg::m_filename
private

name of ntuple file

Definition at line 106 of file AlignAlg.h.

◆ m_filepath

std::string Trk::AlignAlg::m_filepath
private

path to ntuple file

Definition at line 107 of file AlignAlg.h.

◆ m_fillNtupleTool

ToolHandle<IFillNtupleTool> Trk::AlignAlg::m_fillNtupleTool
private

Pointer to FillNtupleTool, used to write track information to ntuple.

Definition at line 102 of file AlignAlg.h.

◆ m_geometryManagerTool

ToolHandle<IGeometryManagerTool> Trk::AlignAlg::m_geometryManagerTool
private

Pointer to GeometryManagerTool, used to get lists of chambers for which alignment parameters will be determined.

Definition at line 96 of file AlignAlg.h.

◆ m_logfileName

std::string Trk::AlignAlg::m_logfileName
private

name of the logfile

Definition at line 118 of file AlignAlg.h.

◆ m_logStream

std::ostream* Trk::AlignAlg::m_logStream
private

logfile output stream

Definition at line 119 of file AlignAlg.h.

◆ m_nDoF

int Trk::AlignAlg::m_nDoF
private

Number of degrees of freedom = sum over chambers(DoF per chamber)

Definition at line 114 of file AlignAlg.h.

◆ m_nevents

int Trk::AlignAlg::m_nevents
private

number of processed events

Definition at line 121 of file AlignAlg.h.

◆ m_ntracks

int Trk::AlignAlg::m_ntracks
private

number of processed tracks

Definition at line 122 of file AlignAlg.h.

◆ m_ntracksAccum

int Trk::AlignAlg::m_ntracksAccum
private

number of tracks successfully accumulated

Definition at line 126 of file AlignAlg.h.

◆ m_ntracksDress

int Trk::AlignAlg::m_ntracksDress
private

number of tracks successfully dressed

Definition at line 125 of file AlignAlg.h.

◆ m_ntracksProc

int Trk::AlignAlg::m_ntracksProc
private

number of tracks successfully processed

Definition at line 124 of file AlignAlg.h.

◆ m_ntracksSel

int Trk::AlignAlg::m_ntracksSel
private

number of selected tracks

Definition at line 123 of file AlignAlg.h.

◆ m_ntuple

TFile* Trk::AlignAlg::m_ntuple
private

output ntuple

Definition at line 116 of file AlignAlg.h.

◆ m_solveOnly

bool Trk::AlignAlg::m_solveOnly
private

only do the solving (accumulate from binaries)

Definition at line 109 of file AlignAlg.h.

◆ m_trackCollectionProvider

ToolHandle<ITrackCollectionProvider> Trk::AlignAlg::m_trackCollectionProvider
private

Definition at line 81 of file AlignAlg.h.

◆ m_trkAlignDBTool

ToolHandle<ITrkAlignDBTool> Trk::AlignAlg::m_trkAlignDBTool
private

Pointer to TrkAlignDBTool, used for reading/writing alignment parameters from/to the database.

Definition at line 99 of file AlignAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeLogfile

bool Trk::AlignAlg::m_writeLogfile
private

write a logfile for solving

Definition at line 117 of file AlignAlg.h.

◆ m_writeNtuple

bool Trk::AlignAlg::m_writeNtuple
private

write track and event information to ntuple

Definition at line 110 of file AlignAlg.h.


The documentation for this class was generated from the following files:
Trk::AlignAlg::m_ntracksSel
int m_ntracksSel
number of selected tracks
Definition: AlignAlg.h:123
Trk::AlignAlg::m_ntracksProc
int m_ntracksProc
number of tracks successfully processed
Definition: AlignAlg.h:124
Trk::AlignAlg::m_fillNtupleTool
ToolHandle< IFillNtupleTool > m_fillNtupleTool
Pointer to FillNtupleTool, used to write track information to ntuple.
Definition: AlignAlg.h:102
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
FullCPAlgorithmsTest_eljob.flush
flush
Definition: FullCPAlgorithmsTest_eljob.py:186
Trk::AlignAlg::m_writeNtuple
bool m_writeNtuple
write track and event information to ntuple
Definition: AlignAlg.h:110
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trk::AlignAlg::m_ntracksDress
int m_ntracksDress
number of tracks successfully dressed
Definition: AlignAlg.h:125
validation.ofile
ofile
Definition: validation.py:96
Trk::AlignAlg::m_nDoF
int m_nDoF
Number of degrees of freedom = sum over chambers(DoF per chamber)
Definition: AlignAlg.h:114
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Trk::AlignAlg::m_alignTrackCreator
ToolHandle< IAlignTrackCreator > m_alignTrackCreator
Pointer to alignTrackCreator, used to convert Trk::Track to vector of AlignTrack.
Definition: AlignAlg.h:87
Trk::AlignAlg::m_ntracksAccum
int m_ntracksAccum
number of tracks successfully accumulated
Definition: AlignAlg.h:126
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::AlignAlg::m_ntuple
TFile * m_ntuple
output ntuple
Definition: AlignAlg.h:116
Trk::AlignAlg::m_solveOnly
bool m_solveOnly
only do the solving (accumulate from binaries)
Definition: AlignAlg.h:109
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Trk::AlignAlg::m_alignTracksName
std::string m_alignTracksName
name of the AlignTrack collection in the StoreGate
Definition: AlignAlg.h:128
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
Trk::AlignAlg::m_trackCollectionProvider
ToolHandle< ITrackCollectionProvider > m_trackCollectionProvider
Definition: AlignAlg.h:81
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Trk::AlignAlg::m_trkAlignDBTool
ToolHandle< ITrkAlignDBTool > m_trkAlignDBTool
Pointer to TrkAlignDBTool, used for reading/writing alignment parameters from/to the database.
Definition: AlignAlg.h:99
Trk::AlignAlg::m_logStream
std::ostream * m_logStream
logfile output stream
Definition: AlignAlg.h:119
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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::AlignAlg::m_alignSolveLevel
int m_alignSolveLevel
Set the Alignment Solve Level.
Definition: AlignAlg.h:112
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Trk::AlignAlg::m_alignTrackDresser
ToolHandle< IAlignTrackDresser > m_alignTrackDresser
Pointer to alignTrackDresser, used to add residuals, derivatives, etc.
Definition: AlignAlg.h:90
DataVector< Trk::Track >
Trk::AlignAlg::m_ntracks
int m_ntracks
number of processed tracks
Definition: AlignAlg.h:122
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::AlignAlg::m_alignTool
ToolHandle< IAlignTool > m_alignTool
Pointer to alignTool.
Definition: AlignAlg.h:93
Trk::AlignAlg::m_geometryManagerTool
ToolHandle< IGeometryManagerTool > m_geometryManagerTool
Pointer to GeometryManagerTool, used to get lists of chambers for which alignment parameters will be ...
Definition: AlignAlg.h:96
Trk::AlignAlg::m_alignTrackPreProcessor
ToolHandle< IAlignTrackPreProcessor > m_alignTrackPreProcessor
Pointer to AlignTrackPreProcessor, used to select hits on tracks and/or tracks before passing to Alig...
Definition: AlignAlg.h:84
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
Trk::AlignAlg::m_filename
std::string m_filename
name of ntuple file
Definition: AlignAlg.h:106
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
Trk::AlignAlg::m_writeLogfile
bool m_writeLogfile
write a logfile for solving
Definition: AlignAlg.h:117
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
Trk::AlignAlg::m_filepath
std::string m_filepath
path to ntuple file
Definition: AlignAlg.h:107
Trk::AlignAlg::m_logfileName
std::string m_logfileName
name of the logfile
Definition: AlignAlg.h:118
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
Trk::AlignVertex::Refitted
@ Refitted
normally refitted, without adding any pseudo-measurement
Definition: AlignVertex.h:46
Trk::AlignAlg::m_nevents
int m_nevents
number of processed events
Definition: AlignAlg.h:121
AlignVertex
AlignVertex is a simple structure to store objects belonging to a vertex. Contains a pointer to the o...
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
DataVector::empty
bool empty() const noexcept
Returns true if the collection is empty.
fitman.k
k
Definition: fitman.py:528
AlignTrack
AlignTrack is a generalization of a Trk::Track, used as the basic object to contain track information...
ServiceHandle< ICondSvc >
Amg::SymMatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > SymMatrixX
Definition: EventPrimitives.h:28