ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

Macros

#define BPHYS_CHECK(EXP)
 Useful CHECK macro.

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.:

  • refitted track momenta
  • links to muons
  • links to other vertices
  • links to (some) refitted PV
  • transverse distance (and errors)
  • impact parameters (and errors)
  • pT error

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;
}
Vertex_v1 Vertex
Define the latest version of the vertex class.

Definition in file BPhysHelper.h.

Macro Definition Documentation

◆ BPHYS_CHECK

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

Useful CHECK macro.

Definition at line 738 of file BPhysHelper.h.