Gaudi Framework, version v23r5

Home   Generated: Wed Nov 28 2012
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | List of all members
HistoTool Class Reference

Simple tool for histogramming (component) More...

#include <components/HistoTool.h>

Inheritance diagram for HistoTool:
Inheritance graph
[legend]
Collaboration diagram for HistoTool:
Collaboration graph
[legend]

Public Types

typedef IHistoTool::HistoID HistoID
 
- Public Types inherited from IHistoTool
typedef Histos::HistoID HistoID
 the actual type for histogram identifier (HBOOK style)
 

Public Member Functions

 HistoTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
 
virtual ~HistoTool ()
 
virtual AIDA::IHistogram1Dplot1D (const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
 fill the 1D histogram (book on demand)
 
virtual AIDA::IHistogram1Dplot1D (const double value, const HistoID &ID, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
 fill the 1D histogram with forced ID assignement (book on demand)
 
virtual AIDA::IHistogram2D * plot2D (const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
 fill the 2D histogram (book on demand)
 
virtual AIDA::IHistogram2D * plot2D (const double valueX, const double valueY, const HistoID &ID, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
 fill the 2D histogram with forced ID assignment (book on demand)
 
virtual AIDA::IHistogram3Dplot3D (const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0) const
 fill the 3D histogram (book on demand)
 
virtual AIDA::IHistogram3Dplot3D (const double valueX, const double valueY, const double valueZ, const HistoID &ID, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0) const
 fill the 3D histogram with forced ID assignment (book on demand)
 
virtual AIDA::IHistogram1Dbook1D (const std::string &title, const double low=0, const double high=100, const unsigned long bins=100) const
 book the 1D histogram
 
virtual AIDA::IHistogram2D * book2D (const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=50, const double lowY=0, const double highY=100, const unsigned long binsY=50) const
 book the 2D histogram
 
virtual AIDA::IHistogram3Dbook3D (const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=10, const double lowY=0, const double highY=100, const unsigned long binsY=10, const double lowZ=0, const double highZ=100, const unsigned long binsZ=10) const
 book the 3D histogram
 
virtual AIDA::IHistogram1Dbook1D (const HistoID &ID, const std::string &title="", const double low=0, const double high=100, const unsigned long bins=100) const
 book the 1D histogram with forced ID
 
virtual AIDA::IHistogram2D * book2D (const HistoID &ID, const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=50, const double lowY=0, const double highY=100, const unsigned long binsY=50) const
 book the 2D histogram with forced ID
 
virtual AIDA::IHistogram3Dbook3D (const HistoID &ID, const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=10, const double lowY=0, const double highY=100, const unsigned long binsY=10, const double lowZ=0, const double highZ=100, const unsigned long binsZ=10) const
 book the 3D histogram with forced ID
 
virtual AIDA::IHistogram1Dfill (AIDA::IHistogram1D *histo, const double value, const double weight, const std::string &title="") const
 fill the 1D histo with the value and weight
 
virtual AIDA::IHistogram2D * fill (AIDA::IHistogram2D *histo, const double valueX, const double valueY, const double weight, const std::string &title="") const
 fill the 2D histo with the value and weight
 
virtual AIDA::IHistogram3Dfill (AIDA::IHistogram3D *histo, const double valueX, const double valueY, const double valueZ, const double weight, const std::string &title="") const
 fill the 3D histo with the value and weight
 
virtual AIDA::IHistogram1Dhisto1D (const std::string &title) const
 access the EXISTING 1D histogram by title return the pointer to existing 1D histogram or NULL
 
virtual AIDA::IHistogram1Dhisto1D (const HistoID &ID) const
 access the EXISTING 1D histogram by ID return the pointer to existing 1D histogram or NULL
 
virtual AIDA::IHistogram2D * histo2D (const std::string &title) const
 access the EXISTING 2D histogram by title return the pointer to existing 2D histogram or NULL
 
virtual AIDA::IHistogram2D * histo2D (const HistoID &ID) const
 access the EXISTING 2D histogram by ID return the pointer to existing 2D histogram or NULL
 
virtual AIDA::IHistogram3Dhisto3D (const std::string &title) const
 access the EXISTING 3D histogram by title return the pointer to existing 3D histogram or NULL
 
virtual AIDA::IHistogram3Dhisto3D (const HistoID &ID) const
 access the EXISTING 3D histogram by ID return the pointer to existing 3D histogram or NULL
 
virtual bool histoExists (const std::string &title) const
 check the existence AND validity of the histogram with given title
 
virtual bool histoExists (const HistoID &ID) const
 check the existence AND validity of the histogram with given title
 
- Public Member Functions inherited from IHistoTool
 DeclareInterfaceID (IHistoTool, 2, 0)
 InterfaceID.
 
AIDA::IHistogram1Dplot (const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
 fill the 1D histogram (book on demand)
 
AIDA::IHistogram1Dplot (const double value, const HistoID &ID, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
 fill the 1D histogram with forced ID assignment (book on demand)
 
AIDA::IHistogram1Dbook (const std::string &title, const double low=0, const double high=100, const unsigned long bins=100) const
 book the 1D histogram
 
AIDA::IHistogram1Dbook (const HistoID &ID, const std::string &title="", const double low=0, const double high=100, const unsigned long bins=100) const
 book the 1D histogram with forced ID
 
AIDA::IHistogram1Dhisto (const std::string &title) const
 access the EXISTING 1D histogram by title
 
AIDA::IHistogram1Dhisto (const HistoID &ID) const
 access the EXISTING 1D histogram by ID
 
template<class FUNCTION , class OBJECT >
AIDA::IHistogram1Dplot (const FUNCTION &func, OBJECT first, OBJECT last, const std::string &title, const double low, const double high, const unsigned long bins=100) const
 fill the 1D histogram with information from [first,last) sequence
 
template<class FUNCTION , class OBJECT >
AIDA::IHistogram1Dplot (const FUNCTION &func, OBJECT first, OBJECT last, const HistoID &ID, const std::string &title, const double low, const double high, const unsigned long bins=100) const
 fill the 1D histogram with forced ID and information from [first,last) sequence
 
template<class FUNCTION , class OBJECT , class WEIGHT >
AIDA::IHistogram1Dplot (const FUNCTION &func, OBJECT first, OBJECT last, const std::string &title, const double low, const double high, const unsigned long bins, const WEIGHT &weight) const
 book and fill the 1D histogram with information from [first,last) sequence with given weight
 
template<class FUNCTION , class OBJECT , class WEIGHT >
AIDA::IHistogram1Dplot (const FUNCTION &func, OBJECT first, OBJECT last, const HistoID &ID, const std::string &title, const double low, const double high, const unsigned long bins, const WEIGHT &weight) const
 book and fill the 1D histogram with forced ID and information from [first,last) sequence with given weight
 
- Public Member Functions inherited from IAlgTool
 DeclareInterfaceID (IAlgTool, 3, 0)
 InterfaceID.
 
virtual ~IAlgTool ()
 Virtual destructor.
 
virtual const std::stringtype () const =0
 The type of an AlgTool, meaning the concrete AlgTool class.
 
virtual const IInterfaceparent () const =0
 The parent of the concrete AlgTool.
 
virtual StatusCode configure ()=0
 Configuration (from OFFLINE to CONFIGURED).
 
virtual StatusCode initialize ()=0
 Initialization (from CONFIGURED to INITIALIZED).
 
virtual StatusCode start ()=0
 Start (from INITIALIZED to RUNNING).
 
virtual StatusCode stop ()=0
 Stop (from RUNNING to INITIALIZED).
 
virtual StatusCode finalize ()=0
 Finalize (from INITIALIZED to CONFIGURED).
 
virtual StatusCode terminate ()=0
 Initialization (from CONFIGURED to OFFLINE).
 
virtual StatusCode reinitialize ()=0
 Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
 
virtual StatusCode restart ()=0
 Initialization (from RUNNING to RUNNING, via INITIALIZED).
 
virtual Gaudi::StateMachine::State FSMState () const =0
 Get the current state.
 
virtual StatusCode sysInitialize ()=0
 Initialization of the Tool.
 
virtual StatusCode sysStart ()=0
 Initialization of the Tool.
 
virtual StatusCode sysStop ()=0
 Initialization of the Tool.
 
virtual StatusCode sysFinalize ()=0
 Finalization of the Tool.
 
virtual StatusCode sysReinitialize ()=0
 Initialization of the Tool.
 
virtual StatusCode sysRestart ()=0
 Initialization of the Tool.
 
virtual unsigned long refCount () const =0
 Current number of reference counts.
 
- Public Member Functions inherited from INamedInterface
 DeclareInterfaceID (INamedInterface, 1, 0)
 InterfaceID.
 
virtual const std::stringname () const =0
 Retrieve the name of the instance.
 
virtual ~INamedInterface ()
 Virtual destructor (always needed for abstract classes).
 
- Public Member Functions inherited from IInterface
virtual void * i_cast (const InterfaceID &) const =0
 main cast function
 
virtual std::vector< std::stringgetInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance.
 
virtual unsigned long release ()=0
 Release Interface instance.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()
 Virtual destructor.
 

Private Member Functions

 HistoTool ()
 
 HistoTool (const HistoTool &)
 
HistoTooloperator= (const HistoTool &)
 

Additional Inherited Members

- Static Public Member Functions inherited from GaudiTool
static bool enableSummary (bool)
 enable/disable summary
 
static bool summaryEnabled ()
 is summary enabled?
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 
- Protected Types inherited from GaudiCommon< AlgTool >
typedef std::map< std::string,
StatEntity
Statistics
 the actual type of general counters
 
typedef std::map< std::string,
unsigned int
Counter
 the actual type error/warning counter
 
typedef std::vector< IAlgTool * > AlgTools
 storage for active tools
 
typedef GaudiUtils::HashMap
< std::string, SmartIF
< IService > > 
Services
 storage for active services
 
- Protected Member Functions inherited from GaudiHistoTool
 GaudiHistoTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor (protected)
 
virtual ~GaudiHistoTool ()
 destructor, virtual and protected
 
virtual StatusCode initialize ()
 standard initialization method
 
virtual StatusCode finalize ()
 standard finalization method
 
- Protected Member Functions inherited from IHistoTool
virtual ~IHistoTool ()
 destructor
 
- Protected Attributes inherited from GaudiCommon< AlgTool >
ICounterSummarySvcm_counterSummarySvc
 a pointer to the CounterSummarySvc
 
std::vector< std::stringm_counterList
 list of counters to declare. Set by property CounterList. This can be a regular expression.
 
std::vector< std::stringm_statEntityList
 
- Static Protected Attributes inherited from GaudiCommon< AlgTool >
static const bool IgnoreRootInTES
 Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods.
 
static const bool UseRootInTES
 Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods.
 

Detailed Description

Simple tool for histogramming (component)

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
2004-06-28

Definition at line 30 of file HistoTool.h.

Member Typedef Documentation

Definition at line 34 of file HistoTool.h.

Constructor & Destructor Documentation

HistoTool::HistoTool ( const std::string type,
const std::string name,
const IInterface parent 
)

Standard constructor.

See Also
GaudiHistoTool
GaudiTool
AlgTool
Parameters
typetool type
nametool name
parentpointer to the parent object

Definition at line 29 of file HistoTool.cpp.

: GaudiHistoTool ( type, name , parent )
{
declareInterface<IHistoTool>(this);
}
HistoTool::~HistoTool ( )
virtual

Definition at line 42 of file HistoTool.cpp.

{}
HistoTool::HistoTool ( )
private
HistoTool::HistoTool ( const HistoTool )
private

Member Function Documentation

virtual AIDA::IHistogram1D* HistoTool::book1D ( const std::string title,
const double  low = 0,
const double  high = 100,
const unsigned long  bins = 100 
) const
inlinevirtual

book the 1D histogram

The histogram will be assigned a unique identifier

See Also
IHistogram1D
Parameters
titlehistogram title (must be unique within the algorithm)
lowlow limit for histogram
highhigh limit for histogram
binsnumber of bins
Returns
pointer to AIDA 1D histogram

Implements IHistoTool.

Definition at line 171 of file HistoTool.h.

{
return GaudiHistoTool::book1D ( title , low , high , bins ) ;
};
virtual AIDA::IHistogram1D* HistoTool::book1D ( const HistoID ID,
const std::string title = "",
const double  low = 0,
const double  high = 100,
const unsigned long  bins = 100 
) const
inlinevirtual

book the 1D histogram with forced ID

See Also
IHistogram1D
Parameters
IDunique histogram ID
titlehistogram title (must be unique within the algorithm)
lowlow limit for histogram
highhigh limit for histogram
binsnumber of bins
Returns
pointer to AIDA histogram

Implements IHistoTool.

Definition at line 213 of file HistoTool.h.

{
return GaudiHistoTool::book1D ( ID , title , low , high , bins ) ;
};
virtual AIDA::IHistogram2D* HistoTool::book2D ( const std::string title,
const double  lowX = 0,
const double  highX = 100,
const unsigned long  binsX = 50,
const double  lowY = 0,
const double  highY = 100,
const unsigned long  binsY = 50 
) const
inlinevirtual

book the 2D histogram

The histogram will be assigned a unique identifier

See Also
IHistogram2D
Parameters
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
binsXnumber of bins in x
lowYlow y limit for histogram
highYhigh y limit for histogram
binsYnumber of bins in y
Returns
pointer to AIDA 2D histogram

Implements IHistoTool.

Definition at line 181 of file HistoTool.h.

{
return GaudiHistoTool::book2D ( title, lowX, highX, binsX, lowY, highY, binsY ) ;
}
virtual AIDA::IHistogram2D* HistoTool::book2D ( const HistoID ID,
const std::string title,
const double  lowX = 0,
const double  highX = 100,
const unsigned long  binsX = 50,
const double  lowY = 0,
const double  highY = 100,
const unsigned long  binsY = 50 
) const
inlinevirtual

book the 2D histogram with forced ID

See Also
IHistogram2D
Parameters
IDunique histogram ID
titlehistogram title (must be unique within the algorithm)
lowlow limit for histogram
highhigh limit for histogram
binsnumber of bins
Returns
pointer to AIDA histogram

Implements IHistoTool.

Definition at line 224 of file HistoTool.h.

{
return GaudiHistoTool::book2D ( ID, title, lowX, highX, binsX, lowY, highY, binsY ) ;
}
virtual AIDA::IHistogram3D* HistoTool::book3D ( const std::string title,
const double  lowX = 0,
const double  highX = 100,
const unsigned long  binsX = 10,
const double  lowY = 0,
const double  highY = 100,
const unsigned long  binsY = 10,
const double  lowZ = 0,
const double  highZ = 100,
const unsigned long  binsZ = 10 
) const
inlinevirtual

book the 3D histogram

The histogram will be assigned a unique identifier

See Also
IHistogram3D
Parameters
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
binsXnumber of bins in x
lowYlow y limit for histogram
highYhigh y limit for histogram
binsYnumber of bins in y
lowZlow y limit for histogram
highZhigh y limit for histogram
binsZnumber of bins in y
Returns
pointer to AIDA 3D histogram

Implements IHistoTool.

Definition at line 194 of file HistoTool.h.

{
return GaudiHistoTool::book3D ( title,
lowX, highX, binsX,
lowY, highY, binsY,
lowZ, highZ, binsZ ) ;
}
virtual AIDA::IHistogram3D* HistoTool::book3D ( const HistoID ID,
const std::string title,
const double  lowX = 0,
const double  highX = 100,
const unsigned long  binsX = 10,
const double  lowY = 0,
const double  highY = 100,
const unsigned long  binsY = 10,
const double  lowZ = 0,
const double  highZ = 100,
const unsigned long  binsZ = 10 
) const
inlinevirtual

book the 3D histogram with forced ID

See Also
IHistogram3D
Parameters
IDunique histogram ID
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
binsXnumber of bins in x
lowYlow y limit for histogram
highYhigh y limit for histogram
binsYnumber of bins in y
lowZlow y limit for histogram
highZhigh y limit for histogram
binsZnumber of bins in y
Returns
pointer to AIDA 3D histogram

Implements IHistoTool.

Definition at line 238 of file HistoTool.h.

{
return GaudiHistoTool::book3D ( ID, title,
lowX, highX, binsX,
lowY, highY, binsY,
lowZ, highZ, binsZ ) ;
}
virtual AIDA::IHistogram1D* HistoTool::fill ( AIDA::IHistogram1D histo,
const double  value,
const double  weight,
const std::string title = "" 
) const
inlinevirtual

fill the 1D histo with the value and weight

Parameters
histo1D histogram to be filled
valuevalue to be put into the histogram
weightweight to be used
titlehistogram title (to be used for error report)
Returns
pointer to AIDA 1D histogram

Implements IHistoTool.

Definition at line 258 of file HistoTool.h.

{
return GaudiHistoTool::fill ( histo , value , weight , title ) ;
};
virtual AIDA::IHistogram2D* HistoTool::fill ( AIDA::IHistogram2D *  histo,
const double  valueX,
const double  valueY,
const double  weight,
const std::string title = "" 
) const
inlinevirtual

fill the 2D histo with the value and weight

Parameters
histo2D histogram to be filled
valueXx value to be put into the histogram
valueYy value to be put into the histogram
weightweight to be used
titlehistogram title (to be used for error report)
Returns
pointer to AIDA 2D histogram

Implements IHistoTool.

Definition at line 268 of file HistoTool.h.

{
return GaudiHistoTool::fill ( histo , valueX , valueY , weight , title ) ;
};
virtual AIDA::IHistogram3D* HistoTool::fill ( AIDA::IHistogram3D histo,
const double  valueX,
const double  valueY,
const double  valueZ,
const double  weight,
const std::string title = "" 
) const
inlinevirtual

fill the 3D histo with the value and weight

Parameters
histo3D histogram to be filled
valueXx value to be put into the histogram
valueYy value to be put into the histogram
valueZz value to be put into the histogram
weightweight to be used
titlehistogram title (to be used for error report)
Returns
pointer to AIDA 3D histogram

Implements IHistoTool.

Definition at line 279 of file HistoTool.h.

{
return GaudiHistoTool::fill ( histo , valueX , valueY , valueZ, weight , title ) ;
};
virtual AIDA::IHistogram1D* HistoTool::histo1D ( const std::string title) const
inlinevirtual

access the EXISTING 1D histogram by title return the pointer to existing 1D histogram or NULL

Implements IHistoTool.

Definition at line 290 of file HistoTool.h.

{ return GaudiHistoTool::histo1D ( title ) ; }
virtual AIDA::IHistogram1D* HistoTool::histo1D ( const HistoID ID) const
inlinevirtual

access the EXISTING 1D histogram by ID return the pointer to existing 1D histogram or NULL

Implements IHistoTool.

Definition at line 294 of file HistoTool.h.

{ return GaudiHistoTool::histo1D ( ID ) ; }
virtual AIDA::IHistogram2D* HistoTool::histo2D ( const std::string title) const
inlinevirtual

access the EXISTING 2D histogram by title return the pointer to existing 2D histogram or NULL

Implements IHistoTool.

Definition at line 298 of file HistoTool.h.

{ return GaudiHistoTool::histo2D ( title ) ; }
virtual AIDA::IHistogram2D* HistoTool::histo2D ( const HistoID ID) const
inlinevirtual

access the EXISTING 2D histogram by ID return the pointer to existing 2D histogram or NULL

Implements IHistoTool.

Definition at line 302 of file HistoTool.h.

{ return GaudiHistoTool::histo2D ( ID ) ; }
virtual AIDA::IHistogram3D* HistoTool::histo3D ( const std::string title) const
inlinevirtual

access the EXISTING 3D histogram by title return the pointer to existing 3D histogram or NULL

Implements IHistoTool.

Definition at line 306 of file HistoTool.h.

{ return GaudiHistoTool::histo3D ( title ) ; }
virtual AIDA::IHistogram3D* HistoTool::histo3D ( const HistoID ID) const
inlinevirtual

access the EXISTING 3D histogram by ID return the pointer to existing 3D histogram or NULL

Implements IHistoTool.

Definition at line 310 of file HistoTool.h.

{ return GaudiHistoTool::histo3D ( ID ) ; }
virtual bool HistoTool::histoExists ( const std::string title) const
inlinevirtual

check the existence AND validity of the histogram with given title

Implements IHistoTool.

Definition at line 314 of file HistoTool.h.

{ return GaudiHistoTool::histoExists ( title ) ; }
virtual bool HistoTool::histoExists ( const HistoID ID) const
inlinevirtual

check the existence AND validity of the histogram with given title

Implements IHistoTool.

Definition at line 318 of file HistoTool.h.

{ return GaudiHistoTool::histoExists ( ID ) ; }
HistoTool& HistoTool::operator= ( const HistoTool )
private
virtual AIDA::IHistogram1D* HistoTool::plot1D ( const double  value,
const std::string title,
const double  low,
const double  high,
const unsigned long  bins = 100,
const double  weight = 1.0 
) const
inlinevirtual

fill the 1D histogram (book on demand)

const double mass = ... ;
plot1D( mass , "Invariant Mass" , 2.5 , 3.5 , 100 )
  • This example illustrates the filling of the histogram titled "InvariantMass" with value mass .
  • If the histogram with given title does not exist yet it will be automatically booked with parameters low equal to 2.5, parameters high equal to 3.5 and bins equal to 100.

The histogram will get a unique integer identifier automatically assigned.

See Also
AIDA::IHistogram1D
Parameters
valuevalue to be filled
titlehistogram title (must be unique within the algorithm)
lowlow limit for histogram
highhigh limit for histogram
binsnumber of bins
weightweight
Returns
pointer to AIDA 1D histogram

Implements IHistoTool.

Definition at line 57 of file HistoTool.h.

{
( value , title , low , high , bins , weight ) ;
};
virtual AIDA::IHistogram1D* HistoTool::plot1D ( const double  value,
const HistoID ID,
const std::string title,
const double  low,
const double  high,
const unsigned long  bins = 100,
const double  weight = 1.0 
) const
inlinevirtual

fill the 1D histogram with forced ID assignement (book on demand)

const double mass = ... ;
plot1D( mass , 15 , "Invariant Mass" , 2.5 , 3.5 , 100 )
  • This example illustrates the filling of the 1D histogram ID=15 titled "Invariant Mass" with value mass .
  • If the histogram with given ID does not exist yet it will be automatically booked with parameters low equal to 2.5, parameters high equal to 3.5 and bins equal to 100.
Attention
If the histogram with given ID is already booked through automatic assignement of histogram ID, the error will not be detected. Therefore it is recommended to use non-trivial histogram ID offset (property "HistoOffSet") if one need to combine these techniques together It is still desirable to use the unique histogram title to avoid a bad interference.

Note : This method is more efficient that the similar method without forced ID, since the histogram lookup is faster using a numerical ID.

See Also
AIDA::IHistogram1D
Parameters
valuevalue to be filled
IDhistogram identifier
titlehistogram title (must be unique within the algorithm)
lowlow limit for histogram
highhigh limit for histogram
binsnumber of bins
weightweight
Returns
pointer to AIDA histogram

Implements IHistoTool.

Definition at line 71 of file HistoTool.h.

{
( value , ID , title , low , high , bins , weight ) ;
};
virtual AIDA::IHistogram2D* HistoTool::plot2D ( const double  valueX,
const double  valueY,
const std::string title,
const double  lowX,
const double  highX,
const double  lowY,
const double  highY,
const unsigned long  binsX = 50,
const unsigned long  binsY = 50,
const double  weight = 1.0 
) const
inlinevirtual

fill the 2D histogram (book on demand)

const double mass1 = ... ;
const double mass2 = ... ;
plot2D( mass1, mass2, "Invariant Mass2 versus Mass1" ,2.5 ,3.5, 4.5, 5.5, 100, 200 );
  • This example illustrates the filling of the 2D histogram titled "Invariant Mass2 versus Mass1" with values mass1 and mass2 .
  • If the histogram with given title does not exist yet it will be automatically booked with parameters lowX equal to 2.5, highX equal to 3.5, lowY equal to 4.5, highY equal to 5.5, binsX equal to 100 and binsY equal to 200.

The histogram will get a unique integer identifier automatically assigned

See Also
AIDA::IHistogram2D
Parameters
valueXx value to be filled
valueYy value to be filled
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
lowYlow y limit for histogram
highYhigh y limit for histogram
binsXnumber of bins in x
binsYnumber of bins in y
weightweight
Returns
pointer to AIDA 2D histogram

Implements IHistoTool.

Definition at line 87 of file HistoTool.h.

{
( valueX, valueY, title, lowX, highX, lowY, highY, binsX, binsY, weight ) ;
};
virtual AIDA::IHistogram2D* HistoTool::plot2D ( const double  valueX,
const double  valueY,
const HistoID ID,
const std::string title,
const double  lowX,
const double  highX,
const double  lowY,
const double  highY,
const unsigned long  binsX = 50,
const unsigned long  binsY = 50,
const double  weight = 1.0 
) const
inlinevirtual

fill the 2D histogram with forced ID assignment (book on demand)

const double mass1 = ... ;
const double mass2 = ... ;
plot2D( mass1, mass2, 15, "Invariant Mass2 versus Mass1" ,2.5 ,3.5, 4.5, 5.5, 100, 200 );
  • This example illustrates the filling of the 2D histogram ID=15 titled "Invariant Mass2 versus Mass1" with values mass1 and mass2 .
  • If the histogram with given title does not exist yet it will be automatically booked with parameters lowX equal to 2.5, highX equal to 3.5, lowY equal to 4.5, highY equal to 5.5, binsX equal to 100 and binsY equal to 200.
Attention
If the histogram with given ID is already booked through automatic assignment of histogram ID, the error will not be detected. Therefore it is recommended to use non-trivial histogram ID offset (property "HistoOffSet") if one need to combine these techniques together It is still desirable to use the unique histogram title to avoid a bad interference

Note : This method is more efficient that the similar method without forced ID, since the histogram lookup is faster using a numerical ID.

See Also
AIDA::IHistogram2D
Parameters
valueXx value to be filled
valueYy value to be filled
IDHistogram ID to use
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
lowYlow y limit for histogram
highYhigh y limit for histogram
binsXnumber of bins in x
binsYnumber of bins in y
weightweight
Returns
pointer to AIDA 2D histogram

Implements IHistoTool.

Definition at line 104 of file HistoTool.h.

{
( valueX, valueY, ID, title, lowX, highX, lowY, highY, binsX, binsY, weight ) ;
};
virtual AIDA::IHistogram3D* HistoTool::plot3D ( const double  valueX,
const double  valueY,
const double  valueZ,
const std::string title,
const double  lowX,
const double  highX,
const double  lowY,
const double  highY,
const double  lowZ,
const double  highZ,
const unsigned long  binsX = 10,
const unsigned long  binsY = 10,
const unsigned long  binsZ = 10,
const double  weight = 1.0 
) const
inlinevirtual

fill the 3D histogram (book on demand)

const double mass1 = ... ;
const double mass2 = ... ;
const double mass3 = ... ;
plot3D( X, Y, Z, "Space Points" ,2.5 ,3.5, 4.5, 5.5, 6.5, 7.5, 10, 20, 30 );
  • This example illustrates the filling of the 3D histogram titled "Space Points" with values X, Y and Z.
  • If the histogram with given title does not exist yet it will be automatically booked with parameters lowX equal to 2.5, highX equal to 3.5, lowY equal to 4.5, highY equal to 5.5, lowZ equal to 6.5, highZ equal to 7.5, binsX equal to 10, binsY equal to 20 and binsZ equal to 30.

The histogram will get a unique integer identifier automatically assigned

See Also
AIDA::IHistogram3D
Parameters
valueXx value to be filled
valueYy value to be filled
valueZz value to be filled
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
lowYlow y limit for histogram
highYhigh y limit for histogram
lowZlow z limit for histogram
highZhigh z limit for histogram
binsXnumber of bins in x
binsYnumber of bins in y
binsZnumber of bins in z
weightweight
Returns
pointer to AIDA 3D histogram

Implements IHistoTool.

Definition at line 124 of file HistoTool.h.

{
( valueX, valueY, valueZ, title,
lowX, highX, lowY, highY, lowZ, highZ, binsX, binsY, binsZ, weight ) ;
};
virtual AIDA::IHistogram3D* HistoTool::plot3D ( const double  valueX,
const double  valueY,
const double  valueZ,
const HistoID ID,
const std::string title,
const double  lowX,
const double  highX,
const double  lowY,
const double  highY,
const double  lowZ,
const double  highZ,
const unsigned long  binsX = 10,
const unsigned long  binsY = 10,
const unsigned long  binsZ = 10,
const double  weight = 1.0 
) const
inlinevirtual

fill the 3D histogram with forced ID assignment (book on demand)

const double mass1 = ... ;
const double mass2 = ... ;
const double mass3 = ... ;
plot3D( X, Y, Z, "Space Points" ,2.5 ,3.5, 4.5, 5.5, 6.5, 7.5, 10, 20, 30 );
  • This example illustrates the filling of the 3D histogram titled "Space Points" with values X, Y and Z.
  • If the histogram with given title does not exist yet it will be automatically booked with parameters lowX equal to 2.5, highX equal to 3.5, lowY equal to 4.5, highY equal to 5.5, lowZ equal to 6.5, highZ equal to 7.5, binsX equal to 10, binsY equal to 20 and binsZ equal to 30.
Attention
If the histogram with given ID is already booked through automatic assignment of histogram ID, the error will not be detected. Therefore it is recommended to use non-trivial histogram ID offset (property "HistoOffSet") if one need to combine these techniques together It is still desirable to use the unique histogram title to avoid a bad interference

Note : This method is more efficient that the similar method without forced ID, since the histogram lookup is faster using a numerical ID.

See Also
AIDA::IHistogram3D
Parameters
valueXx value to be filled
valueYy value to be filled
valueZz value to be filled
IDHistogram ID to use
titlehistogram title (must be unique within the algorithm)
lowXlow x limit for histogram
highXhigh x limit for histogram
lowYlow y limit for histogram
highYhigh y limit for histogram
lowZlow z limit for histogram
highZhigh z limit for histogram
binsXnumber of bins in x
binsYnumber of bins in y
binsZnumber of bins in z
weightweight
Returns
pointer to AIDA 3D histogram

Implements IHistoTool.

Definition at line 146 of file HistoTool.h.

{
( valueX, valueY, valueZ, ID, title,
lowX, highX, lowY, highY, lowZ, highZ, binsX, binsY, binsZ, weight ) ;
};

The documentation for this class was generated from the following files:

Generated at Wed Nov 28 2012 12:17:29 for Gaudi Framework, version v23r5 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004