72 edm::LogVerbatim(
"PDFAnalysis") <<
"\n>>>> Begin of PDF weight systematics summary >>>>";
75 edm::LogVerbatim(
"PDFAnalysis") <<
"Total number of selected data: " <<
selectedEvents_ <<
" [events], corresponding to acceptance: [" << originalAcceptance*100 <<
" +- " << 100*
sqrt( originalAcceptance*(1.-originalAcceptance)/
originalEvents_) <<
"] %";
77 edm::LogVerbatim(
"PDFAnalysis") <<
"\n>>>>> PDF UNCERTAINTIES ON RATE >>>>>>";
82 unsigned int npairs = (nmembers-1)/2;
86 edm::LogVerbatim(
"PDFAnalysis") <<
"\tEstimate for central PDF member: " <<
int(events_central) <<
" [events]";
90 <<
"] % relative variation with respect to original PDF";
93 edm::LogVerbatim(
"PDFAnalysis") <<
"\tNumber of eigenvectors for uncertainty estimation: " << npairs;
96 unsigned int nplus = 0;
97 unsigned int nminus = 0;
98 for (
unsigned int j=0; j<npairs; ++j) {
130 if (wplus>0) wplus =
sqrt(wplus);
131 if (wminus>0) wminus =
sqrt(wminus);
133 if (nplus>0) wplus /=
sqrt(nplus);
134 if (nminus>0) wminus /=
sqrt(nminus);
136 edm::LogVerbatim(
"PDFAnalysis") <<
"\tRelative uncertainty with respect to central member: +" << std::setprecision(4) << 100.*wplus <<
" / -" << std::setprecision(4) << 100.*wminus <<
" [%]";
138 edm::LogVerbatim(
"PDFAnalysis") <<
"\tNO eigenvectors for uncertainty estimation";
142 edm::LogVerbatim(
"PDFAnalysis") <<
"\n>>>>> PDF UNCERTAINTIES ON ACCEPTANCE >>>>>>";
147 unsigned int npairs = (nmembers-1)/2;
150 double acc_central = 0.;
151 double acc2_central = 0.;
157 edm::LogVerbatim(
"PDFAnalysis") <<
"\tEstimate for central PDF member acceptance: [" << acc_central*100 <<
" +- " <<
160 double xi = acc_central-originalAcceptance;
162 if (deltaxi>0) deltaxi =
sqrt(deltaxi);
163 edm::LogVerbatim(
"PDFAnalysis") <<
"\ti.e. [" << std::setprecision(4) << 100*xi/originalAcceptance <<
" +- " << std::setprecision(4) << 100*deltaxi/originalAcceptance <<
"] % relative variation with respect to the original PDF";
166 edm::LogVerbatim(
"PDFAnalysis") <<
"\tNumber of eigenvectors for uncertainty estimation: " << npairs;
169 unsigned int nplus = 0;
170 unsigned int nminus = 0;
171 for (
unsigned int j=0; j<npairs; ++j) {
205 if (wplus>0) wplus =
sqrt(wplus);
206 if (wminus>0) wminus =
sqrt(wminus);
208 if (nplus>0) wplus /=
sqrt(nplus);
209 if (nminus>0) wminus /=
sqrt(nminus);
211 edm::LogVerbatim(
"PDFAnalysis") <<
"\tRelative uncertainty with respect to central member: +" << std::setprecision(4) << 100.*wplus <<
" / -" << std::setprecision(4) << 100.*wminus <<
" [%]";
213 edm::LogVerbatim(
"PDFAnalysis") <<
"\tNO eigenvectors for uncertainty estimation";
216 edm::LogVerbatim(
"PDFAnalysis") <<
">>>> End of PDF weight systematics summary >>>>";
std::vector< edm::InputTag > pdfWeightTags_
std::vector< double > weightedSelectedEvents_
std::vector< double > weightedEvents_
unsigned int selectedEvents_
std::vector< double > weighted2SelectedEvents_
std::vector< int > pdfStart_
unsigned int originalEvents_