23 TFile *binningSchemes=
new TFile(
"testUnfold5_binning.root",
"recreate");
26 #define NBIN_PT_FINE 8 27 #define NBIN_ETA_FINE 10 31 #define NBIN_PT_COARSE 3 32 #define NBIN_ETA_COARSE 3 36 {3.5,4.0,4.5,5.0,6.0,7.0,8.0,10.0,13.0};
37 Double_t ptBinsCoarse[NBIN_PT_COARSE+1]=
38 { 4.0, 5.0, 7.0, 10.0};
40 Double_t etaBinsFine[NBIN_ETA_FINE+1]=
41 {-3.,-2.5,-2.0,-1.,-0.5,0.0,0.5,1.,2.,2.5,3.};
42 Double_t etaBinsCoarse[NBIN_ETA_COARSE+1]=
43 { -2.0, -0.5, 0.5, 2. };
46 Double_t discrBins[NBIN_DISCR+1]={0.,0.15,0.5,0.85,1.0};
54 detectorBinning->
AddBinning(
"detectordistribution");
55 detectorDistribution->
AddAxis(
"pt",NBIN_PT_FINE,ptBinsFine,
59 detectorDistribution->
AddAxis(
"eta",NBIN_ETA_FINE,etaBinsFine,
63 detectorDistribution->
AddAxis(
"discriminator",NBIN_DISCR,discrBins,
79 signalBinning->
AddAxis(
"ptgen",NBIN_PT_COARSE,ptBinsCoarse,
83 signalBinning->
AddAxis(
"etagen",NBIN_ETA_COARSE,etaBinsCoarse,
100 bgrBinning->
AddAxis(
"ptrec",NBIN_PT_FINE,ptBinsFine,
104 bgrBinning->
AddAxis(
"etarec",NBIN_ETA_FINE,etaBinsFine,
110 detectorBinning->
Write();
111 generatorBinning->
Write();
113 delete binningSchemes;
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
void PrintStream(std::ostream &out, Int_t indent=0) const
Bool_t AddAxis(const char *name, Int_t nBins, const Double_t *binBorders, Bool_t hasUnderflow, Bool_t hasOverflow)
This class serves as a container of analysis bins analysis bins are specified by defining the axes of...
TUnfoldBinning * AddBinning(TUnfoldBinning *binning)