34 if (type ==
"InstantaneousLuminosity")
36 else if (type ==
"Pileup")
51 m_type(
parse(config.getParameter<std::
string>(
"type"))),
52 m_lumi_id((unsigned int) -1)
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
Evaluator * parse(const T &text)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
FTSLuminosityFromScalers(edm::ParameterSet const &)
static Type parse(std::string const &type)
edm::EDGetTokenT< LumiScalersCollection > m_token
ParameterDescriptionBase * add(U const &iLabel, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
~FTSLuminosityFromScalers()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void analyze(edm::StreamID sid, edm::Event const &event, const edm::EventSetup &setup) const override
std::vector< LumiScalers > LumiScalersCollection
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")