54 r_ =
cfg.exists(
"r") ?
cfg.getParameter<
double>(
"r") : 2.;
55 fwmax_ =
cfg.exists(
"fwmax") ?
cfg.getParameter<
unsigned>(
"fwmax") : 0;
57 produces<double>(
"thrust");
59 produces<double>(
"isotropy");
60 produces<double>(
"circularity");
61 produces<double>(
"sphericity");
62 produces<double>(
"aplanarity");
63 produces<double>(
"C");
64 produces<double>(
"D");
66 produces<std::vector<double>>(
"FWmoments");
70 evt.
put(std::make_unique<double>(
value), instanceName);
78 put(evt, thrustAlgo.thrust(),
"thrust");
82 eventShapeVarsAlgo.set_r(
r_);
83 put(evt, eventShapeVarsAlgo.isotropy(),
"isotropy");
84 put(evt, eventShapeVarsAlgo.circularity(),
"circularity");
85 put(evt, eventShapeVarsAlgo.sphericity(),
"sphericity");
86 put(evt, eventShapeVarsAlgo.aplanarity(),
"aplanarity");
87 put(evt, eventShapeVarsAlgo.C(),
"C");
88 put(evt, eventShapeVarsAlgo.D(),
"D");
90 eventShapeVarsAlgo.setFWmax(
fwmax_);
91 auto vfw = std::make_unique<std::vector<double>>(eventShapeVarsAlgo.getFWmoments());
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
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
void put(edm::Event &evt, double value, const char *instanceName)
edm::EDGetTokenT< edm::View< reco::Candidate > > srcToken_
#define DEFINE_FWK_MODULE(type)