48 enum VariableType {
HFtowers = 0,
HFtowersPlus = 1,
HFtowersMinus = 2,
HFtowersTrunc = 3,
HFtowersPlusTrunc = 4,
HFtowersMinusTrunc = 5,
HFhits = 6,
PixelHits = 7,
PixelTracks = 8,
Tracks = 9,
EB = 10,
EE = 11,
ZDChitsPlus = 12,
ZDChitsMinus = 13,
Missing = 14};
111 "Supported variables are: \n" +
"HFtowers HFtowersPlus HFtowersMinus HFtowersTrunc HFtowersPlusTrunc HFtowersMinusTrunc HFhits PixelHits PixelTracks Tracks EB EE" +
"\n";
115 if(iConfig.
exists(
"nonDefaultGlauberModel")){
161 throw cms::Exception(
"CentralityBinProducer",
"Centrality variable not recognized.");
165 for(
unsigned int i = 0;
i <
inputDB_->m_table.size(); ++
i){
167 if(value >=
inputDB_->m_table[
i].bin_edge && value){
T getParameter(std::string const &) const
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_
virtual void beginRun(edm::Run const &run, const edm::EventSetup &iSetup) override
edm::Handle< reco::Centrality > chandle_
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::string centralityMC_
edm::EDGetTokenT< reco::Centrality > tag_