6#include "GaudiKernel/MsgStream.h"
33 const IInterface* parent)
37 declareInterface<IAlignTrackCreator>(
this);
46 return StatusCode::FAILURE;
52 return StatusCode::FAILURE;
59 return StatusCode::FAILURE;
65 return StatusCode::SUCCESS;
76 for (std::vector<std::pair<int,int> >
::iterator it=
80 output <<
run <<
" " << evt << std::endl;
90 return StatusCode::SUCCESS;
98 bool goodtrack =
false;
103 bool overlapTrack(
false);
135 module=m_alignModuleTool->findAlignModule(rio,detType);
140 if (lastModule && module!=lastModule) {
154 atsos =
new AlignTSOS(*tsos,module,crio,measType);
156 atsos =
new AlignTSOS(*tsos,module,rio,measType);
188 ATH_MSG_DEBUG(
"goodtrack="<<goodtrack<<
", alignTSOSCollection size: "<<alignTSOSCollection->
size());
195 StatusCode
sc=
evtStore()->retrieve(eventInfo);
224 delete alignTSOSCollection;
#define ATH_MSG_VERBOSE(x)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void setValid(bool isvalid)
set and retrieve flag to indicate whether hit valid for alignment
BooleanProperty m_includeScatterers
BooleanProperty m_removeATSOSNotInAlignModule
bool processAlignTrack(AlignTrack *track)
creates AlignTrack containing all TSOS on track
BooleanProperty m_requireOverlap
std::vector< std::pair< int, int > > m_goodEventList
AlignTrackCreator(const std::string &type, const std::string &name, const IInterface *parent)
StringProperty m_eventListName
PublicToolHandle< IAlignModuleTool > m_alignModuleTool
const AtlasDetectorID * m_idHelper
ToolHandle< IAlignResidualCalculator > m_residualCalculator
MeasurementTypeID * m_measTypeIdHelper
BooleanProperty m_writeEventList
void setChi2(double chi2)
void setAlignTSOSCollection(AlignTSOSCollection *atsosColl)
sets collection of AlignTSOS
void dump(MsgStream &msg)
dump align track information
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
virtual const RIO_OnTrack & rioOnTrack(unsigned int) const =0
returns the RIO_OnTrack (also known as ROT) objects depending on the integer.
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
double chiSquared() const
returns the of the overall track fit
This class is the pure abstract base class for all fittable tracking measurements.
classifies a MeasurementBase into one of the known inherited flavours or one of the detector types fo...
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
represents the track state (measurement, material, fit parameters and quality) at a surface.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
@ Scatterer
This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffe...
@ Hole
A hole on the track - this is defined in the following way.
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
const FitQuality * fitQuality() const
return a pointer to the fit quality const-overload
uint32_t runNumber() const
The current event's run number.
uint64_t eventNumber() const
The current event's event number.
double chi2(TH1 *h0, TH1 *h1)
MeasurementType
enum describing the flavour of MeasurementBase
Ensure that the ATLAS eigen extensions are properly loaded.
ParametersBase< TrackParametersDim, Charged > TrackParameters
EventInfo_v1 EventInfo
Definition of the latest event info version.