21 srcTime_( sumes.consumes<
edm::ValueMap<
float> >(conf.getParameter<
edm::InputTag>(
"timeValueMap")) ),
40 "TrackTimingImporter");
54 for(
auto&
elem : elems ) {
56 const auto& ref =
elem->trackRef();
57 if (timeH->contains(ref.id())) {
58 elem->setTime( (*timeH)[ref], (*timeErrH)[ref] );
62 <<
"Track with pT / eta " << ref->pt() <<
" / " << ref->eta()
63 <<
" has time: " <<
elem->time() <<
" +/- " <<
elem->timeError() << std::endl;
67 if (timeGsfH->contains(ref.id())) {
68 elem->setTime( (*timeGsfH)[ref], (*timeErrGsfH)[ref] );
72 <<
"Track with pT / eta " << ref->pt() <<
" / " << ref->eta()
73 <<
" has time: " <<
elem->time() <<
" +/- " <<
elem->timeError() << std::endl;
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::ValueMap< float > > srcTimeErrorGsf_
edm::EDGetTokenT< edm::ValueMap< float > > srcTimeError_
edm::EDGetTokenT< edm::ValueMap< float > > srcTime_
Container::value_type value_type
def elem(elemtype, innerHTML='', html_class='', kwargs)
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList
TrackTimingImporter(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
void importToBlock(const edm::Event &, ElementList &) const override
edm::EDGetTokenT< edm::ValueMap< float > > srcTimeGsf_