60 produces<double>(
"thrust");
62 produces<double>(
"isotropy");
63 produces<double>(
"circularity");
64 produces<double>(
"sphericity");
65 produces<double>(
"aplanarity");
66 produces<double>(
"C");
67 produces<double>(
"D");
69 produces<std::vector<double>>(
"FWmoments");
73 evt.
put(std::make_unique<double>(value), instanceName);
80 Thrust thrustAlgo(objects->begin(), objects->end());
81 put(evt, thrustAlgo.thrust(),
"thrust");
85 eventShapeVarsAlgo.set_r(
r_);
86 put(evt, eventShapeVarsAlgo.isotropy(),
"isotropy");
87 put(evt, eventShapeVarsAlgo.circularity(),
"circularity");
88 put(evt, eventShapeVarsAlgo.sphericity(),
"sphericity");
89 put(evt, eventShapeVarsAlgo.aplanarity(),
"aplanarity");
90 put(evt, eventShapeVarsAlgo.C(),
"C");
91 put(evt, eventShapeVarsAlgo.D(),
"D");
93 eventShapeVarsAlgo.setFWmax(
fwmax_);
94 auto vfw = std::make_unique<std::vector<double>>(eventShapeVarsAlgo.getFWmoments());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
EventShapeVarsProducer(const edm::ParameterSet &)
Class for the calculation of several event shape variables.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void put(edm::Event &evt, double value, const char *instanceName)
edm::EDGetTokenT< edm::View< reco::Candidate > > srcToken_
~EventShapeVarsProducer() override
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override