136 "Supported variables are: \n" +
137 "HFtowers HFtowersPlus HFtowersMinus HFtowersTrunc HFtowersPlusTrunc HFtowersMinusTrunc "
138 "HFhits PixelHits PixelTracks Tracks EB EE" +
143 if (iConfig.
exists(
"nonDefaultGlauberModel")) {
172 value =
chandle_->EtHFtowerSumPlus();
175 value =
chandle_->EtHFtowerSumMinus();
184 value =
chandle_->EtHFtruncatedPlus();
187 value =
chandle_->EtHFtruncatedMinus();
190 value =
chandle_->multiplicityPixel();
211 throw cms::Exception(
"CentralityBinProducer",
"Centrality variable not recognized.");
215 for (
unsigned int i = 0;
i <
inputDB_->m_table.size(); ++
i) {
216 if (value >=
inputDB_->m_table[
i].bin_edge && value) {
edm::ESGetToken< CentralityTable, HeavyIonRcd > inputDBToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
CentralityBinProducer(const edm::ParameterSet &)
edm::ESHandle< CentralityTable > inputDB_
std::string centralityVariable_
std::string centralityLabel_
void beginRun(edm::Run const &run, const edm::EventSetup &iSetup) override
edm::Handle< reco::Centrality > chandle_
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
~CentralityBinProducer() override
std::string centralityMC_
edm::EDGetTokenT< reco::Centrality > tag_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const