Public Member Functions | |
def | __init__ |
def | execute |
Simple algorithm which explicitely book&fill profile histograms
Definition at line 29 of file HistoEx2.py.
def HistoEx2::HistoEx2::__init__ | ( | self, | ||
name = 'HistoEx2' | ||||
) |
Constructor
Definition at line 31 of file HistoEx2.py.
00031 : 00032 """ Constructor """ 00033 HistoAlgo.__init__( self , name ) 00034
def HistoEx2::HistoEx2::execute | ( | self | ) |
The major method 'execute', it is invoked for each event
Definition at line 35 of file HistoEx2.py.
00035 : 00036 """ The major method 'execute', it is invoked for each event """ 00037 00038 gauss = Rndm.Numbers ( self.randSvc() , 00039 Rndm.Gauss ( 0 , 1 ) ) 00040 00041 for i in range(0,10000) : 00042 x = gauss () 00043 y = gauss () 00044 self.plot2D ( x , y , ' x vs y ' , -2 , 2 , -4 , 4 ) 00045 self.plot2D ( x , y+3*x , ' x vs y+3x ' , -2 , 2 , -4 , 4 ) 00046 self.plot2D ( x , y-3*x , ' x vs y-3x ' , -2 , 2 , -4 , 4 ) 00047 self.profile1D ( x , y , ' x vs y (profile)' , -2 , 2 ) 00048 self.profile1D ( x , y+3*x , ' x vs y+3x (profile)' , -2 , 2 ) 00049 self.profile1D ( x , y-3*x , ' x vs y-3y (profile)' , -2 , 2 ) 00050 return SUCCESS 00051 00052 00053 # ============================================================================= 00054 # job configuration 00055 # =============================================================================