Implements edm::EDAnalyzer.
Definition at line 80 of file AnalyzerWithCentrality.cc.
References newFWLiteAna::bin, CentralityProvider::bMean(), CentralityBins::bMeanOfBin(), CentralityProvider::bSigma(), CentralityBins::bSigmaOfBin(), centrality_, CentralityProvider::centralityValue(), gather_cfg::cout, reco::Centrality::EtEBSum(), reco::Centrality::EtEESum(), reco::Centrality::EtEESumMinus(), reco::Centrality::EtEESumPlus(), reco::Centrality::EtHFhitSum(), reco::Centrality::EtHFtowerSum(), reco::Centrality::EtHFtowerSumMinus(), reco::Centrality::EtHFtowerSumPlus(), reco::Centrality::EtMidRapiditySum(), CentralityProvider::getBin(), CentralityProvider::getNbins(), h1, reco::Centrality::multiplicityPixel(), pileupCalc::nbins, CentralityProvider::NcollMean(), CentralityBins::NcollMeanOfBin(), CentralityProvider::NcollSigma(), CentralityBins::NcollSigmaOfBin(), CentralityProvider::newEvent(), CentralityProvider::NhardMean(), CentralityProvider::NhardSigma(), CentralityProvider::NpartMean(), CentralityBins::NpartMeanOfBin(), CentralityProvider::NpartSigma(), CentralityBins::NpartSigmaOfBin(), nt, CentralityProvider::print(), CentralityProvider::raw(), reco::Centrality::zdcSum(), reco::Centrality::zdcSumMinus(), and reco::Centrality::zdcSumPlus().
100 cout<<
"Centrality variables in the event:"<<endl;
101 cout<<
"Total energy in HF hits : "<<hf<<endl;
102 cout<<
"Asymmetry of HF towers : "<<fabs(hftp-hftm)/(hftp+hftm)<<endl;
103 cout<<
"Total energy in EE basic clusters : "<<eep+eem<<endl;
104 cout<<
"Total energy in EB basic clusters : "<<eb<<endl;
112 nt->Fill(hf,hft,hftp,hftm,eb,ee,eep,eem,npix,et,zdc,zdcp,zdcm,
bin,1);
120 int binsize = 100./
nbins;
122 char* binName = Form(
"%d to % d",
bin*binsize,(
bin+1)*binsize);
123 cout<<
"The event falls into centrality bin : "<<binName<<
" id : "<<
bin<<endl;
127 cout<<
"Npart Mean : "<<npartMean<<
" Variance : "<<npartSigma<<endl;
135 cout<<
"Ncoll Mean : "<<ncollMean<<
" Variance : "<<ncollSigma<<endl;
144 cout<<
"Nhard Mean : "<<nhardMean<<
" Variance : "<<nhardSigma<<endl;
148 cout<<
"b Mean : "<<bMean<<
" Variance : "<<bSigma<<endl;
float NpartSigmaOfBin(int bin) const
double EtHFtowerSumMinus() const
double EtEESumMinus() const
const reco::Centrality * raw() const
double zdcSumMinus() const
float NcollMeanOfBin(int bin) const
void newEvent(const edm::Event &ev, const edm::EventSetup &iSetup)
double EtHFtowerSumPlus() const
float bSigmaOfBin(int bin) const
double EtEESumPlus() const
double multiplicityPixel() const
double EtHFtowerSum() const
float NpartMeanOfBin(int bin) const
double EtMidRapiditySum() const
double EtHFhitSum() const
CentralityProvider * centrality_
float bMeanOfBin(int bin) const
double centralityValue() const
float NcollSigmaOfBin(int bin) const
double zdcSumPlus() const