8 if(thepset.
exists(
"HeavyIonGlobalParameters")){
17 if(centralityVariable_.compare(
"EB") == 0)
varType_ =
EB;
18 if(centralityVariable_.compare(
"EE") == 0)
varType_ =
EE;
20 std::string errorMessage=
"Requested Centrality variable does not exist : "+centralityVariable_+
"\n" +
21 "Supported variables are: \n" +
"HFtowers HFhits PixelHits PixelTracks Tracks EB EE" +
"\n";
24 if(hiPset.
exists(
"nonDefaultGlauberModel")){
44 int nbinsMax = inputDB_->m_table.size();
47 for(
int j=0;
j<nbinsMax;
j++){
49 thisBin = &(inputDB_->m_table[
j]);
76 for(
unsigned int j = 0;
j <
table_.size(); ++
j){
T getParameter(std::string const &) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
CentralityProvider(const edm::EventSetup &iSetup)
void newEvent(const edm::Event &ev, const edm::EventSetup &iSetup)
edm::Handle< reco::Centrality > chandle_
std::string centralityLabel_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ParameterSet const & getProcessParameterSet()
void newRun(const edm::EventSetup &iSetup)
std::string centralityMC_
std::string centralityVariable_
std::vector< CBin > table_
double centralityValue() const