#include <SVForIPTool.h>
|
| | SVForIPTool (const std::string &name, const std::string &n, const IInterface *p) |
| virtual | ~SVForIPTool ()=default |
| void | getDirectionFromSecondaryVertexInfo (Amg::Vector3D &SvxDirection, bool &canUseSvxDirection, xAOD::BTagging *BTag, const std::string &secVxFinderName, const xAOD::Vertex &priVtx) const |
| | Method to get the B flight direction from the secondary vertex info.
|
| void | getTrkFromV0FromSecondaryVertexInfo (std::vector< const xAOD::TrackParticle * > &TrkFromV0, xAOD::BTagging *BTag, const std::string &secVxFinderName) const |
| | Method to get the tracks from V0 from the secondary vertex info.
|
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
|
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
|
| virtual StatusCode | sysInitialize () override |
| | Perform system initialization for an algorithm.
|
| virtual StatusCode | sysStart () override |
| | Handle START transition.
|
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles.
|
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles.
|
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
|
| static const InterfaceID & | interfaceID () |
| | AlgTool interface methods.
|
Definition at line 29 of file SVForIPTool.h.
◆ StoreGateSvc_t
◆ SVForIPTool()
| Analysis::SVForIPTool::SVForIPTool |
( |
const std::string & | name, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Definition at line 12 of file SVForIPTool.cxx.
13 :
15 {
16 declareInterface<SVForIPTool>(this);
17 }
◆ ~SVForIPTool()
| virtual Analysis::SVForIPTool::~SVForIPTool |
( |
| ) |
|
|
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()
◆ 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
◆ getDirectionFromSecondaryVertexInfo()
| void Analysis::SVForIPTool::getDirectionFromSecondaryVertexInfo |
( |
Amg::Vector3D & | SvxDirection, |
|
|
bool & | canUseSvxDirection, |
|
|
xAOD::BTagging * | BTag, |
|
|
const std::string & | secVxFinderName, |
|
|
const xAOD::Vertex & | priVtx ) const |
Method to get the B flight direction from the secondary vertex info.
Definition at line 19 of file SVForIPTool.cxx.
24 {
25 std::vector< ElementLink< xAOD::VertexContainer > > myVertices;
26 BTag->variable<std::vector<ElementLink<xAOD::VertexContainer> > >(secVxFinderName,
"vertices", myVertices);
27
28 if (myVertices.empty()) {
29 ATH_MSG_DEBUG(
" No secondary vertex found for getting the B flight direction (for the IP sign calculation)");
30 } else {
32 canUseSvxDirection=true;
33 SvxDirection=(*myVertices[0])->position()-priVtx.
position();
34 ATH_MSG_VERBOSE(
" Get direction from InDetVKalVertex: phi: " << SvxDirection.phi() <<
35 " theta: " << SvxDirection.theta() );
36 } else {
38 }
39 }
40 }
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
const Amg::Vector3D & position() const
Returns the 3-pos.
@ BTag
The object is a b-tagging object.
◆ getTrkFromV0FromSecondaryVertexInfo()
| void Analysis::SVForIPTool::getTrkFromV0FromSecondaryVertexInfo |
( |
std::vector< const xAOD::TrackParticle * > & | TrkFromV0, |
|
|
xAOD::BTagging * | BTag, |
|
|
const std::string & | secVxFinderName ) const |
Method to get the tracks from V0 from the secondary vertex info.
Definition at line 43 of file SVForIPTool.cxx.
46 {
47 std::vector<ElementLink<xAOD::TrackParticleContainer> > TrkFromV0_ELs;
48 BTag->variable<std::vector<ElementLink<xAOD::TrackParticleContainer> > >(secVxFinderName,
"badTracksIP", TrkFromV0_ELs);
49 for (const auto& link : TrkFromV0_ELs) {
50 if (link.isValid()) TrkFromV0.push_back(*link);
51 }
52 }
◆ 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 & Analysis::SVForIPTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
AlgTool interface methods.
Definition at line 34 of file SVForIPTool.h.
static const InterfaceID IID_SVForIPTool("Analysis::SVForIPTool", 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_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: