FCCAnalyses
Loading...
Searching...
No Matches
VertexFitterSimple.h
Go to the documentation of this file.
1#ifndef VERTEXFITTERSIMPLE_ANALYZERS_H
2#define VERTEXFITTERSIMPLE_ANALYZERS_H
3
4#include <cmath>
5#include <vector>
6
7#include "ROOT/RVec.hxx"
8#include "edm4hep/ReconstructedParticleData.h"
9#include "edm4hep/TrackState.h"
10
11#include "TVectorD.h"
12#include "TVector3.h"
13#include "TMatrixDSym.h"
14#include "TMath.h"
15#include "TDecompChol.h"
16#include "TMatrixD.h"
17
20#include "VertexingUtils.h"
21
22#include "edm4hep/VertexData.h"
23#include "edm4hep/Vertex.h"
24
25#include "VertexFit.h" // from Delphes - updates Franco, Jul 2022
26#include "VertexMore.h"
27
28
29namespace FCCAnalyses{
30
37namespace VertexFitterSimple{
38
41 ROOT::VecOps::RVec<edm4hep::ReconstructedParticleData> recoparticles,
42 ROOT::VecOps::RVec<edm4hep::TrackState> alltracks,
43 bool BeamSpotConstraint = false,
44 double sigmax=0., double sigmay=0., double sigmaz=0.,
45 double bsc_x=0., double bsc_y=0., double bsc_z=0. ) ;
46
47
49 VertexingUtils::FCCAnalysesVertex VertexFitter_Tk( int Primary, ROOT::VecOps::RVec<edm4hep::TrackState> tracks,
50 bool BeamSpotConstraint = false,
51 double sigmax=0., double sigmay=0., double sigmaz=0.,
52 double bsc_x=0., double bsc_y=0., double bsc_z=0. ) ;
53
54 VertexingUtils::FCCAnalysesVertex VertexFitter_Tk( int Primary, ROOT::VecOps::RVec<edm4hep::TrackState> tracks,
55 const ROOT::VecOps::RVec<edm4hep::TrackState>& alltracks,
56 bool BeamSpotConstraint = false,
57 double sigmax=0., double sigmay=0., double sigmaz=0.,
58 double bsc_x=0., double bsc_y=0., double bsc_z=0. ) ;
59
61 ROOT::VecOps::RVec<edm4hep::TrackState> get_PrimaryTracks( ROOT::VecOps::RVec<edm4hep::TrackState> tracks,
62 bool BeamSpotConstraint,
63 double bsc_sigmax, double bsc_sigmay, double bsc_sigmaz,
64 double bsc_x, double bsc_y, double bsc_z ) ;
65
66
68 ROOT::VecOps::RVec<edm4hep::TrackState> get_NonPrimaryTracks( ROOT::VecOps::RVec<edm4hep::TrackState> allTracks,
69 ROOT::VecOps::RVec<edm4hep::TrackState> primaryTracks ) ;
70
72 ROOT::VecOps::RVec<bool> IsPrimary_forTracks( ROOT::VecOps::RVec<edm4hep::TrackState> allTracks,
73 ROOT::VecOps::RVec<edm4hep::TrackState> primaryTracks ) ;
74
75
76/*
77 Double_t FastRv(TVectorD p1, TVectorD p2) ;
78 TMatrixDSym RegInv3(TMatrixDSym &Smat0) ;
79 TMatrixD Fill_A(TVectorD par, Double_t phi) ;
80 TVectorD Fill_a(TVectorD par, Double_t phi) ;
81 TVectorD Fill_x0(TVectorD par) ;
82 TVectorD Fill_x(TVectorD par, Double_t phi) ;
83
84 TVectorD XPtoPar(TVector3 x, TVector3 p, Double_t Q);
85 TVector3 ParToP(TVectorD Par);
86
87 TVectorD XPtoPar(TVector3 x, TVector3 p, Double_t Q);
88 TVector3 ParToP(TVectorD Par);
89*/
90
91
92
93}//end NS VertexFitterSimple
94
95}//end NS FCCAnalyses
96#endif
VertexingUtils::FCCAnalysesVertex VertexFitter_Tk(int Primary, ROOT::VecOps::RVec< edm4hep::TrackState > tracks, bool BeamSpotConstraint=false, double sigmax=0., double sigmay=0., double sigmaz=0., double bsc_x=0., double bsc_y=0., double bsc_z=0.)
Vertex (code from Franco Bedeschi): passing the tracks. Units for the beamspot constraint: mum.
Definition VertexFitterSimple.cc:87
VertexingUtils::FCCAnalysesVertex VertexFitter(int Primary, ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > recoparticles, ROOT::VecOps::RVec< edm4hep::TrackState > alltracks, bool BeamSpotConstraint=false, double sigmax=0., double sigmay=0., double sigmaz=0., double bsc_x=0., double bsc_y=0., double bsc_z=0.)
Vertex (code from Franco Bedeschi): passing the recoparticles. Units for the beamspot constraint: mum...
Definition VertexFitterSimple.cc:40
ROOT::VecOps::RVec< edm4hep::TrackState > get_NonPrimaryTracks(ROOT::VecOps::RVec< edm4hep::TrackState > allTracks, ROOT::VecOps::RVec< edm4hep::TrackState > primaryTracks)
Return the tracks that are NOT flagged as coming from the primary vertex.
Definition VertexFitterSimple.cc:359
ROOT::VecOps::RVec< bool > IsPrimary_forTracks(ROOT::VecOps::RVec< edm4hep::TrackState > allTracks, ROOT::VecOps::RVec< edm4hep::TrackState > primaryTracks)
for an input vector of tracks, return a vector of bools that tell if the track was identified as a pr...
Definition VertexFitterSimple.cc:381
ROOT::VecOps::RVec< edm4hep::TrackState > get_PrimaryTracks(ROOT::VecOps::RVec< edm4hep::TrackState > tracks, bool BeamSpotConstraint, double bsc_sigmax, double bsc_sigmay, double bsc_sigmaz, double bsc_x, double bsc_y, double bsc_z)
Return the tracks that are flagged as coming from the primary vertex.
Definition VertexFitterSimple.cc:259
FCC analyzers collection.
Definition Algorithms.h:15
Structure to keep useful track information that is related to the vertex.
Definition VertexingUtils.h:38