|
| FTSLuminosityFromLumiSummary (edm::ParameterSet const &) |
|
| ~FTSLuminosityFromLumiSummary () |
|
| EDAnalyzer ()=default |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
FTSLuminosityFromLumiSummary::FTSLuminosityFromLumiSummary |
( |
edm::ParameterSet const & |
config | ) |
|
|
explicit |
FTSLuminosityFromLumiSummary::~FTSLuminosityFromLumiSummary |
( |
| ) |
|
Reimplemented from edm::global::EDAnalyzerBase.
Definition at line 83 of file FTSLuminosityFromLumiSummary.cc.
References mvaPFMET_cff::corrector, edm::LuminosityBlock::getByToken(), edm::EventSetup::getData(), InstantaneousLuminosity, Invalid, edm::ESHandleBase::isValid(), m_cross_section, m_token, m_type, m_value, and Pileup.
88 setup.getData(corrector);
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();
edm::EDGetTokenT< LumiSummary > m_token
std::vector< double > m_value
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition at line 132 of file FTSLuminosityFromLumiSummary.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
137 desc.
add<
double>(
"crossSection", 69.3);
138 desc.add<
std::string>(
"type",
"InstantaneousLuminosity");
140 desc.add<
std::string>(
"title",
"instantaneous luminosity");
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);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static Type FTSLuminosityFromLumiSummary::parse |
( |
std::string const & |
type | ) |
|
|
inlinestaticprivate |
void FTSLuminosityFromLumiSummary::preallocStreams |
( |
unsigned int |
size | ) |
|
|
overrideprivatevirtual |
double FTSLuminosityFromLumiSummary::m_cross_section |
|
private |
unsigned int FTSLuminosityFromLumiSummary::m_lumi_id |
|
private |
Type FTSLuminosityFromLumiSummary::m_type |
|
private |
std::vector<double> FTSLuminosityFromLumiSummary::m_value |
|
private |