36 virtual void endJob() ;
61 h1 =
fs->
make<TH1D>(
"h1",
"histogram",100,0,100);
62 nt =
fs->
make<TNtuple>(
"hi",
"hi",
"hf:hft:hftp:hftm:eb:ee:eep:eem:npix:et:zdc:zdcp:zdcm:bin:trig");
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
#define DEFINE_FWK_MODULE(type)
double EtHFtowerSumMinus() const
double EtEESumMinus() const
~AnalyzerWithCentrality()
const reco::Centrality * raw() const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double zdcSumMinus() const
float NcollMeanOfBin(int bin) const
AnalyzerWithCentrality(const edm::ParameterSet &)
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
T * make() const
make new ROOT object
double centralityValue() const
edm::Service< TFileService > fs
float NcollSigmaOfBin(int bin) const
double zdcSumPlus() const