16 produces<double>(
"thrust");
18 produces<double>(
"isotropy");
19 produces<double>(
"circularity");
20 produces<double>(
"sphericity");
21 produces<double>(
"aplanarity");
22 produces<double>(
"C");
23 produces<double>(
"D");
24 if(fwmax_ > 0) produces<std::vector<double>>(
"FWmoments");
29 evt.
put(std::make_unique<double>(value), instanceName);
38 Thrust thrustAlgo(objects->begin(), objects->end());
39 put(evt, thrustAlgo.thrust(),
"thrust");
43 eventShapeVarsAlgo.set_r(
r_);
44 put(evt, eventShapeVarsAlgo.isotropy(),
"isotropy");
45 put(evt, eventShapeVarsAlgo.circularity(),
"circularity");
46 put(evt, eventShapeVarsAlgo.sphericity(),
"sphericity");
47 put(evt, eventShapeVarsAlgo.aplanarity(),
"aplanarity");
48 put(evt, eventShapeVarsAlgo.C(),
"C");
49 put(evt, eventShapeVarsAlgo.D(),
"D");
51 eventShapeVarsAlgo.setFWmax(
fwmax_);
52 auto vfw = std::make_unique<std::vector<double>>(eventShapeVarsAlgo.getFWmoments());
T getParameter(std::string const &) const
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
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_
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override