ATLAS Offline Software
|
#include <BPhysPVTools.h>
Public Member Functions | |
BPhysPVTools (const Trk::V0Tools *v0Tools) | |
BPhysPVTools (const Trk::V0Tools *v0Tools, const xAOD::EventInfo *) | |
void | SetSave3d (bool v) |
StatusCode | FillCandExistingVertices (xAOD::VertexContainer *vtxContainer, const xAOD::VertexContainer *pvContainer, int DoVertexType) |
void | FillBPhysHelperNULL (xAOD::BPhysHelper &vtx, const xAOD::VertexContainer *PvContainer, xAOD::BPhysHelper::pv_type pvtype, bool do3d=false) const |
StatusCode | FillCandwithRefittedVertices (xAOD::VertexContainer *vtxContainer, const xAOD::VertexContainer *pvContainer, xAOD::VertexContainer *refPvContainer, const Analysis::PrimaryVertexRefitter *, size_t in_PV_max, int DoVertexType) |
void | DecorateWithNULL (xAOD::VertexContainer *vtxContainer, const xAOD::VertexContainer *pvContainer, int DoVertexType) const |
void | DecorateWithDummyVertex (xAOD::VertexContainer *vtxContainer, const xAOD::VertexContainer *pvContainer, const xAOD::Vertex *Dummy, int DoVertexType, bool SetOrignal) const |
void | FillBPhysHelper (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. More... | |
size_t | FindLowZIndex (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. More... | |
size_t | FindLowA0Index (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. More... | |
size_t | FindHighPtIndex (const std::vector< const xAOD::Vertex * > &PVlist) const |
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. More... | |
Amg::Vector3D | GetBeamSpot () const |
Get the current beamspot position either from cache or from BeamCondSvc. More... | |
size_t | FindLowZ0BAIndex (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. More... | |
double | DistInZtoDOCA (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. More... | |
Amg::Vector3D | DocaExtrapToBeamSpot (xAOD::BPhysHelper &obj) const |
Point of DOCA w.r.t. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Static Public Member Functions | |
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. More... | |
static void | PrepareVertexLinks (xAOD::Vertex *theResult, const xAOD::TrackParticleContainer *importedTrackCollection) |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
const Trk::V0Tools * | m_v0Tools |
const xAOD::EventInfo * | m_EvtData |
size_t | m_PV_minNTracks |
minimum number of tracks required in PVs considered More... | |
bool | m_3dCalc |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Definition at line 25 of file BPhysPVTools.h.
DerivationFramework::BPhysPVTools::BPhysPVTools | ( | const Trk::V0Tools * | v0Tools | ) |
Definition at line 18 of file BPhysPVTools.cxx.
DerivationFramework::BPhysPVTools::BPhysPVTools | ( | const Trk::V0Tools * | v0Tools, |
const xAOD::EventInfo * | eventInfo | ||
) |
Definition at line 25 of file BPhysPVTools.cxx.
void DerivationFramework::BPhysPVTools::DecorateWithDummyVertex | ( | xAOD::VertexContainer * | vtxContainer, |
const xAOD::VertexContainer * | pvContainer, | ||
const xAOD::Vertex * | Dummy, | ||
int | DoVertexType, | ||
bool | SetOrignal | ||
) | const |
Definition at line 102 of file BPhysPVTools.cxx.
void DerivationFramework::BPhysPVTools::DecorateWithNULL | ( | xAOD::VertexContainer * | vtxContainer, |
const xAOD::VertexContainer * | pvContainer, | ||
int | DoVertexType | ||
) | const |
Definition at line 141 of file BPhysPVTools.cxx.
double DerivationFramework::BPhysPVTools::DistInZtoDOCA | ( | 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 503 of file BPhysPVTools.cxx.
Amg::Vector3D DerivationFramework::BPhysPVTools::DocaExtrapToBeamSpot | ( | xAOD::BPhysHelper & | obj | ) | const |
Point of DOCA w.r.t.
the beamline backward extrapolated along the B candidate's momentum direction.
Definition at line 513 of file BPhysPVTools.cxx.
void DerivationFramework::BPhysPVTools::FillBPhysHelper | ( | 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 BPhysPVTools.cxx.
void DerivationFramework::BPhysPVTools::FillBPhysHelperNULL | ( | xAOD::BPhysHelper & | vtx, |
const xAOD::VertexContainer * | PvContainer, | ||
xAOD::BPhysHelper::pv_type | pvtype, | ||
bool | do3d = false |
||
) | const |
Definition at line 57 of file BPhysPVTools.cxx.
StatusCode DerivationFramework::BPhysPVTools::FillCandExistingVertices | ( | xAOD::VertexContainer * | vtxContainer, |
const xAOD::VertexContainer * | pvContainer, | ||
int | DoVertexType | ||
) |
Definition at line 173 of file BPhysPVTools.cxx.
StatusCode DerivationFramework::BPhysPVTools::FillCandwithRefittedVertices | ( | xAOD::VertexContainer * | vtxContainer, |
const xAOD::VertexContainer * | pvContainer, | ||
xAOD::VertexContainer * | refPvContainer, | ||
const Analysis::PrimaryVertexRefitter * | pvRefitter, | ||
size_t | in_PV_max, | ||
int | DoVertexType | ||
) |
Definition at line 241 of file BPhysPVTools.cxx.
size_t DerivationFramework::BPhysPVTools::FindHighPtIndex | ( | const std::vector< const xAOD::Vertex * > & | PVlist | ) | const |
Definition at line 413 of file BPhysPVTools.cxx.
size_t DerivationFramework::BPhysPVTools::FindLowA0Index | ( | 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 422 of file BPhysPVTools.cxx.
size_t DerivationFramework::BPhysPVTools::FindLowZ0BAIndex | ( | 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 483 of file BPhysPVTools.cxx.
size_t DerivationFramework::BPhysPVTools::FindLowZIndex | ( | 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 80 of file BPhysPVTools.cxx.
Amg::Vector3D DerivationFramework::BPhysPVTools::GetBeamSpot | ( | ) | const |
Get the current beamspot position either from cache or from BeamCondSvc.
Before processing a new event, make sure to call GetBeamSpot();
Definition at line 472 of file BPhysPVTools.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 444 of file BPhysPVTools.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.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 164 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 179 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 530 of file BPhysPVTools.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::BPhysPVTools::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 464 of file BPhysPVTools.cxx.
|
inline |
Definition at line 40 of file BPhysPVTools.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 34 of file BPhysPVTools.h.
|
private |
Definition at line 29 of file BPhysPVTools.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
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 32 of file BPhysPVTools.h.
|
private |
Definition at line 28 of file BPhysPVTools.h.