|
ATLAS Offline Software
|
#include <MuonErrorOptimisationTool.h>
|
| MuonErrorOptimisationTool (const std::string &ty, const std::string &na, const IInterface *pa) |
| Constructor with parameters: More...
|
|
virtual | ~MuonErrorOptimisationTool ()=default |
| Destructor: More...
|
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual std::unique_ptr< Trk::Track > | optimiseErrors (Trk::Track &track, const EventContext &ctx) const override |
| optimise the error strategy used for the track 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 19 of file MuonErrorOptimisationTool.h.
◆ StoreGateSvc_t
◆ MuonErrorOptimisationTool()
Muon::MuonErrorOptimisationTool::MuonErrorOptimisationTool |
( |
const std::string & |
ty, |
|
|
const std::string & |
na, |
|
|
const IInterface * |
pa |
|
) |
| |
◆ ~MuonErrorOptimisationTool()
virtual Muon::MuonErrorOptimisationTool::~MuonErrorOptimisationTool |
( |
| ) |
|
|
virtualdefault |
◆ 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 Muon::MuonErrorOptimisationTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode Muon::MuonErrorOptimisationTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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()
static const InterfaceID& Muon::IMuonErrorOptimisationTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
access to tool interface
Definition at line 20 of file IMuonErrorOptimisationTool.h.
21 static const InterfaceID IID_IMuonErrorOptimisationTool(
"Muon::IMuonErrorOptimisationTool", 1, 0);
22 return IID_IMuonErrorOptimisationTool;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ optimiseErrors()
std::unique_ptr< Trk::Track > Muon::MuonErrorOptimisationTool::optimiseErrors |
( |
Trk::Track & |
track, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
optimise the error strategy used for the track
Implements Muon::IMuonErrorOptimisationTool.
Definition at line 66 of file MuonErrorOptimisationTool.cxx.
76 std::unique_ptr<Trk::Track> result1;
77 std::unique_ptr<Trk::Track> result2;
81 settings.
broad =
false;
82 std::unique_ptr<Trk::Track> refittedTrack =
m_refitTool->refit(
track, ctx, &settings);
87 <<
m_printer->print(*refittedTrack) << std::endl
88 <<
m_printer->printStations(*refittedTrack));
91 result1.swap(refittedTrack);
94 <<
m_printer->print(*refittedTrack) << std::endl
95 <<
m_printer->printStations(*refittedTrack));
106 if (!refittedTrack) {
108 settings.broad =
true;
114 <<
m_printer->print(*refittedTrack) << std::endl
115 <<
m_printer->printStations(*refittedTrack));
117 result2.swap(refittedTrack);
120 <<
m_printer->print(*refittedTrack) << std::endl
121 <<
m_printer->printStations(*refittedTrack));
136 if (!result1 && !result2)
return nullptr;
143 bool doSelection =
true;
146 if (!fq0 || (result1 && !fq1) || (result2 && !fq2)) {
159 if (muonSummary0) nhits0 = muonSummary0->
netaHits() + muonSummary0->
nphiHits();
163 muonSummary0 = tmpSum.muonTrackSummary();
164 if (muonSummary0) nhits0 = muonSummary0->
netaHits() + muonSummary0->
nphiHits();
170 if (muonSummary0) nhits0 = muonSummary0->
netaHits() + muonSummary0->
nphiHits();
184 if (muonSummary1) nhits1 = muonSummary1->
netaHits() + muonSummary1->
nphiHits();
189 if (muonSummary1) nhits1 = muonSummary1->
netaHits() + muonSummary1->
nphiHits();
203 if (muonSummary2) nhits2 = muonSummary2->
netaHits() + muonSummary2->
nphiHits();
208 if (muonSummary2) nhits2 = muonSummary2->
netaHits() + muonSummary2->
nphiHits();
211 if (nhits0 != -1 && nhits1 != -1 && nhits2 != -1) {
212 if (nhits0 == nhits1 && nhits0 == nhits2) doSelection =
true;
220 bool firstIsBest =
true;
221 if (!fq1 && fq2) firstIsBest =
false;
239 return refittedTrack;
◆ 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.
◆ renounce()
◆ renounceArray()
◆ 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_chi2NdofCutRefit
Gaudi::Property<double> Muon::MuonErrorOptimisationTool::m_chi2NdofCutRefit {this, "Chi2NDofCutRefit", 5.} |
|
private |
◆ m_detStore
◆ m_edmHelperSvc
Initial value:{this, "edmHelper", "Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
"Handle to the service providing the IMuonEDMHelperSvc interface"}
Definition at line 34 of file MuonErrorOptimisationTool.h.
◆ m_evtStore
◆ m_lowPtThreshold
Gaudi::Property<double> Muon::MuonErrorOptimisationTool::m_lowPtThreshold {this, "LowPtThreshold", 5000.} |
|
private |
◆ m_nbetterFit
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nbetterFit {0} |
|
mutableprivate |
◆ m_nbetterPreciseFit
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nbetterPreciseFit {0} |
|
mutableprivate |
◆ m_nrefit
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefit {0} |
|
mutableprivate |
◆ m_nrefitAll
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitAll {0} |
|
mutableprivate |
◆ m_nrefitAllLowPt
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitAllLowPt {0} |
|
mutableprivate |
◆ m_nrefitLowPt
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitLowPt {0} |
|
mutableprivate |
◆ m_nrefitOk
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitOk {0} |
|
mutableprivate |
◆ m_nrefitPrecise
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitPrecise {0} |
|
mutableprivate |
◆ m_nrefitPreciseLowPt
std::atomic_uint Muon::MuonErrorOptimisationTool::m_nrefitPreciseLowPt {0} |
|
mutableprivate |
◆ m_printer
Initial value:{this, "EDMPrinter", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
"helper to nicely print out tracks"}
Definition at line 37 of file MuonErrorOptimisationTool.h.
◆ m_refitSettings
◆ m_refitTool
◆ m_trackSummaryTool
Initial value:{this, "TrackSummaryTool",
"Muon::MuonTrackSummaryHelperTool/MuonTrackSummaryHelperTool"}
Definition at line 39 of file MuonErrorOptimisationTool.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
const FitQuality * fitQuality() const
return a pointer to the fit quality const-overload
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
unsigned int netaHits() const
number of eta hits on the track
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
Detailed track summary for the muon system Give access to hit counts per chamber.
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
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
const Perigee * perigeeParameters() const
return Perigee.
A summary of the information contained by a track.
unsigned int nphiHits() const
number of phi hits on the track
float chiSquared(const U &p)
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
double chiSquared() const
returns the of the overall track fit
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
const MuonTrackSummary * muonTrackSummary() const
returns a pointer to the MuonTrackSummary if available
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>