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,
Missing = 12};
109 "Supported variables are: \n" +
"HFtowers HFtowersPlus HFtowersMinus HFtowersTrunc HFtowersPlusTrunc HFtowersMinusTrunc HFhits PixelHits PixelTracks Tracks EB EE" +
"\n";
113 if(iConfig.
exists(
"nonDefaultGlauberModel")){
157 throw cms::Exception(
"CentralityBinProducer",
"Centrality variable not recognized.");
161 for(
unsigned int i = 0;
i <
inputDB_->m_table.size(); ++
i){
163 if(value >=
inputDB_->m_table[
i].bin_edge && value){
169 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_