32 consumes<reco::TrackToTrackingParticleAssociator>(
edm::InputTag(
"trackAssociatorByChi2"));
50 tree = std::make_unique<SimpleVertexTree>(
"VertexFitter", &iSetup.
getData(
estoken_MF));
53 edm::LogInfo(
"RecoVertex/KVFTest") <<
"Reconstructing event number: " << iEvent.
id() <<
"\n";
60 edm::LogInfo(
"RecoVertex/KVFTest") <<
"Exception during event number: " << iEvent.
id() <<
"\n";
62 edm::LogInfo(
"RecoVertex/KVFTest") <<
"Found: " << (*tks).size() <<
" reconstructed tracks"
64 edm::LogPrint(
"RecoVertex/KVFTest") <<
"got " << (*tks).size() <<
" tracks " << std::endl;
71 std::vector<TransientTrack> t_tks = theB->build(tks);
73 edm::LogInfo(
"RecoVertex/KVFTest") <<
"Found: " << t_tks.size() <<
" reconstructed tracks"
77 if (t_tks.size() > 1) {
89 edm::LogInfo(
"RecoVertex/KVFTest") <<
"Exception during event number: " << iEvent.
id() <<
"\n";
93 tree->fill(tv, &sv, &recSimColl);
120 return *(tPC.begin());
T getUntrackedParameter(std::string const &, T const &) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > estoken_MF
TrackingVertex getSimVertex(const edm::Event &iEvent) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::TrackCollection > token_tracks
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > token_associatorForParamAtPca
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &tracks) const override
bool getData(T &iHolder) const
edm::EDGetTokenT< TrackingParticleCollection > token_TrackTruth
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > estoken_TTB
GlobalPoint position() const
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
std::unique_ptr< SimpleVertexTree > tree
T const * product() const
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
std::vector< TrackingVertex > TrackingVertexCollection
T getParameter(std::string const &) const
KVFTest(const edm::ParameterSet &)
edm::ParameterSet kvfPSet
std::vector< TrackingParticle > TrackingParticleCollection