![]() |
ATLAS Offline Software
|
#include <BPhysPVCascadeTools.h>
Public Member Functions | |
| BPhysPVCascadeTools (const CascadeTools *cascadeTools) | |
| BPhysPVCascadeTools (const CascadeTools *cascadeTools, const xAOD::EventInfo *) | |
| void | ProcessVertex (const std::vector< TLorentzVector > &mom, Amg::MatrixX cov, xAOD::BPhysHypoHelper &vtx, xAOD::BPhysHelper::pv_type pvtype, double mass) const |
| void | FillBPhysHelper (const std::vector< TLorentzVector > &mom, Amg::MatrixX cov, xAOD::BPhysHelper &vtx, const xAOD::Vertex *refPV, const xAOD::VertexContainer *refPvContainer, xAOD::BPhysHelper::pv_type pvtype, int) const |
| Fills the BPhysHelper object with the standard parameters. | |
| size_t | FindLowZIndex (const std::vector< TLorentzVector > &mom, const xAOD::BPhysHelper &Obj, const std::vector< const xAOD::Vertex * > &PVlist, const size_t PV_minNTracks=0) const |
| Returns the index integer of the vertex with the lowest Z in relation to the given vertex. | |
| size_t | FindLowA0Index (const std::vector< TLorentzVector > &mom, const xAOD::BPhysHelper &Obj, const std::vector< const xAOD::Vertex * > &PVlist, const size_t PV_minNTracks=0) const |
| Returns the index integer of the vertex with the lowest A0 in relation to the given vertex. | |
| void | SetMinNTracksInPV (size_t PV_minNTracks) |
| Set the minimum number of tracks required for primary vertices to be considered for primary vertex association to a secondary vertex. | |
| Amg::Vector3D | GetBeamSpot () const |
| Get the current beamspot position either from cache or from BeamCondSvc. | |
| size_t | FindLowZ0BAIndex (const std::vector< TLorentzVector > &mom, const xAOD::BPhysHelper &obj, const std::vector< const xAOD::Vertex * > &PVlist, const size_t PV_minNTracks=0) const |
| Find the index for the PV with the lowest distance in z of the SV's DOCA point w.r.t. | |
| double | DistInZtoDOCA (const std::vector< TLorentzVector > &mom, const xAOD::BPhysHelper &obj, const xAOD::Vertex *vertex) const |
| Calculate the distance along z axis between the PV and SV's DOCA point w.r.t. | |
| Amg::Vector3D | DocaExtrapToBeamSpot (const std::vector< TLorentzVector > &mom, const xAOD::BPhysHelper &obj) const |
| Point of DOCA w.r.t. | |
| StatusCode | FillCandwithRefittedVertices (bool refitPV, const xAOD::VertexContainer *pvContainer, xAOD::VertexContainer *refPvContainer, const Analysis::PrimaryVertexRefitter *pvRefitter, size_t in_PV_max, int DoVertexType, Trk::VxCascadeInfo *casc, int index, double mass, xAOD::BPhysHypoHelper &vtx) |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| template<size_t NTracks> | |
| static bool | VerticesMatchTracks (const xAOD::Vertex *v1, const xAOD::Vertex *v2) |
| template<size_t NTracks> | |
| static const xAOD::Vertex * | FindVertex (const xAOD::VertexContainer *c, const xAOD::Vertex *v) |
| static std::vector< const xAOD::Vertex * > | GetGoodPV (const xAOD::VertexContainer *pvContainer) |
| Static method call with DerivationFramework::BPhysDerHelpers::GetGoodPV Returns a std::vector containing only PVs of type 1 and 3 - HighPt and Pileup, which have at least PV_minNTracks tracks. | |
| static void | PrepareVertexLinks (Trk::VxCascadeInfo *result, const xAOD::TrackParticleContainer *importedTrackCollection) |
| static void | PrepareVertexLinks (Trk::VxCascadeInfo *result, const std::vector< const xAOD::TrackParticleContainer * > &) |
| static std::vector< const xAOD::TrackParticle * > | CollectAllChargedTracks (const std::vector< xAOD::Vertex * > &cascadeVertices) |
| static void | SetVectorInfo (xAOD::BPhysHelper &, const Trk::VxCascadeInfo *) |
| static bool | uniqueCollection (const std::vector< const xAOD::TrackParticle * > &) |
| static bool | uniqueCollection (const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TrackParticle * > &) |
| static bool | LinkVertices (SG::AuxElement::Decorator< VertexLinkVector > &decor, const std::vector< const xAOD::Vertex * > &vertices, const xAOD::VertexContainer *vertexContainer, const xAOD::Vertex *vert) |
| static double | getParticleMass (const HepPDT::ParticleDataTable *pdt, int pdg) |
Public Attributes | |
| bool | m_copyAllVertices |
Private Types | |
| typedef ElementLink< xAOD::VertexContainer > | VertexLink |
| typedef std::vector< VertexLink > | VertexLinkVector |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| const CascadeTools * | m_cascadeTools |
| const xAOD::EventInfo * | m_eventInfo |
| size_t | m_PV_minNTracks |
| minimum number of tracks required in PVs considered | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Definition at line 34 of file BPhysPVCascadeTools.h.
|
private |
Definition at line 35 of file BPhysPVCascadeTools.h.
|
private |
Definition at line 36 of file BPhysPVCascadeTools.h.
| DerivationFramework::BPhysPVCascadeTools::BPhysPVCascadeTools | ( | const CascadeTools * | cascadeTools | ) |
Definition at line 17 of file BPhysPVCascadeTools.cxx.
| DerivationFramework::BPhysPVCascadeTools::BPhysPVCascadeTools | ( | const CascadeTools * | cascadeTools, |
| const xAOD::EventInfo * | eventinfo ) |
Definition at line 24 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 246 of file BPhysPVCascadeTools.cxx.
| double DerivationFramework::BPhysPVCascadeTools::DistInZtoDOCA | ( | const std::vector< TLorentzVector > & | mom, |
| const xAOD::BPhysHelper & | obj, | ||
| const xAOD::Vertex * | vertex ) const |
Calculate the distance along z axis between the PV and SV's DOCA point w.r.t.
the beamline.
Definition at line 174 of file BPhysPVCascadeTools.cxx.
| Amg::Vector3D DerivationFramework::BPhysPVCascadeTools::DocaExtrapToBeamSpot | ( | const std::vector< TLorentzVector > & | mom, |
| const xAOD::BPhysHelper & | obj ) const |
Point of DOCA w.r.t.
the beamline backward extrapolated along the B candidate's momentum direction.
Definition at line 183 of file BPhysPVCascadeTools.cxx.
| void DerivationFramework::BPhysPVCascadeTools::FillBPhysHelper | ( | const std::vector< TLorentzVector > & | mom, |
| Amg::MatrixX | cov, | ||
| xAOD::BPhysHelper & | vtx, | ||
| const xAOD::Vertex * | refPV, | ||
| const xAOD::VertexContainer * | refPvContainer, | ||
| xAOD::BPhysHelper::pv_type | pvtype, | ||
| int | refitCode ) const |
Fills the BPhysHelper object with the standard parameters.
Definition at line 32 of file BPhysPVCascadeTools.cxx.
| StatusCode DerivationFramework::BPhysPVCascadeTools::FillCandwithRefittedVertices | ( | bool | refitPV, |
| const xAOD::VertexContainer * | pvContainer, | ||
| xAOD::VertexContainer * | refPvContainer, | ||
| const Analysis::PrimaryVertexRefitter * | pvRefitter, | ||
| size_t | in_PV_max, | ||
| int | DoVertexType, | ||
| Trk::VxCascadeInfo * | casc, | ||
| int | index, | ||
| double | mass, | ||
| xAOD::BPhysHypoHelper & | vtx ) |
Definition at line 257 of file BPhysPVCascadeTools.cxx.
| size_t DerivationFramework::BPhysPVCascadeTools::FindLowA0Index | ( | const std::vector< TLorentzVector > & | mom, |
| const xAOD::BPhysHelper & | Obj, | ||
| const std::vector< const xAOD::Vertex * > & | PVlist, | ||
| const size_t | PV_minNTracks = 0 ) const |
Returns the index integer of the vertex with the lowest A0 in relation to the given vertex.
Definition at line 98 of file BPhysPVCascadeTools.cxx.
| size_t DerivationFramework::BPhysPVCascadeTools::FindLowZ0BAIndex | ( | const std::vector< TLorentzVector > & | mom, |
| const xAOD::BPhysHelper & | obj, | ||
| const std::vector< const xAOD::Vertex * > & | PVlist, | ||
| const size_t | PV_minNTracks = 0 ) const |
Find the index for the PV with the lowest distance in z of the SV's DOCA point w.r.t.
the beamline and the PV.
Definition at line 155 of file BPhysPVCascadeTools.cxx.
| size_t DerivationFramework::BPhysPVCascadeTools::FindLowZIndex | ( | const std::vector< TLorentzVector > & | mom, |
| const xAOD::BPhysHelper & | Obj, | ||
| const std::vector< const xAOD::Vertex * > & | PVlist, | ||
| const size_t | PV_minNTracks = 0 ) const |
Returns the index integer of the vertex with the lowest Z in relation to the given vertex.
Definition at line 76 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 145 of file BPhysPVCascadeTools.h.
|
nodiscard |
Get the current beamspot position either from cache or from BeamCondSvc.
Before processing a new event, make sure to call GetBeamSpot();
Definition at line 146 of file BPhysPVCascadeTools.cxx.
|
static |
Static method call with DerivationFramework::BPhysDerHelpers::GetGoodPV Returns a std::vector containing only PVs of type 1 and 3 - HighPt and Pileup, which have at least PV_minNTracks tracks.
Definition at line 120 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 491 of file BPhysPVCascadeTools.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
static |
Definition at line 460 of file BPhysPVCascadeTools.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
static |
Definition at line 221 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 204 of file BPhysPVCascadeTools.cxx.
| void DerivationFramework::BPhysPVCascadeTools::ProcessVertex | ( | const std::vector< TLorentzVector > & | mom, |
| Amg::MatrixX | cov, | ||
| xAOD::BPhysHypoHelper & | vtx, | ||
| xAOD::BPhysHelper::pv_type | pvtype, | ||
| double | mass ) const |
Definition at line 54 of file BPhysPVCascadeTools.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
| void DerivationFramework::BPhysPVCascadeTools::SetMinNTracksInPV | ( | size_t | PV_minNTracks | ) |
Set the minimum number of tracks required for primary vertices to be considered for primary vertex association to a secondary vertex.
Note that this requirement will not be applied for finding the vertex with the highest pT sum (FindHighPtIndex()) since it would possibly exclude this vertex which has been marked earlier in the tool chain.
Definition at line 139 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 424 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 443 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 450 of file BPhysPVCascadeTools.cxx.
|
static |
Definition at line 129 of file BPhysPVCascadeTools.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 38 of file BPhysPVCascadeTools.h.
| bool DerivationFramework::BPhysPVCascadeTools::m_copyAllVertices |
Definition at line 45 of file BPhysPVCascadeTools.h.
|
private |
Definition at line 39 of file BPhysPVCascadeTools.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
minimum number of tracks required in PVs considered
Definition at line 42 of file BPhysPVCascadeTools.h.