Automatic and user binning

Read an Ntuple from a histogram file. Automatic and user binning

hi/file 2 rwn_aptuple.hbook zon 2 2 ntuple/pl 10.age 1dhisto 11 'Age - User binning' 45 20. 65. 2 SET NDVX -509 1 NTUPLE/PROJECT 11 10.AGE hi/plot 11 1dhisto 12 'Cost - User binning' 50 0. 20000. 2 SET NDVX ntuple/plot 10.cost set ndvx -504 3 NTUPLE/PLOT 10.COST IDH=12

  1. NT/PROJECT Project an Ntuple onto a 1-Dim or 2-Dim histogram. The histogram is not reset before the projection. This allows several PROJECTs from different Ntuples.
  2. By default the labeling on the axis is automatic. It possible to change the number of division via the commands SET NDVX , SET NDVY and SET NDVZ . The number of divisions ( NDIV ) is calculated according to the following convention:
                                                                                                                       
                      (NDIV = N1 + 100*N2 + 10000*N3)                                                                       
    
    Where N1 is the number of primary divisions, N2 is the number of second order divisions and N3 is the number of third order divisions. The sign of NDIV is also used to control the labeling:
    1. If NDIV is positive, it is taken as a maximum number and the binning is optimized.
    2. If NDIV is negative, its absolute value is taken as the exact number of division without optimization.
    3. If NDIV equal zero is given the default (510. i.e. 10 primary divisions and 5 secondary) is taken.
    The number of primary divisions is also optimized according the number of zones . i.e : along the X direction the number of primary divisions is divided by the number of X zones along the Y direction the number of primary divisions in divided by (the number of Y zones)/2
  3. The variable COST is ploted according to the binning defined by the histogram 12. When the parameter IDH is not used in the command NTUPLE/PLOT , a histogram is automatically created with the identifier 1000000.



Last update: 96/05/24 17.22
Olivier.Couet@Cern.Ch