34 if (type ==
"InstantaneousLuminosity")
36 else if (type ==
"Pileup")
81 value = h_luminosity->front().instantLumi() * 1.e30;
84 value = h_luminosity->front().pileup();
104 desc.
add<
std::string>(
"label",
"instantaneous luminosity [cm^{-2}s^{-1}]");
105 desc.
add<
double>(
"range", 8.e33);
106 desc.
add<
double>(
"resolution", 1.e31);
107 descriptions.
add(
"ftsLuminosityFromScalers", desc);
117 desc.
add<
double>(
"range", 40);
118 desc.
add<
double>(
"resolution", 1);
119 descriptions.
add(
"ftsPileupFromScalers", desc);
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
FTSLuminosityFromScalers(edm::ParameterSet const &)
def setup(process, global_tag, zero_tesla=False)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
static Type parse(std::string const &type)
edm::EDGetTokenT< LumiScalersCollection > m_token
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~FTSLuminosityFromScalers()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< LumiScalers > LumiScalersCollection
void analyze(edm::StreamID sid, edm::Event const &event, const edm::EventSetup &setup) const override