9 template <
unsigned int N>
12 const std::vector<RefCountedVertexTrack> & tks,
14 : theVertexState(pos, posErr),
15 theChiSquared(totalChiSq), theNDF(0), theNDFAvailable(
false),
16 theTracks(tks), theCovMapAvailable(
false), withPrior(
false),
22 template <
unsigned int N>
26 const std::vector<RefCountedVertexTrack> & tks,
37 template <
unsigned int N>
40 const std::vector<RefCountedVertexTrack> & tks,
49 template <
unsigned int N>
53 const std::vector<RefCountedVertexTrack> & tks,
63 template <
unsigned int N>
66 const std::vector<RefCountedVertexTrack> & tks,
75 template <
unsigned int N>
78 const std::vector<RefCountedVertexTrack> & tks,
86 template <
unsigned int N>
88 const std::vector<RefCountedVertexTrack> & tks,
98 template <
unsigned int N>
100 const std::vector<RefCountedVertexTrack> & tks,
112 template <
unsigned int N>
115 const std::vector<RefCountedVertexTrack> & tks,
125 template <
unsigned int N>
130 const std::vector<RefCountedVertexTrack> & tks,
139 template <
unsigned int N>
146 const std::vector<RefCountedVertexTrack> & tks,
157 template <
unsigned int N>
162 const std::vector<RefCountedVertexTrack> & tks,
171 template <
unsigned int N>
178 const std::vector<RefCountedVertexTrack> & tks,
189 template <
unsigned int N>
194 const std::vector<RefCountedVertexTrack> & tks,
203 template <
unsigned int N>
208 const std::vector<RefCountedVertexTrack> & tks,
217 template <
unsigned int N>
220 const std::vector<RefCountedVertexTrack> & tks,
232 template <
unsigned int N>
239 template <
unsigned int N>
245 template <
unsigned int N>
251 template <
unsigned int N>
257 template <
unsigned int N>
264 template <
unsigned int N>
270 template <
unsigned int N>
277 template <
unsigned int N>
283 template <
unsigned int N>
289 template <
unsigned int N>
297 template <
unsigned int N>
301 for (
typename std::vector<RefCountedVertexTrack>::const_iterator itk =
theTracks.begin();
303 theNDF += (**itk).weight();
312 template <
unsigned int N>
318 throw VertexException(
"CachingVertex::TkTkCovariance requested before been calculated");
333 typename TrackToTrackMap::const_iterator it =
theCovMap.find(tr1);
336 typename TrackMap::const_iterator nit = tm.find(tr2);
337 if (nit != tm.end()) {
338 if (transp)
return( ROOT::Math::Transpose(nit->second) );
339 else return( nit->second);
342 throw VertexException(
"CachingVertex::requested TkTkCovariance does not exist");
346 throw VertexException(
"CachingVertex::requested TkTkCovariance does not exist");
351 template <
unsigned int N>
357 typedef std::map<reco::TransientTrack, float> TransientTrackToFloatMap;
360 std::vector<reco::TransientTrack> ttVect;
362 std::vector<reco::TransientTrack> refTTVect;
363 TransientTrackToFloatMap theWeightMap;
367 for (
typename std::vector<RefCountedVertexTrack>::const_iterator
i =
theTracks.begin();
373 ttVect.push_back(t1);
375 theWeightMap[t1] = (**i).weight();
379 for (
typename std::vector<RefCountedVertexTrack>::const_iterator j = (
i+1);
385 if ((**i).refittedStateAvailable()) {
386 refTTVect.push_back( (**i).refittedState()->transientTrack()) ;
VertexState thePriorVertexState
VertexState const & vertexState() const
TrackToTrackMap theCovMap
std::map< reco::TransientTrack, TTmap > TTtoTTmap
GlobalPoint position() const
GlobalError error4D() const
GlobalWeight weight4D() const
AlgebraicVector3 weightTimesPosition() const
GlobalWeight weight() const
AlgebraicVector3 weightTimesPosition() const
float totalChiSquared() const
ROOT::Math::SVector< double, 3 > AlgebraicVector3
std::map< RefCountedVertexTrack, AlgebraicMatrixMM > TrackMap
float degreesOfFreedom() const
std::vector< RefCountedVertexTrack > theTracks
GlobalWeight weight() const
AlgebraicVector4 weightTimesPosition4D() const
GlobalError error4D() const
VertexState const & priorVertexState() const
AlgebraicMatrixMM tkToTkCovariance(const RefCountedVertexTrack t1, const RefCountedVertexTrack t2) const
GlobalWeight weight4D() const
bool tkToTkCovarianceIsAvailable() const
GlobalPoint position() const
AlgebraicVector4 weightTimesPosition4D() const
ROOT::Math::SMatrix< double, N-2, N-2, ROOT::Math::MatRepStd< double, N-2, N-2 > > AlgebraicMatrixMM
GlobalError error() const
std::vector< reco::TransientTrack > const & refittedTracks() const
ROOT::Math::SVector< double, 4 > AlgebraicVector4
GlobalError error() const
AlgebraicMatrix33 tkToTkCovariance(const reco::TransientTrack &t1, const reco::TransientTrack &t2) const
TransientTrackToFloatMap weightMap() const
VertexState theVertexState