ATLAS Offline Software
Classes | Namespaces | Macros
BPhysHelper.h File Reference

: B-physics xAOD helpers. More...

#include "xAODTracking/TrackParticleFwd.h"
#include "xAODTracking/VertexFwd.h"
#include "xAODTracking/VertexContainerFwd.h"
#include "xAODMuon/MuonContainer.h"
#include "xAODEgamma/ElectronContainer.h"
#include "TVector3.h"
#include "TLorentzVector.h"
#include "TMatrixTSym.h"
#include <assert.h>
Include dependency graph for BPhysHelper.h:

Go to the source code of this file.

Classes

class  xAOD::BPhysHelper
 

Namespaces

 xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 

Macros

#define BPHYS_CHECK(EXP)   { if( ! EXP ) ATH_MSG_WARNING ( "Call of \"" << #EXP << "\" failed" ); }
 Useful CHECK macro. More...
 

Detailed Description

: B-physics xAOD helpers.

Author
: Daniel Scheirich danie.nosp@m.l.sc.nosp@m.heiri.nosp@m.ch@c.nosp@m.ern.c.nosp@m.h

This class provides interface to the basic B-physics augmemtation of the xAOD::Vertex, i.e.:

In addition, it provides methods that convert covariance matrix from its native xAOD form (i.e. vector<float>) into the matrix form represented by the TMatrixTSym<double> class

To access hypothesis-specific augmentation (e.g. invariant mass, lifetime, etc) use BPhysHypoHelper.

Note
The class caches covariance matrix, refitted track momenta, pointers to muons and pointers to other vertices in order to speed up access when getter methods are called repeatedly

Usage example:

void myFunction(xAOD::Vertex* vtx) {
// Let "vtx" be some xAOD::Vertex created by the b-physics software
// We gain access to augmentations through the helper class:
xAOD::BPhysHelper bVtx(vtx);
std::cout << "Refitted pT of the 1st track: ";
if(bVtx.nRefTrks()>0) {
std::cout << bVtx.refTrk(0).Pt();
}
std::cout << std::endl;
}

Definition in file BPhysHelper.h.

Macro Definition Documentation

◆ BPHYS_CHECK

#define BPHYS_CHECK (   EXP)    { if( ! EXP ) ATH_MSG_WARNING ( "Call of \"" << #EXP << "\" failed" ); }

Useful CHECK macro.

Definition at line 739 of file BPhysHelper.h.

xAOD::BPhysHelper
Definition: BPhysHelper.h:71
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42