1 #ifndef CalibratedPhotonProducer_h
2 #define CalibratedPhotonProducer_h
31 thePhotonToken(consumes<edm::
View<
T> >(conf.getParameter<edm::
InputTag>(
"photons"))),
32 theEnCorrectorRun2(conf.getParameter<bool>(
"isMC"), conf.getParameter<bool>(
"isSynchronization"), conf.getParameter<std::
string >(
"correctionFile")) {
34 produces<std::vector<T> >();
48 std::auto_ptr<std::vector<T> >
out(
new std::vector<T>());
49 out->reserve(in->size());
51 for (
const T &ele : *in) {
53 theEnCorrectorRun2.calibrate(out->back(), iEvent.
id().
run(), iEvent.
streamID());
virtual ~CalibratedPhotonProducerRun2T()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
CalibratedPhotonProducerRun2T(const edm::ParameterSet &)
edm::EDGetTokenT< edm::View< T > > thePhotonToken
CalibratedPhotonProducerRun2T< reco::Photon > CalibratedPhotonProducerRun2
CalibratedPhotonProducerRun2T< pat::Photon > CalibratedPatPhotonProducerRun2
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
PhotonEnergyCalibratorRun2 theEnCorrectorRun2
virtual void produce(edm::Event &, const edm::EventSetup &) override
StreamID streamID() const