FCCAnalyses
Loading...
Searching...
No Matches
FCCAnalyses::VertexingUtils Namespace Reference

Vertexing utilities. More...

Classes

struct  FCCAnalysesV0
 Structure to keep useful information that is related to the V0. More...
 
struct  FCCAnalysesVertex
 Structure to keep useful track information that is related to the vertex. More...
 
struct  FCCAnalysesVertexMC
 Structure to keep useful track information that is related to the vertex. More...
 
struct  selTracks
 Selection of particles based on the d0 / z0 significances of the associated track. More...
 

Functions

TVectorD XPtoPar (TVector3 x, TVector3 p, Double_t Q)
 from delphes: returns track state parameters (delphes convention) for a given vertex (x), momentum (p) and charge
 
TVector3 ParToP (TVectorD Par)
 from delphes: returns the momentum corresponding to a given track state
 
ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > SelPrimaryTracks (ROOT::VecOps::RVec< int > recind, ROOT::VecOps::RVec< int > mcind, ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > reco, ROOT::VecOps::RVec< edm4hep::MCParticleData > mc, TVector3 MC_EventPrimaryVertex)
 Selection of primary particles :
 
int get_Nvertex (ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl)
 Retrieve the number of reconstructed vertices from the collection of vertex object.
 
FCCAnalysesVertex get_FCCAnalysesVertex (ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl, int index)
 Retrieve a single FCCAnalyses vertex from the collection of vertex object.
 
edm4hep::VertexData get_VertexData (FCCAnalysesVertex TheVertex)
 Retrieve the edm4hep::VertexData from the vertex object.
 
ROOT::VecOps::RVec< edm4hep::VertexData > get_VertexData (ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl)
 Retrieve a vector of edm4hep::VertexData from the collection of vertex object.
 
edm4hep::VertexData get_VertexData (ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl, int index)
 Retrieve a edm4hep::VertexData from the collection of vertex object at a given index.
 
int get_VertexNtrk (FCCAnalysesVertex TheVertex)
 Retrieve the number of tracks from FCCAnalysesVertex.
 
ROOT::VecOps::RVec< int > get_VertexNtrk (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 
ROOT::VecOps::RVec< int > get_VertexRecoInd (FCCAnalysesVertex TheVertex)
 Retrieve the tracks indices from FCCAnalysesVertex.
 
ROOT::VecOps::RVec< int > get_VertexRecoParticlesInd (FCCAnalysesVertex TheVertex, const ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > &reco)
 Retrieve the indices of the tracks fitted to that vertex, but now in the collection of RecoParticles.
 
int get_nTracks (ROOT::VecOps::RVec< edm4hep::TrackState > tracks)
 Return the number of tracks in a given track collection.
 
bool compare_Tracks (const edm4hep::TrackState &tr1, const edm4hep::TrackState &tr2)
 compare two track states
 
ROOT::VecOps::RVec< FCCAnalysesVertexget_all_vertices (FCCAnalysesVertex PV, ROOT::VecOps::RVec< FCCAnalysesVertex > SV)
 functions used for SV reconstruction
 
ROOT::VecOps::RVec< FCCAnalysesVertexget_all_vertices (FCCAnalysesVertex PV, ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > SV)
 
double get_invM_pairs (FCCAnalysesVertex vertex, double m1=0.13957039, double m2=0.13957039)
 returns the invariant mass of a two-track vertex CAUTION: m1 -> mass of first track, m2 -> mass of second track by default both pions
 
ROOT::VecOps::RVec< double > get_invM_pairs (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, double m1=0.13957039, double m2=0.13957039)
 
double get_invM (FCCAnalysesVertex vertex)
 returns the invariant mass of a vertex assuming all tracks to be pions
 
ROOT::VecOps::RVec< double > get_invM (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 returns the invariant mass of a vector of vertices assuming all tracks to be pions
 
double get_PV2V0angle (FCCAnalysesVertex V0, FCCAnalysesVertex PV)
 returns the cos of the angle b/n V0 candidate's (or any vtx's) momentum & PV to V0 (vtx) displacement vector
 
double get_PV2vtx_angle (ROOT::VecOps::RVec< edm4hep::TrackState > tracks, FCCAnalysesVertex vtx, FCCAnalysesVertex PV)
 returns cos of the angle b/n track (that form the vtx) momentum sum & PV to vtx displacement vector
 
double get_trackE (edm4hep::TrackState track)
 returns a track's energy assuming the track to be a pion
 
int get_n_SV (FCCAnalysesV0 SV)
 V0 Reconstruction Return the number of reconstructed V0s.
 
ROOT::VecOps::RVec< TVector3 > get_position_SV (FCCAnalysesV0 SV)
 Return the vertex position of all reconstructed V0s (in mm)
 
ROOT::VecOps::RVec< int > get_pdg_V0 (FCCAnalysesV0 V0)
 Return the PDG IDs of all reconstructed V0s.
 
ROOT::VecOps::RVec< double > get_invM_V0 (FCCAnalysesV0 V0)
 Return the invariant masses of all reconstructed V0s.
 
ROOT::VecOps::RVec< TVector3 > get_p_SV (FCCAnalysesV0 SV)
 Return the momentum of all reconstructed V0s.
 
ROOT::VecOps::RVec< double > get_chi2_SV (FCCAnalysesV0 SV)
 Return chi2 of all reconstructed V0s.
 
int get_n_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Passing a vector of FCCAnalysesVertex instead of FCCAnalysesV0 Return the number of reconstructed SVs.
 
ROOT::VecOps::RVec< TVector3 > get_p_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return the momentum of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< TVector3 > get_position_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return the vertex position of all reconstructed SVs (in mm)
 
ROOT::VecOps::RVec< double > get_pMag_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return the momentum magnitude of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_chi2_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return chi2 of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_norm_chi2_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return normalised chi2 of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< int > get_nDOF_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return no of DOF of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_theta_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return polar angle (theta) of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_phi_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)
 Return azimuthal angle (phi) of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_relTheta_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, ROOT::VecOps::RVec< int > nSV_jet, ROOT::VecOps::RVec< fastjet::PseudoJet > jets)
 Return polar angle (theta) of all reconstructed vertices wrt jets (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_relPhi_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, ROOT::VecOps::RVec< int > nSV_jet, ROOT::VecOps::RVec< fastjet::PseudoJet > jets)
 Return azimuthal angle (phi) of all reconstructed vertices wrt jets (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_pointingangle_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, FCCAnalysesVertex PV)
 Return the pointing angle of all reconstructed vertices (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_dxy_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, FCCAnalysesVertex PV)
 Return the distances of all reconstructed vertices from PV in xy plane [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_d3d_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, FCCAnalysesVertex PV)
 Return the distances of all reconstructed vertices from PV in 3D [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_d3d_SV_obj (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, TVector3 location)
 Return the distances of all reconstructed verteces from given TVector3d object in 3D [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_d3d_SV_obj (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, edm4hep::Vector3d location)
 Return the distances of all reconstructed verteces from given edm4hep::Vector3d object in 3D [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_dR_SV_obj (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, TVector3 location)
 Return the distance in R of all reconstructed verteces from given TVector3d object in 3D [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< double > get_dR_SV_obj (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, edm4hep::Vector3d location)
 Return the distances in R of all reconstructed verteces from given edm4hep::Vector3d object in 3D [mm] (or V0.vtx)
 
ROOT::VecOps::RVec< FCCAnalysesVertexget_all_SVs (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 For get_SV_jets ///.
 
int get_n_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 Return the total number of reconstructed SVs.
 
ROOT::VecOps::RVec< int > get_n_SV_jets (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 Return the number of reconstructed SVs per jet.
 
std::vector< std::vector< edm4hep::TrackState > > get_tracksInJets (ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > recoparticles, ROOT::VecOps::RVec< edm4hep::TrackState > thetracks, ROOT::VecOps::RVec< fastjet::PseudoJet > jets, std::vector< std::vector< int > > jet_consti)
 Return the tracks separated by jets.
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > get_svInJets (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, ROOT::VecOps::RVec< int > nSV_jet)
 Return V0s separated by jets.
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_invM (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< TVector3 > > get_p_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_pMag_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > get_VertexNtrk (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_chi2_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_norm_chi2_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > get_nDOF_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_theta_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_phi_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_relTheta_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices, ROOT::VecOps::RVec< fastjet::PseudoJet > jets)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_relPhi_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices, ROOT::VecOps::RVec< fastjet::PseudoJet > jets)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_pointingangle_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices, FCCAnalysesVertex PV)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_dxy_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices, FCCAnalysesVertex PV)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_d3d_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices, FCCAnalysesVertex PV)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > get_pdg_V0 (ROOT::VecOps::RVec< int > pdg, ROOT::VecOps::RVec< int > nSV_jet)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > get_invM_V0 (ROOT::VecOps::RVec< double > invM, ROOT::VecOps::RVec< int > nSV_jet)
 
ROOT::VecOps::RVec< ROOT::VecOps::RVec< TVector3 > > get_position_SV (ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)
 Return the vertex position of all reconstructed SVs (in mm)
 
float get_trackMom (edm4hep::TrackState &atrack)
 
TVectorD Edm4hep2Delphes_TrackParam (const TVectorD &param, bool Units_mm)
 convert track parameters, from edm4hep to delphes conventions
 
TVectorD Delphes2Edm4hep_TrackParam (const TVectorD &param, bool Units_mm)
 convert track parameters, from delphes to edm4hep conventions
 
TMatrixDSym Edm4hep2Delphes_TrackCovMatrix (const std::array< float, 21 > &covMatrix, bool Units_mm)
 convert track covariance matrix, from edm4hep to delphes conventions
 
std::array< float, 21 > Delphes2Edm4hep_TrackCovMatrix (const TMatrixDSym &cov, bool Units_mm)
 convert track covariance matrix, from delphes to edm4hep conventions
 
TVectorD get_trackParam (edm4hep::TrackState &atrack, bool Units_mm=false)
 — Internal methods needed by the code of Franco B:
 
TMatrixDSym get_trackCov (const edm4hep::TrackState &atrack, bool Units_mm=false)
 
TVectorD ParToACTS (TVectorD Par)
 
TMatrixDSym CovToACTS (TMatrixDSym Cov, TVectorD Par)
 
ROOT::VecOps::RVec< double > get_relTheta_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, fastjet::PseudoJet jet)
 
ROOT::VecOps::RVec< double > get_relPhi_SV (ROOT::VecOps::RVec< FCCAnalysesVertex > vertices, fastjet::PseudoJet jet)
 

Detailed Description

Vertexing utilities.

Function Documentation

◆ compare_Tracks()

bool FCCAnalyses::VertexingUtils::compare_Tracks ( const edm4hep::TrackState & tr1,
const edm4hep::TrackState & tr2 )

compare two track states

◆ CovToACTS()

TMatrixDSym FCCAnalyses::VertexingUtils::CovToACTS ( TMatrixDSym Cov,
TVectorD Par )

◆ Delphes2Edm4hep_TrackCovMatrix()

std::array< float, 21 > FCCAnalyses::VertexingUtils::Delphes2Edm4hep_TrackCovMatrix ( const TMatrixDSym & cov,
bool Units_mm )

convert track covariance matrix, from delphes to edm4hep conventions

◆ Delphes2Edm4hep_TrackParam()

TVectorD FCCAnalyses::VertexingUtils::Delphes2Edm4hep_TrackParam ( const TVectorD & param,
bool Units_mm )

convert track parameters, from delphes to edm4hep conventions

◆ Edm4hep2Delphes_TrackCovMatrix()

TMatrixDSym FCCAnalyses::VertexingUtils::Edm4hep2Delphes_TrackCovMatrix ( const std::array< float, 21 > & covMatrix,
bool Units_mm )

convert track covariance matrix, from edm4hep to delphes conventions

◆ Edm4hep2Delphes_TrackParam()

TVectorD FCCAnalyses::VertexingUtils::Edm4hep2Delphes_TrackParam ( const TVectorD & param,
bool Units_mm )

convert track parameters, from edm4hep to delphes conventions

◆ get_all_SVs()

ROOT::VecOps::RVec< FCCAnalysesVertex > FCCAnalyses::VertexingUtils::get_all_SVs ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

For get_SV_jets ///.

Return the number of reconstructed SVs

◆ get_all_vertices() [1/2]

ROOT::VecOps::RVec< FCCAnalysesVertex > FCCAnalyses::VertexingUtils::get_all_vertices ( FCCAnalysesVertex PV,
ROOT::VecOps::RVec< FCCAnalysesVertex > SV )

functions used for SV reconstruction

returns a vector of all vertices (PV and SVs), e.g to use in myUtils::get_Vertex_d2PV first entry: PV, all subsequent entries: SVs

◆ get_all_vertices() [2/2]

ROOT::VecOps::RVec< FCCAnalysesVertex > FCCAnalyses::VertexingUtils::get_all_vertices ( FCCAnalysesVertex PV,
ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > SV )

◆ get_chi2_SV() [1/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_chi2_SV ( FCCAnalysesV0 SV)

Return chi2 of all reconstructed V0s.

◆ get_chi2_SV() [2/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_chi2_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return chi2 of all reconstructed vertices (or V0.vtx)

◆ get_chi2_SV() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_chi2_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_d3d_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_d3d_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
FCCAnalysesVertex PV )

Return the distances of all reconstructed vertices from PV in 3D [mm] (or V0.vtx)

◆ get_d3d_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_d3d_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices,
FCCAnalysesVertex PV )

◆ get_d3d_SV_obj() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_d3d_SV_obj ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
edm4hep::Vector3d location )

Return the distances of all reconstructed verteces from given edm4hep::Vector3d object in 3D [mm] (or V0.vtx)

◆ get_d3d_SV_obj() [2/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_d3d_SV_obj ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
TVector3 location )

Return the distances of all reconstructed verteces from given TVector3d object in 3D [mm] (or V0.vtx)

◆ get_dR_SV_obj() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_dR_SV_obj ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
edm4hep::Vector3d location )

Return the distances in R of all reconstructed verteces from given edm4hep::Vector3d object in 3D [mm] (or V0.vtx)

◆ get_dR_SV_obj() [2/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_dR_SV_obj ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
TVector3 location )

Return the distance in R of all reconstructed verteces from given TVector3d object in 3D [mm] (or V0.vtx)

◆ get_dxy_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_dxy_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
FCCAnalysesVertex PV )

Return the distances of all reconstructed vertices from PV in xy plane [mm] (or V0.vtx)

◆ get_dxy_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_dxy_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices,
FCCAnalysesVertex PV )

◆ get_FCCAnalysesVertex()

FCCAnalysesVertex FCCAnalyses::VertexingUtils::get_FCCAnalysesVertex ( ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl,
int index )

Retrieve a single FCCAnalyses vertex from the collection of vertex object.

◆ get_invM() [1/3]

double FCCAnalyses::VertexingUtils::get_invM ( FCCAnalysesVertex vertex)

returns the invariant mass of a vertex assuming all tracks to be pions

◆ get_invM() [2/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_invM ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

returns the invariant mass of a vector of vertices assuming all tracks to be pions

◆ get_invM() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_invM ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_invM_pairs() [1/2]

double FCCAnalyses::VertexingUtils::get_invM_pairs ( FCCAnalysesVertex vertex,
double m1 = 0.13957039,
double m2 = 0.13957039 )

returns the invariant mass of a two-track vertex CAUTION: m1 -> mass of first track, m2 -> mass of second track by default both pions

◆ get_invM_pairs() [2/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_invM_pairs ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
double m1 = 0.13957039,
double m2 = 0.13957039 )

◆ get_invM_V0() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_invM_V0 ( FCCAnalysesV0 V0)

Return the invariant masses of all reconstructed V0s.

◆ get_invM_V0() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_invM_V0 ( ROOT::VecOps::RVec< double > invM,
ROOT::VecOps::RVec< int > nSV_jet )

◆ get_n_SV() [1/3]

int FCCAnalyses::VertexingUtils::get_n_SV ( FCCAnalysesV0 SV)

V0 Reconstruction Return the number of reconstructed V0s.

◆ get_n_SV() [2/3]

int FCCAnalyses::VertexingUtils::get_n_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Passing a vector of FCCAnalysesVertex instead of FCCAnalysesV0 Return the number of reconstructed SVs.

◆ get_n_SV() [3/3]

int FCCAnalyses::VertexingUtils::get_n_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

Return the total number of reconstructed SVs.

◆ get_n_SV_jets()

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_n_SV_jets ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

Return the number of reconstructed SVs per jet.

◆ get_nDOF_SV() [1/2]

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_nDOF_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return no of DOF of all reconstructed vertices (or V0.vtx)

◆ get_nDOF_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > FCCAnalyses::VertexingUtils::get_nDOF_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_norm_chi2_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_norm_chi2_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return normalised chi2 of all reconstructed vertices (or V0.vtx)

◆ get_norm_chi2_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_norm_chi2_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_nTracks()

int FCCAnalyses::VertexingUtils::get_nTracks ( ROOT::VecOps::RVec< edm4hep::TrackState > tracks)

Return the number of tracks in a given track collection.

◆ get_Nvertex()

int FCCAnalyses::VertexingUtils::get_Nvertex ( ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl)

Retrieve the number of reconstructed vertices from the collection of vertex object.

◆ get_p_SV() [1/3]

ROOT::VecOps::RVec< TVector3 > FCCAnalyses::VertexingUtils::get_p_SV ( FCCAnalysesV0 SV)

Return the momentum of all reconstructed V0s.

◆ get_p_SV() [2/3]

ROOT::VecOps::RVec< TVector3 > FCCAnalyses::VertexingUtils::get_p_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return the momentum of all reconstructed vertices (or V0.vtx)

◆ get_p_SV() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< TVector3 > > FCCAnalyses::VertexingUtils::get_p_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_pdg_V0() [1/2]

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_pdg_V0 ( FCCAnalysesV0 V0)

Return the PDG IDs of all reconstructed V0s.

◆ get_pdg_V0() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > FCCAnalyses::VertexingUtils::get_pdg_V0 ( ROOT::VecOps::RVec< int > pdg,
ROOT::VecOps::RVec< int > nSV_jet )

◆ get_phi_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_phi_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return azimuthal angle (phi) of all reconstructed vertices (or V0.vtx)

◆ get_phi_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_phi_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_pMag_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_pMag_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return the momentum magnitude of all reconstructed vertices (or V0.vtx)

◆ get_pMag_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_pMag_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_pointingangle_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_pointingangle_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
FCCAnalysesVertex PV )

Return the pointing angle of all reconstructed vertices (or V0.vtx)

◆ get_pointingangle_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_pointingangle_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices,
FCCAnalysesVertex PV )

◆ get_position_SV() [1/3]

ROOT::VecOps::RVec< TVector3 > FCCAnalyses::VertexingUtils::get_position_SV ( FCCAnalysesV0 SV)

Return the vertex position of all reconstructed V0s (in mm)

◆ get_position_SV() [2/3]

ROOT::VecOps::RVec< TVector3 > FCCAnalyses::VertexingUtils::get_position_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return the vertex position of all reconstructed SVs (in mm)

◆ get_position_SV() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< TVector3 > > FCCAnalyses::VertexingUtils::get_position_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

Return the vertex position of all reconstructed SVs (in mm)

◆ get_PV2V0angle()

double FCCAnalyses::VertexingUtils::get_PV2V0angle ( FCCAnalysesVertex V0,
FCCAnalysesVertex PV )

returns the cos of the angle b/n V0 candidate's (or any vtx's) momentum & PV to V0 (vtx) displacement vector

◆ get_PV2vtx_angle()

double FCCAnalyses::VertexingUtils::get_PV2vtx_angle ( ROOT::VecOps::RVec< edm4hep::TrackState > tracks,
FCCAnalysesVertex vtx,
FCCAnalysesVertex PV )

returns cos of the angle b/n track (that form the vtx) momentum sum & PV to vtx displacement vector

◆ get_relPhi_SV() [1/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_relPhi_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
fastjet::PseudoJet jet )

◆ get_relPhi_SV() [2/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_relPhi_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
ROOT::VecOps::RVec< int > nSV_jet,
ROOT::VecOps::RVec< fastjet::PseudoJet > jets )

Return azimuthal angle (phi) of all reconstructed vertices wrt jets (or V0.vtx)

◆ get_relPhi_SV() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_relPhi_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices,
ROOT::VecOps::RVec< fastjet::PseudoJet > jets )

◆ get_relTheta_SV() [1/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_relTheta_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
fastjet::PseudoJet jet )

◆ get_relTheta_SV() [2/3]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_relTheta_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
ROOT::VecOps::RVec< int > nSV_jet,
ROOT::VecOps::RVec< fastjet::PseudoJet > jets )

Return polar angle (theta) of all reconstructed vertices wrt jets (or V0.vtx)

◆ get_relTheta_SV() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_relTheta_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices,
ROOT::VecOps::RVec< fastjet::PseudoJet > jets )

◆ get_svInJets()

ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > FCCAnalyses::VertexingUtils::get_svInJets ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices,
ROOT::VecOps::RVec< int > nSV_jet )

Return V0s separated by jets.

◆ get_theta_SV() [1/2]

ROOT::VecOps::RVec< double > FCCAnalyses::VertexingUtils::get_theta_SV ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

Return polar angle (theta) of all reconstructed vertices (or V0.vtx)

◆ get_theta_SV() [2/2]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< double > > FCCAnalyses::VertexingUtils::get_theta_SV ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_trackCov()

TMatrixDSym FCCAnalyses::VertexingUtils::get_trackCov ( const edm4hep::TrackState & atrack,
bool Units_mm = false )

◆ get_trackE()

double FCCAnalyses::VertexingUtils::get_trackE ( edm4hep::TrackState track)

returns a track's energy assuming the track to be a pion

◆ get_trackMom()

float FCCAnalyses::VertexingUtils::get_trackMom ( edm4hep::TrackState & atrack)

◆ get_trackParam()

TVectorD FCCAnalyses::VertexingUtils::get_trackParam ( edm4hep::TrackState & atrack,
bool Units_mm = false )

— Internal methods needed by the code of Franco B:

◆ get_tracksInJets()

std::vector< std::vector< edm4hep::TrackState > > FCCAnalyses::VertexingUtils::get_tracksInJets ( ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > recoparticles,
ROOT::VecOps::RVec< edm4hep::TrackState > thetracks,
ROOT::VecOps::RVec< fastjet::PseudoJet > jets,
std::vector< std::vector< int > > jet_consti )

Return the tracks separated by jets.

◆ get_VertexData() [1/3]

edm4hep::VertexData FCCAnalyses::VertexingUtils::get_VertexData ( FCCAnalysesVertex TheVertex)

Retrieve the edm4hep::VertexData from the vertex object.

◆ get_VertexData() [2/3]

ROOT::VecOps::RVec< edm4hep::VertexData > FCCAnalyses::VertexingUtils::get_VertexData ( ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl)

Retrieve a vector of edm4hep::VertexData from the collection of vertex object.

◆ get_VertexData() [3/3]

edm4hep::VertexData FCCAnalyses::VertexingUtils::get_VertexData ( ROOT::VecOps::RVec< FCCAnalysesVertex > TheVertexColl,
int index )

Retrieve a edm4hep::VertexData from the collection of vertex object at a given index.

◆ get_VertexNtrk() [1/3]

int FCCAnalyses::VertexingUtils::get_VertexNtrk ( FCCAnalysesVertex TheVertex)

Retrieve the number of tracks from FCCAnalysesVertex.

◆ get_VertexNtrk() [2/3]

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_VertexNtrk ( ROOT::VecOps::RVec< FCCAnalysesVertex > vertices)

◆ get_VertexNtrk() [3/3]

ROOT::VecOps::RVec< ROOT::VecOps::RVec< int > > FCCAnalyses::VertexingUtils::get_VertexNtrk ( ROOT::VecOps::RVec< ROOT::VecOps::RVec< FCCAnalysesVertex > > vertices)

◆ get_VertexRecoInd()

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_VertexRecoInd ( FCCAnalysesVertex TheVertex)

Retrieve the tracks indices from FCCAnalysesVertex.

◆ get_VertexRecoParticlesInd()

ROOT::VecOps::RVec< int > FCCAnalyses::VertexingUtils::get_VertexRecoParticlesInd ( FCCAnalysesVertex TheVertex,
const ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > & reco )

Retrieve the indices of the tracks fitted to that vertex, but now in the collection of RecoParticles.

◆ ParToACTS()

TVectorD FCCAnalyses::VertexingUtils::ParToACTS ( TVectorD Par)

◆ ParToP()

TVector3 FCCAnalyses::VertexingUtils::ParToP ( TVectorD Par)

from delphes: returns the momentum corresponding to a given track state

◆ SelPrimaryTracks()

ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > FCCAnalyses::VertexingUtils::SelPrimaryTracks ( ROOT::VecOps::RVec< int > recind,
ROOT::VecOps::RVec< int > mcind,
ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > reco,
ROOT::VecOps::RVec< edm4hep::MCParticleData > mc,
TVector3 MC_EventPrimaryVertex )

Selection of primary particles :

◆ XPtoPar()

TVectorD FCCAnalyses::VertexingUtils::XPtoPar ( TVector3 x,
TVector3 p,
Double_t Q )

from delphes: returns track state parameters (delphes convention) for a given vertex (x), momentum (p) and charge