21 srcTime_( sumes.consumes<
edm::ValueMap<
float> >(conf.getParameter<
edm::InputTag>(
"timeValueMap")) ),
40 "TrackTimingImporter");
52 for(
auto&
elem : elems ) {
54 const auto& ref =
elem->trackRef();
55 if (
time.contains(ref.id())) {
56 elem->setTime(
time[ref], timeErr[ref] );
60 <<
"Track with pT / eta " << ref->pt() <<
" / " << ref->eta()
61 <<
" has time: " <<
elem->time() <<
" +/- " <<
elem->timeError() << std::endl;
65 if (timeGsf.contains(ref.id())) {
66 elem->setTime( timeGsf[ref], timeErrGsf[ref] );
70 <<
"Track with pT / eta " << ref->pt() <<
" / " << ref->eta()
71 <<
" has time: " <<
elem->time() <<
" +/- " <<
elem->timeError() << std::endl;
edm::EDGetTokenT< edm::ValueMap< float > > srcTimeErrorGsf_
edm::EDGetTokenT< edm::ValueMap< float > > srcTimeError_
edm::EDGetTokenT< edm::ValueMap< float > > srcTime_
Container::value_type value_type
bool get(ProductID const &oid, Handle< PROD > &result) const
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_