ATLAS Offline Software
Loading...
Searching...
No Matches
PESA Namespace Reference

Local tools. More...

Classes

class  T2BeamSpot
class  T2BSTrackFilterTool
class  T2SimpleVertex
class  T2SplitVertex
class  T2Track
class  T2TrackBeamSpotTool
class  T2TrackBSLLPoly
 Class that knows details of LogLikelihood approximation with a polynomial. More...
class  T2TrackClusterer
class  T2TrackManager
class  T2Vertex
class  T2VertexBeamSpot
 This class uses primary vertex reconstruction to measure and monitor the LHC beam as seen by the ATLAS detector. More...
class  T2VertexBeamSpotTool
 This class uses primary vertex reconstruction to measure and monitor the LHC beam as seen by the ATLAS detector. More...
struct  TrkSumOf
struct  TrkTrackPt
struct  TrkTrackPt2

Functions

template<unsigned Bx, unsigned By, unsigned tx, unsigned ty, unsigned ox, unsigned oy>
consteval int idx ()
std::ostream & operator<< (std::ostream &os, const T2BeamSpot &beamSpot)
std::ostream & operator<< (std::ostream &os, const T2Track &track)
double vertexChi2Prob (const T2Vertex &vertex)
double tiltedBeamPositionAtZPoint (double Zref, double nominalZPosition, double nominalTransversePosition, double tilt)
double vertexSumPt (const TrackCollection &tracks)
double vertexSumPt2 (const TrackCollection &tracks)
std::ostream & operator<< (std::ostream &os, const T2Vertex &vertex)

Variables

constexpr std::int8_t g_order [3][3][3][3]
constexpr unsigned g_size = 15 + 1
constexpr std::int8_t g_order2 [3][3]
constexpr unsigned g_size2 = 6
constexpr unsigned nbins

Detailed Description

Local tools.

============================================================ T2VertexBeamSpot.h, (c) ATLAS Detector software Trigger/TrigAlgorithms/TrigT2BeamSpot/T2VertexBeamSpot

============================================================

Externals.

External classes

Id
T2TrackManager.h 793164 2017-01-20 03:59:26Z ssnyder

T2TrackManager.h, (c) ATLAS Detector software Trigger/TrigAlgorithms/TrigT2BeamSpot/T2VertexBeamSpot

Sorting/Splitting class for tracks to be passed to the online beam spot vertex fitter

Authors : Emanuel Strauss

Date : 10 March, 2010


Online beam spot measurement and monitoring using L2 recontructed primary vertices.

Authors : David W. Miller, Rainer Bartoldus,

Su Dong

trigger EDM

Function Documentation

◆ idx()

template<unsigned Bx, unsigned By, unsigned tx, unsigned ty, unsigned ox, unsigned oy>
int PESA::idx ( )
consteval

Definition at line 85 of file idx.h.

86{
87 constexpr int i1 = g_order[Bx][By][tx][ty];
88 constexpr int i2 = g_order2[ox][oy];
89 static_assert(i1 >= 0 && i2 >= 0, "idx(): invalid power combination");
90 return i1 * g_size2 + i2;
91}
constexpr std::int8_t g_order2[3][3]
Definition idx.h:64
constexpr std::int8_t g_order[3][3][3][3]
Definition idx.h:13
constexpr unsigned g_size2
Definition idx.h:71

◆ operator<<() [1/3]

std::ostream & PESA::operator<< ( std::ostream & os,
const T2BeamSpot & beamSpot )

Definition at line 15 of file T2BeamSpot.cxx.

16 {
17 os
18 << " status = " << beamSpot.status()
19 << ", x0 = " << beamSpot.posX()
20 << ", y0 = " << beamSpot.posY()
21 << ", z0 = " << beamSpot.posZ()
22 << ", sigmaX = " << beamSpot.sigmaX()
23 << ", sigmaY = " << beamSpot.sigmaY()
24 << ", sigmaZ = " << beamSpot.sigmaZ()
25 << ", tiltX = " << beamSpot.tiltX()
26 << ", tiltY = " << beamSpot.tiltY()
27 << ", sigmaXY = " << beamSpot.sigmaXY()
28 ;
29 return os;
30 }

◆ operator<<() [2/3]

std::ostream & PESA::operator<< ( std::ostream & os,
const T2Track & track )

Definition at line 16 of file T2Track.cxx.

17 {
18 os
19 << "Track pT = " << track.Pt () << '\n'
20 << "Track eta = " << track.Eta () << '\n'
21 << "Track phi = " << track.Phi () << '\n'
22 << "Track z0 = " << track.Z0 () << " +- " << track.Z0err() << '\n'
23 << "Track d0 = " << track.D0 () << " +- " << track.D0err() << '\n'
24 << "Track fit ndf = " << track.NDF () << '\n'
25 << "Track chi2/ndf = " << track.Qual () << '\n'
26 << "Track chi2 prob = " << track.Chi2Prob() << '\n'
27 << "Track Si hits = " << track.SiHits () << '\n'
28 << "Track Pixel hits= " << track.PIXHits () << '\n'
29 << "Track SCT hits = " << track.SCTHits () << '\n'
30 << "Track TRT hits = " << track.TRTHits () << '\n'
31 ;
32 return os;
33 }

◆ operator<<() [3/3]

std::ostream & PESA::operator<< ( std::ostream & os,
const T2Vertex & vertex )

Definition at line 82 of file T2Vertex.cxx.

83 {
84 os
85 << "Vertex x +/- dx = " << vertex.X() << " +/- " << vertex.Xerr() << '\n'
86 << "Vertex y +/- dy = " << vertex.Y() << " +/- " << vertex.Yerr() << '\n'
87 << "Vertex z +/- dz = " << vertex.Z() << " +/- " << vertex.Zerr() << '\n'
88 << "Vertex N tracks = " << vertex.NTrks() << '\n'
89 << "Vertex fit mass = " << vertex.Mass() << '\n'
90 << "Vertex fit qual = " << vertex.Qual() << '\n'
91 << "Vertex fit prob = " << vertex.Chi2Prob() << '\n'
92 ;
93 return os;
94 }

◆ tiltedBeamPositionAtZPoint()

double PESA::tiltedBeamPositionAtZPoint ( double Zref,
double nominalZPosition,
double nominalTransversePosition,
double tilt )

Calculate the tilted beam position at Z != 0

Definition at line 41 of file T2Vertex.cxx.

43 {
45 return nominalTransversePosition + tan(tilt) * (Zref-nominalZPosition);
46 }

◆ vertexChi2Prob()

double PESA::vertexChi2Prob ( const T2Vertex & vertex)

Definition at line 27 of file T2Vertex.cxx.

28 {
29 // FIXME: unify with trackChi2Prob()
30 double chi2Prob = 0.;
31 const int ndf = vertex.NDF();
32 const double chi2 = vertex.Qual() * vertex.NDF();
33 if ( ndf > 0 && chi2 > 0. && ! std::isinf( chi2 ) )
34 {
35 chi2Prob = TMath::Prob(chi2,ndf);
36 }
37 return chi2Prob;
38 }
double chi2(TH1 *h0, TH1 *h1)

◆ vertexSumPt()

double PESA::vertexSumPt ( const TrackCollection & tracks)

Definition at line 71 of file T2Vertex.cxx.

72 {
73 return accumulate( tracks.begin(), tracks.end(), 0., TrkSumOf< TrkTrackPt >() );
74 }
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.

◆ vertexSumPt2()

double PESA::vertexSumPt2 ( const TrackCollection & tracks)

Definition at line 77 of file T2Vertex.cxx.

78 {
79 return sqrt( accumulate( tracks.begin(), tracks.end(), 0., TrkSumOf< TrkTrackPt2 >() ) );
80 }

Variable Documentation

◆ g_order

std::int8_t PESA::g_order[3][3][3][3]
constexpr

Definition at line 13 of file idx.h.

13 {
14
15{
16 {{ 0, 1, 2 }, // Bx**0, By**0, tx**0, ty**0..ty**2
17 { 3, 4, -1 }, // Bx**0, By**0, tx**1, ty**0..ty**2
18 { 5, -1, -1 }}, // Bx**0, By**0, tx**2, ty**0..ty**2
19
20 {{ 6, 7, -1 }, // Bx**0, By**1, tx**0, ty**0..ty**2
21 { 8, -1, -1 }, // Bx**0, By**1, tx**1, ty**0..ty**2
22 { -1, -1, -1 }}, // Bx**0, By**1, tx**2, ty**0..ty**2
23
24 {{ 9, -1, -1 }, // Bx**0, By**2, tx**0, ty**0..ty**2
25 { -1, -1, -1 }, // Bx**0, By**2, tx**1, ty**0..ty**2
26 { -1, -1, -1 }}, // Bx**0, By**2, tx**2, ty**0..ty**2
27},
28
29{
30 {{ 10, 11, -1 }, // Bx**1, By**0, tx**0, ty**0..ty**2
31 { 12, -1, -1 }, // Bx**1, By**0, tx**1, ty**0..ty**2
32 { -1, -1, -1 }}, // Bx**1, By**0, tx**2, ty**0..ty**2
33
34 {{ 13, -1, -1 }, // Bx**1, By**1, tx**0, ty**0..ty**2
35 { -1, -1, -1 }, // Bx**1, By**1, tx**1, ty**0..ty**2
36 { -1, -1, -1 }}, // Bx**1, By**1, tx**2, ty**0..ty**2
37
38 {{ -1, -1, -1 }, // Bx**1, By**2, tx**0, ty**0..ty**2
39 { -1, -1, -1 }, // Bx**1, By**2, tx**1, ty**0..ty**2
40 { -1, -1, -1 }}, // Bx**1, By**2, tx**2, ty**0..ty**2
41},
42
43{
44 {{ 14, -1, -1 }, // Bx**2, By**0, tx**0, ty**0..ty**2
45 { -1, -1, -1 }, // Bx**2, By**0, tx**1, ty**0..ty**2
46 { -1, -1, -1 }}, // Bx**2, By**0, tx**2, ty**0..ty**2
47
48 {{ -1, -1, -1 }, // Bx**2, By**1, tx**0, ty**0..ty**2
49 { -1, -1, -1 }, // Bx**2, By**1, tx**1, ty**0..ty**2
50 { -1, -1, -1 }}, // Bx**2, By**1, tx**2, ty**0..ty**2
51
52 {{ -1, -1, -1 }, // Bx**2, By**2, tx**0, ty**0..ty**2
53 { -1, -1, -1 }, // Bx**2, By**2, tx**1, ty**0..ty**2
54 { -1, -1, -1 }}, // Bx**2, By**2, tx**2, ty**0..ty**2
55}
56};

◆ g_order2

std::int8_t PESA::g_order2[3][3]
constexpr
Initial value:
= {
{ 0, 1, 2 },
{ 3, 4, -1 },
{ 5, -1, -1 },
}

Definition at line 64 of file idx.h.

64 {
65 { 0, 1, 2 }, // Bx**0, By**0, tx**0, ty**0..ty**2
66 { 3, 4, -1 }, // Bx**0, By**0, tx**1, ty**0..ty**2
67 { 5, -1, -1 }, // Bx**0, By**0, tx**2, ty**0..ty**2
68};

◆ g_size

unsigned PESA::g_size = 15 + 1
constexpr

Definition at line 60 of file idx.h.

◆ g_size2

unsigned PESA::g_size2 = 6
constexpr

Definition at line 71 of file idx.h.

◆ nbins

unsigned PESA::nbins
constexpr
Initial value:
=
+ 1
+ 1
+ 1
+ 1
constexpr unsigned g_size
Definition idx.h:60

Definition at line 73 of file idx.h.