37 if (type ==
"InstantaneousLuminosity")
39 else if (type ==
"Pileup")
57 m_token(consumes<
LumiSummary, edm::
InLumi>(config.getParameter<edm::InputTag>(
"source"))),
58 m_cross_section(config.getParameter<double>(
"crossSection")),
59 m_type(
parse(config.getParameter<std::
string>(
"type"))),
60 m_lumi_id((unsigned int) -1)
90 edm::LogError(
"FTSLuminosityFromLumiSummary") <<
"unable to calibrate the raw luminosity values, please add a LumiCorrectionSource ESProducer to your configuration";
96 double correction = corrector->getCorrection(h_summary->avgInsDelLumi());
109 m_value[sid] = h_summary->avgInsDelLumi() * correction * 1.e30;
113 m_value[sid] = h_summary->intgDelLumi() * correction *
m_cross_section * 1.e3 / h_summary->numOrbit() / corrector->ncollidingbunches();
137 desc.
add<
double>(
"crossSection", 69.3);
141 desc.
add<
std::string>(
"label",
"instantaneous luminosity [cm^{-2}s^{-1}]");
142 desc.
add<
double>(
"range", 8.e33);
143 desc.
add<
double>(
"resolution", 1.e31);
144 descriptions.
add(
"ftsLuminosityFromLumiSummary", desc);
150 desc.
add<
double>(
"crossSection", 69.3);
155 desc.
add<
double>(
"range", 40);
156 desc.
add<
double>(
"resolution", 1);
157 descriptions.
add(
"ftsPileupFromLumiSummary", desc);
edm::EDGetTokenT< LumiSummary > m_token
T getParameter(std::string const &) const
virtual void analyze(edm::StreamID sid, edm::Event const &event, const edm::EventSetup &setup) const override
~FTSLuminosityFromLumiSummary()
Evaluator * parse(const T &text)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
virtual void preallocStreams(unsigned int size) override
void getData(T &iHolder) const
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
static Type parse(std::string const &type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
FTSLuminosityFromLumiSummary(edm::ParameterSet const &)
virtual void doStreamBeginLuminosityBlock_(edm::StreamID id, edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
std::vector< double > m_value
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
tuple size
Write out results.