|
ATLAS Offline Software
|
#include <AlignTrackCreator.h>
|
| AlignTrackCreator (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~AlignTrackCreator () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
bool | processAlignTrack (AlignTrack *track) |
| creates AlignTrack containing all TSOS on track More...
|
|
void | setDoPixel (bool doPixel) |
| Sets flags to indicate whether hits from particular detector elements are to be stored on the AlignTrack. More...
|
|
void | setDoSCT (bool doSCT) |
|
void | setDoTRT (bool doTRT) |
|
void | setDoMDT (bool doMDT) |
|
virtual void | setLogStream (std::ostream *os) |
| sets the output stream for the logfile More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 35 of file AlignTrackCreator.h.
◆ StoreGateSvc_t
◆ AlignTrackCreator()
AlignTrackCreator::AlignTrackCreator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~AlignTrackCreator()
AlignTrackCreator::~AlignTrackCreator |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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
◆ finalize()
StatusCode AlignTrackCreator::finalize |
( |
| ) |
|
◆ initialize()
StatusCode AlignTrackCreator::initialize |
( |
| ) |
|
Definition at line 64 of file AlignTrackCreator.cxx.
69 return StatusCode::FAILURE;
75 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
88 return StatusCode::SUCCESS;
◆ inputHandles()
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.
◆ interfaceID()
const InterfaceID & IAlignTrackCreator::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ processAlignTrack()
bool AlignTrackCreator::processAlignTrack |
( |
AlignTrack * |
track | ) |
|
|
virtual |
creates AlignTrack containing all TSOS on track
Implements Trk::IAlignTrackCreator.
Definition at line 117 of file AlignTrackCreator.cxx.
121 bool goodtrack =
false;
126 bool overlapTrack(
false);
128 ATH_MSG_DEBUG(
"nDoF: "<<at->fitQuality()->numberDoF()<<
", tsos size: "<<at->trackStateOnSurfaces()->size());
130 for (
const TrackStateOnSurface* tsos : *at->trackStateOnSurfaces()) {
143 const MeasurementBase * mesb = tsos->measurementOnTrack();
148 if (!rio && crio) rio=&crio->rioOnTrack(0);
168 if (lastModule &&
module!=lastModule) {
191 atsos->setValid(
true);
198 atsos->setValid(
true);
216 ATH_MSG_DEBUG(
"goodtrack="<<goodtrack<<
", alignTSOSCollection size: "<<alignTSOSCollection->
size());
238 if (std::fabs(
chi2-at->fitQuality()->chiSquared())>.01) {
239 ATH_MSG_DEBUG(
"local chi2: "<<
chi2<<
", from fit: "<<at->fitQuality()->chiSquared());
243 at->setAlignTSOSCollection(alignTSOSCollection);
252 delete alignTSOSCollection;
◆ renounce()
◆ renounceArray()
◆ setDoMDT()
void Trk::IAlignTrackCreator::setDoMDT |
( |
bool |
doMDT | ) |
|
|
inlineinherited |
◆ setDoPixel()
void Trk::IAlignTrackCreator::setDoPixel |
( |
bool |
doPixel | ) |
|
|
inlineinherited |
Sets flags to indicate whether hits from particular detector elements are to be stored on the AlignTrack.
(Not used at the moment.)
Definition at line 42 of file IAlignTrackCreator.h.
◆ setDoSCT()
void Trk::IAlignTrackCreator::setDoSCT |
( |
bool |
doSCT | ) |
|
|
inlineinherited |
◆ setDoTRT()
void Trk::IAlignTrackCreator::setDoTRT |
( |
bool |
doTRT | ) |
|
|
inlineinherited |
◆ setLogStream()
virtual void Trk::IAlignTrackCreator::setLogStream |
( |
std::ostream * |
os | ) |
|
|
inlinevirtualinherited |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_alignModuleTool
◆ m_detStore
◆ m_doMDT
bool Trk::IAlignTrackCreator::m_doMDT |
|
protectedinherited |
◆ m_doPixel
bool Trk::IAlignTrackCreator::m_doPixel |
|
protectedinherited |
◆ m_doSCT
bool Trk::IAlignTrackCreator::m_doSCT |
|
protectedinherited |
◆ m_doTRT
bool Trk::IAlignTrackCreator::m_doTRT |
|
protectedinherited |
◆ m_eventListName
std::string Trk::AlignTrackCreator::m_eventListName |
|
private |
◆ m_evtStore
◆ m_goodEventList
std::vector< std::pair<int,int> > Trk::AlignTrackCreator::m_goodEventList |
|
private |
◆ m_idHelper
◆ m_includeScatterers
bool Trk::AlignTrackCreator::m_includeScatterers |
|
private |
◆ m_logStream
std::ostream* Trk::IAlignTrackCreator::m_logStream |
|
protectedinherited |
◆ m_measTypeIdHelper
◆ m_removeATSOSNotInAlignModule
bool Trk::AlignTrackCreator::m_removeATSOSNotInAlignModule |
|
private |
keep only tracks that pass through 2 or more AlignModules
Definition at line 62 of file AlignTrackCreator.h.
◆ m_requireOverlap
bool Trk::AlignTrackCreator::m_requireOverlap |
|
private |
◆ m_residualCalculator
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeEventList
bool Trk::AlignTrackCreator::m_writeEventList |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_eventListName
good events read in from ASCII file
bool m_requireOverlap
write selected events to event list ASCII file
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
ToolHandle< IAlignModuleTool > m_alignModuleTool
#define ATH_MSG_VERBOSE(x)
std::ostream * m_logStream
logfile output stream
const AtlasDetectorID * m_idHelper
uint32_t runNumber() const
The current event's run number.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
AlignModule is a grouping of TrkDetElementBase objects, grouped according to the type of alignment,...
bool m_includeScatterers
remove AlignTSOS not in AlignModules
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ Hole
A hole on the track - this is defined in the following way.
AlignTSOS is a TSOS with extra variables useful for alignment. It is created using an implementation ...
::StatusCode StatusCode
StatusCode definition for legacy code.
double chi2(TH1 *h0, TH1 *h1)
MeasurementType
enum describing the flavour of MeasurementBase
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< std::pair< int, int > > m_goodEventList
ToolHandle< IAlignResidualCalculator > m_residualCalculator
ParametersBase< TrackParametersDim, Charged > TrackParameters
value_type push_back(value_type pElem)
Add an element to the end of the collection.
MeasurementTypeID * m_measTypeIdHelper
Class describing the basic event information.
bool m_writeEventList
name of event list ASCII file
@ Scatterer
This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffe...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool m_removeATSOSNotInAlignModule
keep only tracks that pass through 2 or more AlignModules
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Trk::TrackState::MeasurementType defineType(const MeasurementBase *) const
createPerigee method - returned by object