******************************************************************************* * * * Simple example which illustrate the usage of useful algorithm base class * * HistoAlgo (python version of C++ GaudiHistoAlg) for 'easy' histogramming. * * * * This example illustrates the usage of 1D and 2D profile histograms * * * ******************************************************************************* Vanya BELYAEV ibelyaev@physics.syr.edu ApplicationMgr SUCCESS ==================================================================================================================================== Welcome to ApplicationMgr $Revision: 1.77 $ running on lxplus439.cern.ch on Tue Feb 22 11:48:16 2011 ==================================================================================================================================== ApplicationMgr INFO Application Manager Configured successfully ApplicationMgr INFO Successfully loaded modules : GaudiAlg, RootHistCnv HistogramPersis... INFO 'CnvServices':[ 'HbookHistSvc' , 'RootHistSvc' ] RootHistSvc INFO Writing ROOT histograms to: histo1.root HistogramPersis... INFO Added successfully Conversion service:RootHistSvc DetectorDataSvc INFO Detector description not requested to be loaded EventLoopMgr WARNING Unable to locate service "EventSelector" EventLoopMgr WARNING No events will be processed from external input. ApplicationMgr INFO Application Manager Initialized successfully ApplicationMgr INFO Application Manager Started successfully RndmGenSvc.Engine INFO Generator engine type:CLHEP::RanluxEngine RndmGenSvc.Engine INFO Current Seed:1234567 Luxury:3 RndmGenSvc INFO Using Random engine:HepRndm::Engine Alg='HistoEx', ID=' 3D histo ' , Histo= ID= 3D histo " 3D histo " Ents/All=20000/20000/sX=4.5/2.8723,/sY=4.5/2.8723,/sZ=4.5/2.8723 Alg='HistoEx', ID=' 2D histo ' , Histo=Histogram 2D " 2D histo " 20 xbins [0.000000,20.000000], 20 ybins [0.000000,20.000000] Alg='HistoEx', ID=' 1D histo ' , Histo=Histogram 1D " 1D histo " 20 bins [0.000000,20.000000] Histo TES : "HistoEx/ 1D histo " Histo Title : " 1D histo " Mean : 4.5 +- 0.2031 Rms : 2.8723 +- 0.09994 Skewness : 0.52751 +- 0.1706 Kurtosis : -1.0415 +- 0.3337 Entries : | All | In Range | Underflow | Overflow | #Equivalent | Integral | Total | | 200 | 200 | 0 | 0 | 200 | 200 | 200 | Annotation | Title : 1D histo | | title : 1D histo | | id : 1D histo | 25 ++----+----+----+----+ |IIIIIIIIII. . | |IIIIIIIIII. . | |IIIIIIIIII. . | |IIIIIIIIII. . | |**********. . | |IIIIIIIIII. . | 16.7 +IIIIIIIIII..........+ |IIIIIIIIII. . | || . . . | || . . . | || . . . | || . . . | || . . . | 8.33 ++...................+ || . . . | || . . . | || . . . | || . . . | || . . . | || . . . | 2.22e-16 ++----+----+----+----+ U N O D V E E R R F F L L O 1 1 2 O W 00 5 0 5 0 W Alg='HistoEx1', ID=' 3D histo ' , Histo= ID= 3D histo " 3D histo " Ents/All=20000/20000/sX=4.5/2.8723,/sY=4.5/2.8723,/sZ=4.5/2.8723 Alg='HistoEx1', ID=' 2D histo ' , Histo=Histogram 2D " 2D histo " 20 xbins [0.000000,20.000000], 20 ybins [0.000000,20.000000] Alg='HistoEx1', ID=' 1D histo ' , Histo=Histogram 1D " 1D histo " 20 bins [0.000000,20.000000] Histo TES : "HistoEx1/ 1D histo " Histo Title : " 1D histo " Mean : 4.5 +- 0.2031 Rms : 2.8723 +- 0.09994 Skewness : 0.52751 +- 0.1706 Kurtosis : -1.0415 +- 0.3337 Entries : | All | In Range | Underflow | Overflow | #Equivalent | Integral | Total | | 200 | 200 | 0 | 0 | 200 | 33.2 | 33.2 | Annotation | Title : 1D histo | | title : 1D histo | | id : 1D histo | 4.5 ++----+----+----+----+ || . . . | |IIIIIIIIII. . | |IIIIIIIIII. . | |IIIIIIIIII. . | 3.38 +IIIIIIIIII..........+ |**********. . | |IIIIIIIIII. . | |IIIIIIIIII. . | |IIIIIIIIII. . | 2.25 ++...................+ || . . . | || . . . | || . . . | || . . . | 1.12 ++...................+ || . . . | || . . . | || . . . | || . . . | 0 *-++----+----**********->* U N O D V E E R R F F L L O 1 1 2 O W 00 5 0 5 0 W Alg='HistoEx2', ID=' x vs y (profile)' , Histo= Histo TES : "HistoEx2/ x vs y (profile)" Histo Title : " x vs y (profile)" Mean : -0.0052704 Rms : 0.8777 Entries : | All | In Range | Underflow | Overflow | Integral | Total | | 200000 | 200000 | 4608 | 4544 | -0.54562 | -1083.8 | Annotation | Title : x vs y (profile) | | title : x vs y (profile) | | Name : x vs y (profile) | | id : x vs y (profile) | 1.5 +----+----+----+----+----+----+----+----+----+----++ | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| 0.5 +........................+.........................+ | . . . . | . . . . .| | . . . . | . . . . I.| 0 *-+*************************************************I->* | I I . . . | . . . . I *| -0.5 +........................+.........................+ | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| -1.5 +........................+.........................+ | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . .| -2.5 +----+----+----+----+----+----+----+----+----+----++ U N O D V E E R - - - - - R F 1 1 0 0 0 0 0 1 1 1 F L . . . . . . . . . . L O - 6 2 8 4 0 3 7 1 5 9 O W 2 8 8 8 8 8 2 2 2 2 22 W Alg='HistoEx2', ID=' x vs y+3x ' , Histo=Histogram 2D " x vs y+3x " 50 xbins [-2.000000,2.000000], 50 ybins [-4.000000,4.000000] Alg='HistoEx2', ID=' x vs y+3x (profile)' , Histo= Histo TES : "HistoEx2/ x vs y+3x (profile)" Histo Title : " x vs y+3x (profile)" Mean : -0.0052704 Rms : 0.8777 Entries : | All | In Range | Underflow | Overflow | Integral | Total | | 200000 | 200000 | 4608 | 4544 | -0.54771 | -4660.5 | Annotation | Title : x vs y+3x (profile) | | title : x vs y+3x (profile) | | Name : x vs y+3x (profile) | | id : x vs y+3x (profile) | 15 +----+----+----+----+----+----+----+----+----+----++ | . . . . | . . . . .| | . . . . | . . . . .| | . . . . | . . . . ***| | . . . . | . . . ***I .| | . . . . | . . . ***. .| | . . . . | . . ***I . .| * 5 +........................+..........***............+ | . . . . | . *** . . .| | . . . . | *** . . . .| | . . . . | ***. . . . .| 0 -+----+----+----+----+---I**---+----+----+----+----+-> | . . . . ***| . . . . .| | . . . *** | . . . . .| -5 +...............***......+.........................+ | . . I*** . | . . . . .| * | . *** . . | . . . . .| | . ***. . . | . . . . .| | *** . . . | . . . . .| |*** . . . . | . . . . .| | . . . . | . . . . .| -15 +----+----+----+----+----+----+----+----+----+----++ U N O D V E E R - - - - - R F 1 1 0 0 0 0 0 1 1 1 F L . . . . . . . . . . L O - 6 2 8 4 0 3 7 1 5 9 O W 2 8 8 8 8 8 2 2 2 2 22 W Alg='HistoEx2', ID=' x vs y-3x ' , Histo=Histogram 2D " x vs y-3x " 50 xbins [-2.000000,2.000000], 50 ybins [-4.000000,4.000000] Alg='HistoEx2', ID=' x vs y ' , Histo=Histogram 2D " x vs y " 50 xbins [-2.000000,2.000000], 50 ybins [-4.000000,4.000000] Alg='HistoEx2', ID=' x vs y-3x (profile)' , Histo= Histo TES : "HistoEx2/ x vs y-3x (profile)" Histo Title : " x vs y-3x (profile)" Mean : -0.0052704 Rms : 0.8777 Entries : | All | In Range | Underflow | Overflow | Integral | Total | | 200000 | 200000 | 4608 | 4544 | -0.54353 | 2492.9 | Annotation | Title : x vs y-3x (profile) | | title : x vs y-3x (profile) | | Name : x vs y-3x (profile) | | id : x vs y-3x (profile) | 15 +----+----+----+----+----+----+----+----+----+----++ | . . . . | . . . . .| | . . . . | . . . . .| |*** . . . . | . . . . .| | I*** . . . | . . . . .| | . ***. . . | . . . . .| * | . *** . . | . . . . .| 5 +............**I.........+.........................+ | . . **** . | . . . . .| | . . . I**I | . . . . .| | . . . .****| . . . . .| 0 -+----+----+----+----+---I***--+----+----+----+----+-> | . . . . | *** . . . .| | . . . . | I**I . . . .| -5 +........................+.......***I..............+ | . . . . | . .***I. . .| | . . . . | . . *** . .| * | . . . . | . . . ***. .| | . . . . | . . . *** .| | . . . . | . . . . ***| | . . . . | . . . . .| -15 +----+----+----+----+----+----+----+----+----+----++ U N O D V E E R - - - - - R F 1 1 0 0 0 0 0 1 1 1 F L . . . . . . . . . . L O - 6 2 8 4 0 3 7 1 5 9 O W 2 8 8 8 8 8 2 2 2 2 22 W ApplicationMgr INFO Application Manager Stopped successfully HistoEx SUCCESS Booked 3 Histogram(s) : 1D=1 2D=1 3D=1 HistoEx SUCCESS List of booked 1D histograms in directory "HistoEx" :- | ID | Title | # | Mean | RMS | Skewness | Kurtosis | | 1D histo | " 1D histo " | 200 | 4.5 | 2.8723 | 0.52751 | -1.0415 | HistoEx SUCCESS List of booked 2D histograms in directory "HistoEx" :- ID= 2D histo " 2D histo " Ents/All= 2000/2000 /sX=4.5/2.8723,/sY=4.5/2.8723 HistoEx SUCCESS List of booked 3D histograms in directory "HistoEx" :- ID= 3D histo " 3D histo " Ents/All=20000/20000/sX=4.5/2.8723,/sY=4.5/2.8723,/sZ=4.5/2.8723 HistoEx1 SUCCESS Booked 3 Histogram(s) : 1D=1 2D=1 3D=1 HistoEx1 SUCCESS List of booked 1D histograms in directory "HistoEx1" :- | ID | Title | # | Mean | RMS | Skewness | Kurtosis | | 1D histo | " 1D histo " | 200 | 4.5 | 2.8723 | 0.52751 | -1.0415 | HistoEx1 SUCCESS List of booked 2D histograms in directory "HistoEx1" :- ID= 2D histo " 2D histo " Ents/All= 2000/2000 /sX=4.5/2.8723,/sY=4.5/2.8723 HistoEx1 SUCCESS List of booked 3D histograms in directory "HistoEx1" :- ID= 3D histo " 3D histo " Ents/All=20000/20000/sX=4.5/2.8723,/sY=4.5/2.8723,/sZ=4.5/2.8723 HistoEx2 SUCCESS Booked 6 Histogram(s) : 2D=3 1DProf=3 HistoEx2 SUCCESS List of booked 2D histograms in directory "HistoEx2" :- ID= x vs y " x vs y " Ents/All=200000/200000/sX=-0.0052187/0.87769,/sY=-0.0052098/0.99916 ID= x vs y+3x " x vs y+3x " Ents/All=190894/200000/sX=-0.00098056/0.69603,/sY=-0.0079536/2.0724 ID= x vs y-3x " x vs y-3x " Ents/All=190896/200000/sX=-0.0018744/0.6958,/sY=-0.00026366/2.0675 HistoEx2 SUCCESS List of booked 1D profile histograms in directory "HistoEx2" :- ID= x vs y (profile) " x vs y (profile)" Ents/All=190848/200000/sX=-0.0052704/0.8777 ID= x vs y+3x (profile) " x vs y+3x (profile)" Ents/All=190848/200000/sX=-0.0052704/0.8777 ID= x vs y-3x (profile) " x vs y-3x (profile)" Ents/All=190848/200000/sX=-0.0052704/0.8777 EventLoopMgr INFO Histograms converted successfully according to request. ApplicationMgr INFO Application Manager Finalized successfully ApplicationMgr INFO Application Manager Terminated successfully