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){
173 std::auto_ptr<int> binp(
new int(bin));
T getParameter(std::string const &) const
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_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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_