48 produces<edm::ValueMap<float>>(
"dist");
49 produces<edm::ValueMap<float>>(
"dcot");
50 produces<edm::ValueMap<float>>(
"convradius");
51 produces<edm::ValueMap<float>>(
"passConvRej");
68 float evt_bField = 3.8;
72 std::vector<float> values2;
73 std::vector<float> values3;
74 std::vector<float> values4;
79 double convradius = 0.0;
80 double passConvRej = 0.0;
84 reco::GsfElectronCollection::const_iterator eleIt = electronCollection->begin();
86 for (probe = probes->begin(); probe != endprobes; ++probe) {
87 for (eleIt = electronCollection->begin(); eleIt != electronCollection->end(); eleIt++) {
88 if (fabs(eleIt->et() - probe->et()) < 0.05 && fabs(eleIt->eta() - probe->eta()) < 0.01 &&
89 fabs(eleIt->phi() - probe->phi()) < 0.01) {
95 if (fabs(dist) > 0.02 && fabs(dcot) > 0.02)
100 values.push_back(dist);
101 values2.push_back(dcot);
102 values3.push_back(convradius);
103 values4.push_back(passConvRej);
107 auto valMap = std::make_unique<ValueMap<float>>();
109 filler.insert(probes, values.begin(), values.end());
114 auto valMap2 = std::make_unique<ValueMap<float>>();
116 filler2.insert(probes, values2.begin(), values2.end());
121 auto valMap3 = std::make_unique<ValueMap<float>>();
123 filler3.insert(probes, values3.begin(), values3.end());
128 auto valMap4 = std::make_unique<ValueMap<float>>();
130 filler4.insert(probes, values4.begin(), values4.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::View< reco::Candidate > > probesToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
~ElectronConversionRejectionVars() override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElecsToken_
const double radiusOfConversion
Store electron partner track conversion-rejection quantities ("dist" and "dcot") in the TP tree...
ElectronConversionRejectionVars(const edm::ParameterSet &iConfig)
T const * product() const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator