CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TransientVertex Class Reference

#include <TransientVertex.h>

Public Types

typedef std::map
< reco::TransientTrack, float > 
TransientTrackToFloatMap
 

Public Member Functions

float degreesOfFreedom () const
 
bool hasPrior () const
 
bool hasRefittedTracks () const
 
bool hasTrackWeight () const
 
bool isValid () const
 
float normalisedChiSquared () const
 
 operator reco::Vertex () const
 
 operator reco::VertexCompositePtrCandidate () const
 
reco::TransientTrack originalTrack (const reco::TransientTrack &refTrack) const
 
std::vector
< reco::TransientTrack > const & 
originalTracks () const
 
GlobalPoint position () const
 
GlobalError positionError () const
 
GlobalError priorError () const
 
GlobalPoint priorPosition () const
 
reco::TransientTrack refittedTrack (const reco::TransientTrack &track) const
 
std::vector
< reco::TransientTrack > const & 
refittedTracks () const
 
void refittedTracks (const std::vector< reco::TransientTrack > &refittedTracks)
 
AlgebraicMatrix33 tkToTkCovariance (const reco::TransientTrack &t1, const reco::TransientTrack &t2) const
 
void tkToTkCovariance (const TTtoTTmap &covMap)
 
bool tkToTkCovarianceIsAvailable () const
 
float totalChiSquared () const
 
float trackWeight (const reco::TransientTrack &track) const
 
 TransientVertex ()
 
 TransientVertex (const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const VertexState &prior, const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const VertexState &prior, const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
VertexState const & vertexState () const
 
TransientTrackToFloatMap weightMap () const
 
void weightMap (const TransientTrackToFloatMap &theMap)
 

Private Attributes

float theChi2
 
TTtoTTmap theCovMap
 
bool theCovMapAvailable
 
float theNDF
 
std::vector< reco::TransientTracktheOriginalTracks
 
VertexState thePriorVertexState
 
std::vector< reco::TransientTracktheRefittedTracks
 
VertexState theVertexState
 
TransientTrackToFloatMap theWeightMap
 
bool theWeightMapIsAvailable
 
bool vertexValid
 
bool withPrior
 
bool withRefittedTracks
 

Detailed Description

Definition at line 18 of file TransientVertex.h.

Member Typedef Documentation

Definition at line 22 of file TransientVertex.h.

Constructor & Destructor Documentation

TransientVertex::TransientVertex ( )

Empty constructor, produces invalid vertex

Definition at line 11 of file TransientVertex.cc.

12  theChi2(0), theNDF(0), vertexValid(false), withPrior(false),
14  withRefittedTracks(false)
15 {}
std::vector< reco::TransientTrack > theOriginalTracks
VertexState theVertexState
TransientVertex::TransientVertex ( const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks and its chi-squared. The number of degrees of freedom is equal to 2*nb of tracks - 3.

Definition at line 18 of file TransientVertex.cc.

References theNDF, and theOriginalTracks.

19  :
20  theVertexState(pos, posError), theOriginalTracks(tracks),
21  theChi2(chi2), theNDF(0), vertexValid(true), withPrior(false),
23  withRefittedTracks(false)
24 {
25  theNDF = 2.*theOriginalTracks.size() - 3.;
26  // addTracks(tracks);
27 }
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom. The ndf can be a float.

Definition at line 30 of file TransientVertex.cc.

31  :
32  theVertexState(pos, posError), theOriginalTracks(tracks),
33  theChi2(chi2), theNDF(ndf), vertexValid(true), withPrior(false),
35  withRefittedTracks(false)
36 {
37  // addTracks(tracks);
38 }
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const GlobalPoint priorPos,
const GlobalError priorErr,
const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks and the chi-squared. Since the prior brings information on 3 coordinates, the number of degrees of freedom is equal to 2*nb of tracks.

Definition at line 41 of file TransientVertex.cc.

References theNDF, and theOriginalTracks.

43  :
44  thePriorVertexState(priorPos, priorErr), theVertexState(pos, posError),
47  withRefittedTracks(false)
48 {
49  theNDF = 2.*theOriginalTracks.size();
50  // addTracks(tracks);
51 }
VertexState thePriorVertexState
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const GlobalPoint priorPos,
const GlobalError priorErr,
const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks, the chi-squared and the number of degrees of freedom. The ndf can be a float.

Definition at line 54 of file TransientVertex.cc.

56  :
57  thePriorVertexState(priorPos, priorErr), theVertexState(pos, posError),
58  theOriginalTracks(tracks), theChi2(chi2), theNDF(ndf), vertexValid(true),
60  withRefittedTracks(false)
61 {
62  // addTracks(tracks);
63 }
VertexState thePriorVertexState
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks and its chi-squared. The number of degrees of freedom is equal to 2*nb of tracks - 3.

Definition at line 66 of file TransientVertex.cc.

References theNDF, and theOriginalTracks.

67  :
69  theChi2(chi2), theNDF(0), vertexValid(true), withPrior(false),
71  withRefittedTracks(false)
72 {
73  theNDF = 2.*theOriginalTracks.size() - 3.;
74 }
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom. The ndf can be a float.

Definition at line 77 of file TransientVertex.cc.

78  :
80  theChi2(chi2), theNDF(ndf), vertexValid(true), withPrior(false),
82  withRefittedTracks(false)
83 {
84  // addTracks(tracks);
85 }
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const VertexState prior,
const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks and the chi-squared. Since the prior brings information on 3 coordinates, the number of degrees of freedom is equal to 2*nb of tracks.

Definition at line 88 of file TransientVertex.cc.

References theNDF, and theOriginalTracks.

91  :
92  thePriorVertexState(prior), theVertexState(state),
95  withRefittedTracks(false)
96 {
97  theNDF = 2.*theOriginalTracks.size();
98  // addTracks(tracks);
99 }
VertexState thePriorVertexState
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState
TransientVertex::TransientVertex ( const VertexState prior,
const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks, the chi-squared and the number of degrees of freedom. The ndf can be a float.

Definition at line 102 of file TransientVertex.cc.

105  :
106  thePriorVertexState(prior), theVertexState(state),
107  theOriginalTracks(tracks), theChi2(chi2), theNDF(ndf), vertexValid(true),
108  withPrior(true), theWeightMapIsAvailable(false),
110 {
111  // addTracks(tracks);
112 }
VertexState thePriorVertexState
std::vector< reco::TransientTrack > theOriginalTracks
tuple tracks
Definition: testEve_cfg.py:39
VertexState theVertexState

Member Function Documentation

float TransientVertex::degreesOfFreedom ( ) const
inline
bool TransientVertex::hasPrior ( ) const
inline

Definition at line 118 of file TransientVertex.h.

References withPrior.

Referenced by AdaptiveVertexReconstructor::cleanUp().

118 { return withPrior; }
bool TransientVertex::hasRefittedTracks ( ) const
inline

Returns true if at for at least one of the original tracks, the refitted track is available

Definition at line 150 of file TransientVertex.h.

References withRefittedTracks.

Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), PFTauSecondaryVertexProducer::produce(), and HPSPFRecoTauAlgorithm::refitThreeProng().

150 { return withRefittedTracks; }
bool TransientVertex::hasTrackWeight ( ) const
inline

Returns true if the track-weights are available.

Definition at line 181 of file TransientVertex.h.

References theWeightMapIsAvailable.

Referenced by PrimaryVertexValidation::analyze().

181 { return theWeightMapIsAvailable; }
bool TransientVertex::isValid ( void  ) const
inline
float TransientVertex::normalisedChiSquared ( ) const
inline

Definition at line 126 of file TransientVertex.h.

References degreesOfFreedom(), and totalChiSquared().

Referenced by PrimaryVertexValidation::analyze(), HLTmmkkFilter::hltFilter(), and HLTmmkFilter::hltFilter().

126  {
127  return totalChiSquared() / degreesOfFreedom();
128  }
float totalChiSquared() const
float degreesOfFreedom() const
TransientVertex::operator reco::Vertex ( ) const

Definition at line 208 of file TransientVertex.cc.

References reco::Vertex::add(), i, operator reco::Vertex(), and trackWeight().

Referenced by operator reco::Vertex().

209 {
210  //If the vertex is invalid, return an invalid TV !
211  if (!isValid()) return Vertex();
212 
214 // RecoVertex::convertError(theVertexState.error()),
217  for (std::vector<TransientTrack>::const_iterator i = theOriginalTracks.begin();
218  i != theOriginalTracks.end(); ++i) {
219 // const TrackTransientTrack* ttt = dynamic_cast<const TrackTransientTrack*>((*i).basicTransientTrack());
220 // if ((ttt!=0) && (ttt->persistentTrackRef().isNonnull()))
221 // {
222 // TrackRef tr = ttt->persistentTrackRef();
223 // TrackBaseRef tbr(tr);
224  if (withRefittedTracks) {
225 
226  vertex.add((*i).trackBaseRef(), refittedTrack(*i).track(), trackWeight ( *i ) );
227  } else {
228  vertex.add((*i).trackBaseRef(), trackWeight ( *i ) );
229  }
230  //}
231  }
232  return vertex;
233 }
int i
Definition: DBlmapReader.cc:9
float totalChiSquared() const
GlobalPoint position() const
Definition: VertexState.h:50
const AlgebraicSymMatrix33 & matrix_new() const
reco::TransientTrack refittedTrack(const reco::TransientTrack &track) const
float degreesOfFreedom() const
math::XYZPoint Point
point in the space
Definition: Vertex.h:39
std::vector< reco::TransientTrack > theOriginalTracks
float trackWeight(const reco::TransientTrack &track) const
void add(const TrackBaseRef &r, float w=1.0)
add a reference to a Track
const Track & track() const
VertexState theVertexState
GlobalError error() const
Definition: VertexState.h:55
bool isValid() const
TransientVertex::operator reco::VertexCompositePtrCandidate ( ) const

Definition at line 235 of file TransientVertex.cc.

References reco::CandidatePtrTransientTrack::candidate(), relativeConstraints::error, p4, position, dt_dqm_sourceclient_common_cff::reco, reco::VertexCompositePtrCandidate::setCovariance(), trackWeight(), groupFilesInBlocks::tt, and x().

236 {
237 using namespace reco;
238  if (!isValid()) return VertexCompositePtrCandidate();
239 
240  VertexCompositePtrCandidate vtxCompPtrCand;
241 
242  vtxCompPtrCand.setCovariance(vertexState().error().matrix_new());
243  vtxCompPtrCand.setChi2AndNdof(totalChiSquared(), degreesOfFreedom());
244  vtxCompPtrCand.setVertex(Candidate::Point(position().x(),position().y(),position().z()));
245 
247  for(std::vector<reco::TransientTrack>::const_iterator tt = theOriginalTracks.begin(); tt != theOriginalTracks.end(); ++tt)
248  {
249  if (trackWeight(*tt) < 0.5)
250  continue;
251 
252  const CandidatePtrTransientTrack* cptt = dynamic_cast<const CandidatePtrTransientTrack*>(tt->basicTransientTrack());
253  if ( cptt==0 )
254  edm::LogError("DynamicCastingFailed") << "Casting of TransientTrack to CandidatePtrTransientTrack failed!";
255  else
256  {
257  p4 += cptt->candidate()->p4();
258  vtxCompPtrCand.addDaughter(cptt->candidate());
259  }
260  }
261 
262  //TODO: if has refitted tracks we should scale the candidate p4 to the refitted one
263  vtxCompPtrCand.setP4(p4);
264  return vtxCompPtrCand;
265 }
float totalChiSquared() const
float degreesOfFreedom() const
double p4[4]
Definition: TauolaWrapper.h:92
GlobalPoint position() const
std::vector< reco::TransientTrack > theOriginalTracks
float trackWeight(const reco::TransientTrack &track) const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
math::XYZPoint Point
point in the space
Definition: Candidate.h:41
VertexState const & vertexState() const
bool isValid() const
TransientTrack TransientVertex::originalTrack ( const reco::TransientTrack refTrack) const

Returns the original track which corresponds to a particular refitted Track Throws an exception if now refitted tracks are stored ot the track is not found in the list

Definition at line 184 of file TransientVertex.cc.

References spr::find(), theOriginalTracks, and theRefittedTracks.

185 {
186  if (theRefittedTracks.empty())
187  throw VertexException("No refitted tracks stored in vertex");
188  std::vector<TransientTrack>::const_iterator it =
189  find(theRefittedTracks.begin(), theRefittedTracks.end(), refTrack);
190  if (it==theRefittedTracks.end())
191  throw VertexException("Refitted track not found in list");
192  size_t pos = it - theRefittedTracks.begin();
193  return theOriginalTracks[pos];
194 }
Common base class.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< reco::TransientTrack > theOriginalTracks
std::vector< reco::TransientTrack > theRefittedTracks
std::vector<reco::TransientTrack> const& TransientVertex::originalTracks ( ) const
inline

Access to the original tracks used to make the vertex. Returns track container by value.

Definition at line 141 of file TransientVertex.h.

References theOriginalTracks.

Referenced by AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), VertexFitterResult::fill(), VertexHigherPtSquared::operator()(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), TrimmedVertexFitter::vertex(), and MultiVertexFitter::vertices().

141  {
142  return theOriginalTracks;
143  }
std::vector< reco::TransientTrack > theOriginalTracks
GlobalPoint TransientVertex::position ( ) const
inline
GlobalError TransientVertex::positionError ( ) const
inline
GlobalError TransientVertex::priorError ( ) const
inline

Definition at line 117 of file TransientVertex.h.

References VertexState::error(), and thePriorVertexState.

Referenced by AdaptiveVertexReconstructor::cleanUp().

117 { return thePriorVertexState.error(); }
VertexState thePriorVertexState
GlobalError error() const
Definition: VertexState.h:55
GlobalPoint TransientVertex::priorPosition ( ) const
inline

Definition at line 116 of file TransientVertex.h.

References VertexState::position(), and thePriorVertexState.

Referenced by AdaptiveVertexReconstructor::cleanUp().

116 { return thePriorVertexState.position(); }
GlobalPoint position() const
Definition: VertexState.h:50
VertexState thePriorVertexState
TransientTrack TransientVertex::refittedTrack ( const reco::TransientTrack track) const

Returns the refitted track which corresponds to a particular original Track Throws an exception if now refitted tracks are stored ot the track is not found in the list

Definition at line 196 of file TransientVertex.cc.

References spr::find(), theOriginalTracks, and theRefittedTracks.

Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().

197 {
198  if (theRefittedTracks.empty())
199  throw VertexException("No refitted tracks stored in vertex");
200  std::vector<TransientTrack>::const_iterator it =
201  find(theOriginalTracks.begin(), theOriginalTracks.end(), track);
202  if (it==theOriginalTracks.end())
203  throw VertexException("Track not found in list");
204  size_t pos = it - theOriginalTracks.begin();
205  return theRefittedTracks[pos];
206 }
Common base class.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< reco::TransientTrack > theOriginalTracks
std::vector< reco::TransientTrack > theRefittedTracks
std::vector<reco::TransientTrack> const& TransientVertex::refittedTracks ( ) const
inline

Access to the refitted tracks used to make the vertex. Returns track container by value.

Definition at line 156 of file TransientVertex.h.

References theRefittedTracks.

Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), CachingVertex< N >::operator TransientVertex(), PFTauSecondaryVertexProducer::produce(), refittedTracks(), HPSPFRecoTauAlgorithm::refitThreeProng(), CandCommonVertexFitterBase::set(), and PFCandCommonVertexFitterBase::set().

156  {
157  return theRefittedTracks;
158  }
std::vector< reco::TransientTrack > theRefittedTracks
void TransientVertex::refittedTracks ( const std::vector< reco::TransientTrack > &  refittedTracks)

Method to set the refitted tracks used to make the vertex.

Definition at line 122 of file TransientVertex.cc.

References refittedTracks(), theRefittedTracks, and withRefittedTracks.

124 {
125  if (refittedTracks.empty())
126  throw VertexException("TransientVertex::refittedTracks: No refitted tracks stored in input container");
128  withRefittedTracks = true;
129 }
Common base class.
std::vector< reco::TransientTrack > const & refittedTracks() const
std::vector< reco::TransientTrack > theRefittedTracks
AlgebraicMatrix33 TransientVertex::tkToTkCovariance ( const reco::TransientTrack t1,
const reco::TransientTrack t2 
) const

Returns the Track-to-track covariance matrix for two specified tracks. In case these do not exist, or one of the tracks does not belong to the vertex, an exception is thrown.

Definition at line 153 of file TransientVertex.cc.

References theCovMap, and theCovMapAvailable.

Referenced by CachingVertex< N >::operator TransientVertex().

154 {
155  if (!theCovMapAvailable) {
156  throw VertexException("TransientVertex::Track-to-track covariance matrices not available");
157  }
158  const TransientTrack* tr1;
159  const TransientTrack* tr2;
160  if (t1<t2) {
161  tr1 = &t1;
162  tr2 = &t2;
163  } else {
164  tr1 = &t2;
165  tr2 = &t1;
166  }
167  TTtoTTmap::const_iterator it = theCovMap.find(*tr1);
168  if (it != theCovMap.end()) {
169  const TTmap & tm = it->second;
170  TTmap::const_iterator nit = tm.find(*tr2);
171  if (nit != tm.end()) {
172  return( nit->second);
173  }
174  else {
175  throw VertexException("TransientVertex::requested Track-to-track covariance matrix does not exist");
176  }
177  }
178  else {
179  throw VertexException("TransientVertex::requested Track-to-track covariance matrix does not exist");
180  }
181 }
Common base class.
std::map< reco::TransientTrack, AlgebraicMatrix33 > TTmap
Definition: TTtoTTmap.h:11
void TransientVertex::tkToTkCovariance ( const TTtoTTmap covMap)

Definition at line 132 of file TransientVertex.cc.

References theCovMap, and theCovMapAvailable.

133 {
134  theCovMap = covMap;
135  theCovMapAvailable = true;
136 }
bool TransientVertex::tkToTkCovarianceIsAvailable ( ) const
inline

Returns true if the Track-to-track covariance matrices have been calculated.

Definition at line 200 of file TransientVertex.h.

References theCovMapAvailable.

200 { return theCovMapAvailable; }
float TransientVertex::totalChiSquared ( ) const
inline
float TransientVertex::trackWeight ( const reco::TransientTrack track) const

Returns the weight with which a track has been used in the fit. If the track is not present in the list, it is obviously not used, and this method returns a weight of 0. If this information has not been provided at construction, a weight of 1.0 is assumed for all tracks used and present in the originalTracks() std::vector.

Definition at line 138 of file TransientVertex.cc.

References spr::find(), theOriginalTracks, theWeightMap, and theWeightMapIsAvailable.

Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), PFDisplacedVertexFinder::fitVertexFromSeed(), and TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()().

138  {
140  std::vector<TransientTrack>::const_iterator foundTrack = find(theOriginalTracks.begin(),
141  theOriginalTracks.end(), track);
142  return ((foundTrack != theOriginalTracks.end()) ? 1. : 0.);
143  }
144  TransientTrackToFloatMap::const_iterator it = theWeightMap.find(track);
145  if (it != theWeightMap.end()) {
146  return(it->second);
147  }
148  return 0.;
149 
150 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
TransientTrackToFloatMap theWeightMap
std::vector< reco::TransientTrack > theOriginalTracks
VertexState const& TransientVertex::vertexState ( ) const
inline

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom, and the track weights. The ndf can be a float.Access methods

Definition at line 113 of file TransientVertex.h.

References theVertexState.

Referenced by AdaptiveVertexReconstructor::cleanUp(), and TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()().

113 { return theVertexState; }
VertexState theVertexState
TransientTrackToFloatMap TransientVertex::weightMap ( ) const
inline

Definition at line 193 of file TransientVertex.h.

References theWeightMap.

Referenced by AdaptiveVertexReconstructor::cleanUp(), and CachingVertex< N >::operator TransientVertex().

193 { return theWeightMap; }
TransientTrackToFloatMap theWeightMap
void TransientVertex::weightMap ( const TransientTrackToFloatMap theMap)

Definition at line 114 of file TransientVertex.cc.

References theWeightMap, and theWeightMapIsAvailable.

115 {
116  theWeightMap = theMap;
118 // removeTracks(); // remove trackrefs from reco::Vertex
119 // addTracks( theOriginalTracks );
120 }
TransientTrackToFloatMap theWeightMap

Member Data Documentation

float TransientVertex::theChi2
private

Definition at line 226 of file TransientVertex.h.

Referenced by totalChiSquared().

TTtoTTmap TransientVertex::theCovMap
private

Definition at line 231 of file TransientVertex.h.

Referenced by tkToTkCovariance().

bool TransientVertex::theCovMapAvailable
private

Definition at line 229 of file TransientVertex.h.

Referenced by tkToTkCovariance(), and tkToTkCovarianceIsAvailable().

float TransientVertex::theNDF
private

Definition at line 227 of file TransientVertex.h.

Referenced by degreesOfFreedom(), and TransientVertex().

std::vector<reco::TransientTrack> TransientVertex::theOriginalTracks
private
VertexState TransientVertex::thePriorVertexState
mutableprivate

Definition at line 217 of file TransientVertex.h.

Referenced by priorError(), and priorPosition().

std::vector<reco::TransientTrack> TransientVertex::theRefittedTracks
private

Definition at line 223 of file TransientVertex.h.

Referenced by originalTrack(), refittedTrack(), and refittedTracks().

VertexState TransientVertex::theVertexState
mutableprivate

Definition at line 218 of file TransientVertex.h.

Referenced by position(), positionError(), and vertexState().

TransientTrackToFloatMap TransientVertex::theWeightMap
private

Definition at line 232 of file TransientVertex.h.

Referenced by trackWeight(), and weightMap().

bool TransientVertex::theWeightMapIsAvailable
private

Definition at line 229 of file TransientVertex.h.

Referenced by hasTrackWeight(), trackWeight(), and weightMap().

bool TransientVertex::vertexValid
private

Definition at line 228 of file TransientVertex.h.

Referenced by isValid().

bool TransientVertex::withPrior
private

Definition at line 229 of file TransientVertex.h.

Referenced by hasPrior().

bool TransientVertex::withRefittedTracks
private

Definition at line 230 of file TransientVertex.h.

Referenced by hasRefittedTracks(), and refittedTracks().