22 TFile *binningSchemes=
new TFile(
"testUnfold5_binning.root",
"recreate");
25 #define NBIN_PT_FINE 8
26 #define NBIN_ETA_FINE 10
30 #define NBIN_PT_COARSE 3
31 #define NBIN_ETA_COARSE 3
35 {3.5,4.0,4.5,5.0,6.0,7.0,8.0,10.0,13.0};
36 Double_t ptBinsCoarse[NBIN_PT_COARSE+1]=
37 { 4.0, 5.0, 7.0, 10.0};
39 Double_t etaBinsFine[NBIN_ETA_FINE+1]=
40 {-3.,-2.5,-2.0,-1.,-0.5,0.0,0.5,1.,2.,2.5,3.};
41 Double_t etaBinsCoarse[NBIN_ETA_COARSE+1]=
42 { -2.0, -0.5, 0.5, 2. };
45 Double_t discrBins[NBIN_DISCR+1]={0.,0.15,0.5,0.85,1.0};
53 detectorBinning->
AddBinning(
"detectordistribution");
54 detectorDistribution->
AddAxis(
"pt",NBIN_PT_FINE,ptBinsFine,
58 detectorDistribution->
AddAxis(
"eta",NBIN_ETA_FINE,etaBinsFine,
62 detectorDistribution->
AddAxis(
"discriminator",NBIN_DISCR,discrBins,
78 signalBinning->
AddAxis(
"ptgen",NBIN_PT_COARSE,ptBinsCoarse,
82 signalBinning->
AddAxis(
"etagen",NBIN_ETA_COARSE,etaBinsCoarse,
99 bgrBinning->
AddAxis(
"ptrec",NBIN_PT_FINE,ptBinsFine,
103 bgrBinning->
AddAxis(
"etarec",NBIN_ETA_FINE,etaBinsFine,
109 detectorBinning->
Write();
110 generatorBinning->
Write();
112 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.
Bool_t AddAxis(const char *name, Int_t nBins, const Double_t *binBorders, Bool_t hasUnderflow, Bool_t hasOverflow)
void PrintStream(std::ostream &out, Int_t indent=0) const
This class serves as a container of analysis bins analysis bins are specified by defining the axes of...
TUnfoldBinning * AddBinning(TUnfoldBinning *binning)