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");
29 std::auto_ptr<double> eventShapeVarPtr(
new double(value));
30 evt.
put(eventShapeVarPtr, instanceName);
40 Thrust thrustAlgo(objects->begin(), objects->end());
41 put(evt, thrustAlgo.thrust(),
"thrust");
45 put(evt, eventShapeVarsAlgo.isotropy(),
"isotropy");
46 put(evt, eventShapeVarsAlgo.circularity(),
"circularity");
47 put(evt, eventShapeVarsAlgo.sphericity(
r_),
"sphericity");
48 put(evt, eventShapeVarsAlgo.aplanarity(
r_),
"aplanarity");
49 put(evt, eventShapeVarsAlgo.C(
r_),
"C");
50 put(evt, eventShapeVarsAlgo.D(
r_),
"D");
T getParameter(std::string const &) const
EventShapeVarsProducer(const edm::ParameterSet &)
Class for the calculation of several event shape variables.
#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)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void produce(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const