1 #ifndef CalibratedPhotonProducer_h 2 #define CalibratedPhotonProducer_h 32 theEnCorrectorRun2(conf.getParameter<bool>(
"isMC"), conf.getParameter<bool>(
"isSynchronization"), conf.getParameter<
std::
string >(
"correctionFile")) {
34 produces<std::vector<T> >();
48 std::unique_ptr<std::vector<T> >
out(
new std::vector<T>());
49 out->reserve(in->size());
51 for (
const T &ele : *in) {
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
CalibratedPhotonProducerRun2T< reco::Photon > CalibratedPhotonProducerRun2
CalibratedPhotonProducerRun2T< pat::Photon > CalibratedPatPhotonProducerRun2
PhotonEnergyCalibratorRun2 theEnCorrectorRun2
virtual void produce(edm::Event &, const edm::EventSetup &) override
void calibrate(SimplePhoton &photon, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
StreamID streamID() const