ATLAS Offline Software
|
#include <AddTRTMomConstr.h>
Public Member Functions | |
AddTRTMomConstr (const std::string &name, ISvcLocator *pSvcLocator) | |
The AddTRTMomConstr is an implementation to add the so-called TRT momentum constraint on a track. More... | |
~AddTRTMomConstr () | |
StatusCode | initialize () |
initialize method of this algorithm. More... | |
StatusCode | execute () |
execute method of this algorithm that is called for each event More... | |
StatusCode | finalize () |
finalize method of this algorithm. More... | |
MsgStream & | dump (MsgStream &outst) const |
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< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
const Trk::TrackStateOnSurface * | findouterscthit (const Trk::Track *track) |
Returns the outermost SCT TSOS on the given Track. More... | |
const Trk::TrackStateOnSurface * | findinnertrthit (const Trk::Track *track) |
Returns the innermost TRT TSOS on the given Track. More... | |
bool | accept (const Trk::Track &track) |
Verifies if the given track passes the track selection criteria specified via the jobOptions. More... | |
const Trk::MeasurementSet | addPM (Trk::MeasurementSet &ms, const Trk::PseudoMeasurementOnTrack *pm) |
adds a PseudoMeasurement to a MeasurementSet More... | |
const Trk::PseudoMeasurementOnTrack * | createPMfromSi (const Trk::Perigee *mp) |
creates a PseudoMeasurement with (z0, theta) from extended track perigee parameters More... | |
const Trk::PseudoMeasurementOnTrack * | createPMfromTRT (const Trk::Perigee *mpSi, const Trk::Perigee *mpTRT) |
creates a PseudoMeasurement with (z0, theta, q/p) from TRT track perigee parameters More... | |
Trk::Track * | addTRTMomentumConstraint (const Trk::Track *track) |
Strips of all TRT hits from the track and replaces them with a TRT momentum constraint from a the TRT segment belonging to the (extended) track (returns NULL in case of failure) 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 | |
const AtlasDetectorID * | m_idHelper |
Detector ID helper. More... | |
const TRT_ID * | m_trtid |
Identifier helper class for the TRT. More... | |
std::string | m_trackListInput |
Name of the TrackCollection (input) More... | |
std::string | m_trackListOutput |
Name of the TrackCollection (Output) More... | |
ToolHandle< Trk::ITrackSummaryTool > | m_trackSummaryTool |
The summary tool to make the track selection. More... | |
ToolHandle< Trk::ITrackFitter > | m_trackFitter |
The TrackFitter to refit the tracks (segment, momentum constraint) More... | |
bool | m_useThetaCorrection |
correct theta after TRT+PM(z0,theta) refit, small diff. More... | |
double | m_thetaCorr |
theta can be different after TRT+PM fit by < o(10e-4). More... | |
bool | m_applyTrkSel |
apply a selection on tracks or not More... | |
double | m_selPtMin |
minimal pT cut value for the TrackSelection More... | |
double | m_selEtaMin |
minimal eta cut value for the TrackSelection More... | |
double | m_selEtaMax |
maximal eta cut value for the TrackSelection More... | |
int | m_selNHitPIXMin |
minimal number of PIX hits cut value for the TrackSelection More... | |
int | m_selNHitSCTMin |
minimal number of SCT hits cut value for the TrackSelection More... | |
int | m_selNHitTRTMin |
minimal number of TRT hits cut value for the TrackSelection More... | |
int | m_selNHitTRTMinCrack |
minimal number of TRT hits cut value in trans. More... | |
double | m_selEtaCrackMin |
minimum |eta| to define the transition region More... | |
double | m_selEtaCrackMax |
maximum |eta| to define the transition region More... | |
double | m_selChiSqPerDOFMin |
maximal Chisquare per degree of freedom cut value for the TrackSelection More... | |
size_t | m_nTracksProcessed |
Counter for number of tracks processed. More... | |
size_t | m_nTracksPresel |
Counter for number of tracks passing the preselection. More... | |
size_t | m_nTracksAccepted |
Counter for number of tracks passing the preselection and with PM. More... | |
size_t | m_nRejectPIX |
Counter for number of tracks failing the min number of PIX hits req. More... | |
size_t | m_nRejectSCT |
Counter for number of tracks failing the min number of SCT hits req. More... | |
size_t | m_nRejectTRT |
Counter for number of tracks failing the min number of TRT hits req. More... | |
size_t | m_nRejectPM |
Counter for number of tracks failing the addition of a pseudo-measurement (PM) 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 |
Definition at line 36 of file AddTRTMomConstr.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
AddTRTMomConstr::AddTRTMomConstr | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
The AddTRTMomConstr is an implementation to add the so-called TRT momentum constraint on a track.
It was developed in the context of alignment, and its main idea is that if the TRT is free from "weak modes", its curvature measurement can be added as a PseudoMeasurement (PM) to a Si-only track. This extra information, taken into account while refitting the Si-only part of the track or read in by the alignment algorithms directly, can serve to eliminate the alignment weak modes from the Si tracker of ATLAS. More details can be found at: https://twiki.cern.ch/twiki/bin/view/Atlas/TRTMomConstraint
Definition at line 34 of file AddTRTMomConstr.cxx.
AddTRTMomConstr::~AddTRTMomConstr | ( | ) |
Definition at line 82 of file AddTRTMomConstr.cxx.
|
private |
Verifies if the given track passes the track selection criteria specified via the jobOptions.
Definition at line 149 of file AddTRTMomConstr.cxx.
|
private |
adds a PseudoMeasurement to a MeasurementSet
Definition at line 329 of file AddTRTMomConstr.cxx.
|
private |
Strips of all TRT hits from the track and replaces them with a TRT momentum constraint from a the TRT segment belonging to the (extended) track (returns NULL in case of failure)
Definition at line 338 of file AddTRTMomConstr.cxx.
|
private |
creates a PseudoMeasurement with (z0, theta) from extended track perigee parameters
Definition at line 269 of file AddTRTMomConstr.cxx.
|
private |
creates a PseudoMeasurement with (z0, theta, q/p) from TRT track perigee parameters
< from Si
< from Si
< from TRT
Definition at line 291 of file AddTRTMomConstr.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
MsgStream & AddTRTMomConstr::dump | ( | MsgStream & | outst | ) | const |
Definition at line 436 of file AddTRTMomConstr.cxx.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
StatusCode AddTRTMomConstr::execute | ( | ) |
execute method of this algorithm that is called for each event
Definition at line 117 of file AddTRTMomConstr.cxx.
|
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
|
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.
StatusCode AddTRTMomConstr::finalize | ( | ) |
finalize method of this algorithm.
Prints out a summary of all events
Definition at line 112 of file AddTRTMomConstr.cxx.
|
private |
Returns the innermost TRT TSOS on the given Track.
Definition at line 244 of file AddTRTMomConstr.cxx.
|
private |
Returns the outermost SCT TSOS on the given Track.
Definition at line 219 of file AddTRTMomConstr.cxx.
StatusCode AddTRTMomConstr::initialize | ( | ) |
|
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.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
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.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
apply a selection on tracks or not
Definition at line 82 of file AddTRTMomConstr.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
private |
Detector ID helper.
Definition at line 72 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks failing the min number of PIX hits req.
Definition at line 96 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks failing the addition of a pseudo-measurement (PM)
Definition at line 99 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks failing the min number of SCT hits req.
Definition at line 97 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks failing the min number of TRT hits req.
Definition at line 98 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks passing the preselection and with PM.
Definition at line 95 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks passing the preselection.
Definition at line 94 of file AddTRTMomConstr.h.
|
private |
Counter for number of tracks processed.
Definition at line 93 of file AddTRTMomConstr.h.
|
private |
maximal Chisquare per degree of freedom cut value for the TrackSelection
Definition at line 92 of file AddTRTMomConstr.h.
|
private |
maximum |eta| to define the transition region
Definition at line 91 of file AddTRTMomConstr.h.
|
private |
minimum |eta| to define the transition region
Definition at line 90 of file AddTRTMomConstr.h.
|
private |
maximal eta cut value for the TrackSelection
Definition at line 85 of file AddTRTMomConstr.h.
|
private |
minimal eta cut value for the TrackSelection
Definition at line 84 of file AddTRTMomConstr.h.
|
private |
minimal number of PIX hits cut value for the TrackSelection
Definition at line 86 of file AddTRTMomConstr.h.
|
private |
minimal number of SCT hits cut value for the TrackSelection
Definition at line 87 of file AddTRTMomConstr.h.
|
private |
minimal number of TRT hits cut value for the TrackSelection
Definition at line 88 of file AddTRTMomConstr.h.
|
private |
minimal number of TRT hits cut value in trans.
region for the TrackSelection
Definition at line 89 of file AddTRTMomConstr.h.
|
private |
minimal pT cut value for the TrackSelection
Definition at line 83 of file AddTRTMomConstr.h.
|
private |
theta can be different after TRT+PM fit by < o(10e-4).
Correct q/p optionally
Definition at line 81 of file AddTRTMomConstr.h.
|
private |
The TrackFitter to refit the tracks (segment, momentum constraint)
Definition at line 77 of file AddTRTMomConstr.h.
|
private |
Name of the TrackCollection (input)
Definition at line 74 of file AddTRTMomConstr.h.
|
private |
Name of the TrackCollection (Output)
Definition at line 75 of file AddTRTMomConstr.h.
|
private |
The summary tool to make the track selection.
Definition at line 76 of file AddTRTMomConstr.h.
Identifier helper class for the TRT.
Definition at line 73 of file AddTRTMomConstr.h.
|
private |
correct theta after TRT+PM(z0,theta) refit, small diff.
typically < o(3x10e-4)
Definition at line 80 of file AddTRTMomConstr.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.