8 : moduleLabel_(cfg.getParameter<std::string>(
"@module_label")),
9 src_(cfg.getParameter<edm::InputTag>(
"src")),
10 goodVtxNdof_(cfg.getParameter<unsigned int>(
"goodVtxNdof")),
11 goodVtxZ_(cfg.getParameter<double>(
"goodVtxZ"))
13 produces<CorrMETData>(
"type0");
26 std::auto_ptr<CorrMETData> chsSum(
new CorrMETData());
28 for (
unsigned i = 1;
i < recVtxs->size(); ++
i)
37 if ((*track)->charge() != 0)
39 chsSum->mex += (*track)->px();
40 chsSum->mey += (*track)->py();
41 chsSum->sumet += (*track)->pt();
46 evt.
put(chsSum,
"type0");
trackRef_iterator tracks_end() const
last iterator over tracks
#define DEFINE_FWK_MODULE(type)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double z() const
y coordinate
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks