|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/MsgStream.h"
39 , m_residualCalculator(
"Trk::AlignResidualCalculator/ResidualCalculator")
41 , m_measTypeIdHelper{}
43 declareInterface<IAlignTrackCreator>(
this);
45 declareProperty(
"ResidualCalculator", m_residualCalculator);
46 declareProperty(
"AlignModuleTool", m_alignModuleTool);
48 declareProperty(
"EventList", m_eventListName =
"goodEvents.txt");
49 declareProperty(
"WriteEventList", m_writeEventList =
false );
50 declareProperty(
"RequireOverlap", m_requireOverlap =
false);
51 declareProperty(
"RemoveATSOSNotInAlignModule", m_removeATSOSNotInAlignModule=
true);
52 declareProperty(
"IncludeScatterers", m_includeScatterers =
true );
54 m_logStream =
nullptr;
69 return StatusCode::FAILURE;
75 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
88 return StatusCode::SUCCESS;
99 for (std::vector<std::pair<int,int> >::
iterator it=
102 int evt=(*it).second;
113 return StatusCode::SUCCESS;
121 bool goodtrack =
false;
126 bool overlapTrack(
false);
168 if (lastModule &&
module!=lastModule) {
216 ATH_MSG_DEBUG(
"goodtrack="<<goodtrack<<
", alignTSOSCollection size: "<<alignTSOSCollection->
size());
252 delete alignTSOSCollection;
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
void setAlignTSOSCollection(AlignTSOSCollection *atsosColl)
sets collection of AlignTSOS
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
const FitQuality * fitQuality() const
return a pointer to the fit quality const-overload
AlignTrackCreator(const std::string &type, const std::string &name, const IInterface *parent)
uint64_t eventNumber() const
The current event's event number.
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
std::string m_eventListName
good events read in from ASCII file
bool m_requireOverlap
write selected events to event list ASCII file
bool msgLvl(const MSG::Level lvl) const
ToolHandle< IAlignModuleTool > m_alignModuleTool
#define ATH_MSG_VERBOSE(x)
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.
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
bool processAlignTrack(AlignTrack *track)
creates AlignTrack containing all TSOS on track
bool m_includeScatterers
remove AlignTSOS not in AlignModules
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
virtual const RIO_OnTrack & rioOnTrack(unsigned int) const =0
returns the RIO_OnTrack (also known as ROT) objects depending on the integer.
@ Hole
A hole on the track - this is defined in the following way.
::StatusCode StatusCode
StatusCode definition for legacy code.
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
double chi2(TH1 *h0, TH1 *h1)
MeasurementType
enum describing the flavour of MeasurementBase
void dump(MsgStream &msg)
dump align track information
std::vector< std::pair< int, int > > m_goodEventList
Ensure that the ATLAS eigen extensions are properly loaded.
ToolHandle< IAlignResidualCalculator > m_residualCalculator
virtual ~AlignTrackCreator()
represents the track state (measurement, material, fit parameters and quality) at a surface.
classifies a MeasurementBase into one of the known inherited flavours or one of the detector types fo...
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
void setChi2(double chi2)
@ Scatterer
This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffe...
double chiSquared() const
returns the of the overall track fit
void setValid(bool isvalid)
set and retrieve flag to indicate whether hit valid for alignment
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
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.
@ 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