75 cout <<
"Reconstructing event number: " << iEvent.
id() <<
"\n";
83 <<
"Couln't find track collection: " << iEvent.
id()
88 <<
"Found: " << (*tks).size() <<
" reconstructed tracks" <<
"\n";
89 cout <<
"got " << (*tks).size() <<
" tracks " << endl;
96 vector<TransientTrack> t_tks = (*theB).build(tks);
98 cout <<
"Found: " << t_tks.size() <<
" reconstructed tracks" <<
"\n";
101 if (t_tks.size() > 3) {
110 vector<TransientTrack> ttv;
111 ttv.push_back(t_tks[0]); ttv.push_back(t_tks[1]); ttv.push_back(t_tks[2]);ttv.push_back(t_tks[3]);
130 float muon_sigma = 0.0000001;
131 float kaon_sigma = 0.000016;
138 vector<RefCountedKinematicParticle> muonParticles;
139 vector<RefCountedKinematicParticle> phiParticles;
140 vector<RefCountedKinematicParticle> allParticles;
141 muonParticles.push_back(pFactory.
particle (ttMuPlus,muon_mass,chi,ndf,muon_sigma));
142 muonParticles.push_back(pFactory.
particle (ttMuMinus,muon_mass,chi,ndf,muon_sigma));
143 allParticles.push_back(pFactory.
particle (ttMuPlus,muon_mass,chi,ndf,muon_sigma));
144 allParticles.push_back(pFactory.
particle (ttMuMinus,muon_mass,chi,ndf,muon_sigma));
146 phiParticles.push_back(pFactory.
particle (ttKPlus,kaon_mass,chi,ndf,kaon_sigma));
147 phiParticles.push_back(pFactory.
particle (ttKMinus,kaon_mass,chi,ndf,kaon_sigma));
148 allParticles.push_back(pFactory.
particle (ttKPlus,kaon_mass,chi,ndf,kaon_sigma));
149 allParticles.push_back(pFactory.
particle (ttKMinus,kaon_mass,chi,ndf,kaon_sigma));
157 cout <<
"Simple vertex fit with KinematicParticleVertexFitter:\n";
176 cout <<
"\nGlobal fit done:\n";
189 float jp_m_sigma = 0.00004;
193 jpTree = csFitter.
fit(jpsi_c2,jpTree);
197 jpTree->movePointerToTheTop();
199 phiParticles.push_back(jpsi_part);
205 cout <<
"Sequential fit done:\n";
228 cout <<
"Exception during event number: " << iEvent.
id()
229 <<
"\n" << err.what() <<
"\n";
edm::EDGetTokenT< reco::TrackCollection > token_tracks
RefCountedKinematicTree fit(const std::vector< RefCountedKinematicParticle > &part)
void printout(const RefCountedKinematicVertex &myVertex) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< RefCountedKinematicTree > fit(KinematicConstraint *cs, const std::vector< RefCountedKinematicTree > &trees) const
GlobalPoint position() const
RefCountedKinematicTree fit(const std::vector< RefCountedKinematicParticle > &particles) const
RefCountedKinematicParticle particle(const reco::TransientTrack &initialTrack, const ParticleMass &massGuess, float chiSquared, float degreesOfFr, float &m_sigma) const