57 r_ =
cfg.exists(
"r") ?
cfg.getParameter<
double>(
"r") : 2.;
58 fwmax_ =
cfg.exists(
"fwmax") ?
cfg.getParameter<
unsigned>(
"fwmax") : 0;
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");
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
void put(edm::Event &evt, double value, const char *instanceName)
edm::EDGetTokenT< edm::View< reco::Candidate > > srcToken_
~EventShapeVarsProducer() override
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override