ATLAS Offline Software
SecVtxInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  SecVtxInfo.cxx - Description
7  -------------------
8  begin : Spring 2004
9  authors : Andreas Wildauer (CERN PH-ATC), Fredrik Akesson (CERN PH-ATC)
10  email : andreas.wildauer@cern.ch, fredrik.akesson@cern.ch
11  changes :
12 
13  ***************************************************************************/
14 
15 #include "JetTagInfo/SecVtxInfo.h"
16 
17 namespace Analysis
18 {
19 
21 SecVtxInfo::SecVtxInfo() : BaseTagInfo(),
22  m_numSelTracksForFit(-1),
23  m_dist(-1.),
24  m_rphidist(-1.),
25  m_prob(-1.),
26  m_mass(-1.),
27  m_energyFraction(-1.),
28  m_fittedTrks(std::vector<const Rec::TrackParticle*>()),
29  m_mult(-1),
30  m_fitType(NoFit),
31  m_secVtxPos(Trk::RecVertex()),
32  m_NGood2TrackVertices(-1)
33  {
34  m_fittedTrks.clear();
35  }
36 
38 SecVtxInfo::SecVtxInfo(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType),
39  m_numSelTracksForFit(-1),
40  m_dist(-1.),
41  m_rphidist(-1.),
42  m_prob(-1.),
43  m_mass(-1.),
44  m_energyFraction(-1.),
45  m_fittedTrks(std::vector<const Rec::TrackParticle*>()),
46  m_mult(-1),
47  m_fitType(NoFit),
48  m_secVtxPos(Trk::RecVertex()),
49  m_NGood2TrackVertices(-1)
50  {
51  m_fittedTrks.clear();
52  }
53 
56  m_numSelTracksForFit(rhs.m_numSelTracksForFit),
57  m_dist(rhs.m_dist),
58  m_rphidist(rhs.m_rphidist),
59  m_prob(rhs.m_prob),
60  m_mass(rhs.m_mass),
61  m_energyFraction(rhs.m_energyFraction),
62  m_fittedTrks(rhs.m_fittedTrks), // copies pointers only (tracks are in SG!)
63  m_mult(rhs.m_mult),
64  m_fitType(rhs.m_fitType),
65  m_secVtxPos(rhs.m_secVtxPos),
66  m_NGood2TrackVertices(rhs.m_NGood2TrackVertices)
67  {}
68 
71 {
72  if (this!=&rhs)
73  {
76  m_dist=rhs.m_dist;
79  m_mass=rhs.m_mass;
81  m_fittedTrks=rhs.m_fittedTrks; // copies pointers only (tracks are in SG!)
82  m_mult=rhs.m_mult;
83  m_fitType=rhs.m_fitType;
86  }
87  return *this;
88 }
89 
92 {}
93 
94 }
Analysis::SecVtxInfo::m_prob
double m_prob
Definition: SecVtxInfo.h:128
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
Analysis::SecVtxInfo
The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet.
Definition: SecVtxInfo.h:60
Analysis::SecVtxInfo::m_secVtxPos
Trk::RecVertex m_secVtxPos
Definition: SecVtxInfo.h:134
Analysis::SecVtxInfo::m_fittedTrks
TrackVec m_fittedTrks
Definition: SecVtxInfo.h:131
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Analysis::SecVtxInfo::operator=
SecVtxInfo & operator=(const SecVtxInfo &rhs)
assigenment operator
Definition: SecVtxInfo.cxx:78
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
Analysis::SecVtxInfo::m_mult
int m_mult
Definition: SecVtxInfo.h:132
SecVtxInfo.h
Analysis::SecVtxInfo::m_NGood2TrackVertices
int m_NGood2TrackVertices
Definition: SecVtxInfo.h:135
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
vector
Definition: MultiHisto.h:13
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis::SecVtxInfo::m_rphidist
double m_rphidist
Definition: SecVtxInfo.h:127
Analysis::SecVtxInfo::m_numSelTracksForFit
int m_numSelTracksForFit
The number of tracks available for the sec.vtx.
Definition: SecVtxInfo.h:125
Analysis::SecVtxInfo::m_fitType
FitType m_fitType
Definition: SecVtxInfo.h:133
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SecVtxInfo::m_dist
double m_dist
Definition: SecVtxInfo.h:126
Analysis::SecVtxInfo::m_mass
double m_mass
Definition: SecVtxInfo.h:129
Analysis::SecVtxInfo::~SecVtxInfo
virtual ~SecVtxInfo()
default destructor
Definition: SecVtxInfo.cxx:99
Analysis::SecVtxInfo::SecVtxInfo
SecVtxInfo()
default constructor
Definition: SecVtxInfo.cxx:29
Analysis::SecVtxInfo::m_energyFraction
double m_energyFraction
Definition: SecVtxInfo.h:130