8 if(thepset.
exists(
"HeavyIonGlobalParameters")){
23 if(centralityVariable_.compare(
"EB") == 0)
varType_ =
EB;
24 if(centralityVariable_.compare(
"EE") == 0)
varType_ =
EE;
26 std::string errorMessage=
"Requested Centrality variable does not exist : "+centralityVariable_+
"\n" +
27 "Supported variables are: \n" +
"HFtowers HFhits PixelHits PixelTracks Tracks EB EE" +
"\n";
30 if(hiPset.
exists(
"nonDefaultGlauberModel")){
44 std::cout<<
"Attention, the sides are flipped from this run on!"<<std::endl;
57 int nbinsMax = inputDB_->m_table.size();
60 for(
int j=0;
j<nbinsMax;
j++){
62 thisBin = &(inputDB_->m_table[
j]);
89 for(
unsigned int j = 0;
j <
table_.size(); ++
j){
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T 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