#include <SumPtVertexWeightCalculator.h>
|
| static const InterfaceID & | interfaceID () |
| | AlgTool interface methods.
|
- Author
- Johanna Bronner, November 2009
Changes:
David Shope david.nosp@m..ric.nosp@m.hard..nosp@m.shop.nosp@m.e@cer.nosp@m.n.ch (2016-06-01)
EDM Migration to xAOD - remove method using VxCandidate
Definition at line 33 of file SumPtVertexWeightCalculator.h.
◆ StoreGateSvc_t
◆ SumPtVertexWeightCalculator()
| Trk::SumPtVertexWeightCalculator::SumPtVertexWeightCalculator |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ ~SumPtVertexWeightCalculator()
| virtual Trk::SumPtVertexWeightCalculator::~SumPtVertexWeightCalculator |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ estimateSignalCompatibility()
| double Trk::SumPtVertexWeightCalculator::estimateSignalCompatibility |
( |
const xAOD::Vertex & | vertex | ) |
const |
|
finaloverridevirtual |
WeightCalculator.
Implements Trk::IVertexWeightCalculator.
Definition at line 36 of file SumPtVertexWeightCalculator.cxx.
38{
39 double total_pt = 0;
41 <<
vertex.nTrackParticles() <<
" tracks at vertex.");
42 for (
const auto& elTrackParticle :
vertex.trackParticleLinks()) {
43
44 if (not elTrackParticle.isValid()) {
46 "No valid link to tracks in xAOD::Vertex object. Skipping track for "
47 "signal compatibility (may be serious).");
48 continue;
49 }
50
52 (*elTrackParticle.cptr())->perigeeParameters();
54 total_pt += std::pow(1. / perigee.parameters()[
Trk::qOverP] *
56 2);
57 } else {
58 total_pt += std::fabs(1. / perigee.parameters()[
Trk::qOverP]) *
60 }
61 }
62 ATH_MSG_DEBUG(
"Calculated vertex sumpt " << std::setprecision(3) << total_pt);
63 return total_pt;
64}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Gaudi::Property< bool > m_doSumPt2Selection
Flag to Set SumPt^2 not SumPt as selection criteria.
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
◆ evtStore()
◆ 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 Trk::SumPtVertexWeightCalculator::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode Trk::SumPtVertexWeightCalculator::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()
| const InterfaceID & Trk::IVertexWeightCalculator::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 47 of file IVertexWeightCalculator.h.
48 {
50 };
static const InterfaceID IID_IVertexWeightCalculator("IVertexWeightCalculator", 1, 0)
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ 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()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
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)
◆ 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()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_doSumPt2Selection
| Gaudi::Property<bool> Trk::SumPtVertexWeightCalculator::m_doSumPt2Selection { this, "DoSumPt2Selection", true } |
|
private |
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: