45 probes_(iConfig.getParameter<edm::InputTag>(
"probes"))
47 produces<edm::ValueMap<float> >(
"dist");
48 produces<edm::ValueMap<float> >(
"dcot");
49 produces<edm::ValueMap<float> >(
"convradius");
50 produces<edm::ValueMap<float> >(
"passConvRej");
71 float evt_bField = 3.8;
76 std::vector<float> values2;
77 std::vector<float> values3;
78 std::vector<float> values4;
83 double convradius = 0.0;
84 double passConvRej = 0.0;
89 reco::GsfElectronCollection::const_iterator eleIt = electronCollection->begin();
91 for (probe = probes->begin(); probe != endprobes; ++probe) {
92 for (eleIt=electronCollection->begin(); eleIt!=electronCollection->end(); eleIt++) {
93 if( fabs(eleIt->et() - probe->et() ) < 0.05 && fabs(eleIt->eta() - probe->eta() ) < 0.01
94 && fabs(eleIt->phi() - probe->phi() ) < 0.01 ){
96 ConversionInfo convInfo = convFinder.getConversionInfo(*eleIt, tracks_h, evt_bField);
97 dist = convInfo.
dist();
98 dcot = convInfo.
dcot();
100 if( fabs(dist)>0.02 && fabs(dcot)>0.02) passConvRej = 1.0;
105 values2.push_back(dcot);
106 values3.push_back(convradius);
107 values4.push_back(passConvRej);
116 iEvent.
put(valMap,
"dist");
122 filler2.insert(probes, values2.begin(), values2.end());
124 iEvent.
put(valMap2,
"dcot");
129 filler3.insert(probes, values3.begin(), values3.end());
131 iEvent.
put(valMap3,
"convradius");
137 filler4.insert(probes, values4.begin(), values4.end());
139 iEvent.
put(valMap4,
"passConvRej");
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
double radiusOfConversion() const
#define DEFINE_FWK_MODULE(type)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual ~ElectronConversionRejectionVars()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Store electron partner track conversion-rejection quantities ("dist" and "dcot") in the TP tree...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ElectronConversionRejectionVars(const edm::ParameterSet &iConfig)