cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator

#include <include/CepGen/Utils/Drawer.h>

+ Inheritance diagram for Drawer:
+ Collaboration diagram for Drawer:

Classes

class  Mode
 

Public Member Functions

 Drawer (const ParametersList &params)
 Build a drawing utility.
 
virtual const Drawerdraw (const Graph1D &, const Mode &=Mode::none) const =0
 Draw a one-dimensional graph.
 
virtual const Drawerdraw (const Graph2D &, const Mode &=Mode::none) const =0
 Draw a two-dimensional graph Draw a one-dimensional histogram.
 
virtual const Drawerdraw (const Hist1D &, const Mode &=Mode::none) const =0
 
virtual const Drawerdraw (const Hist2D &, const Mode &=Mode::none) const =0
 Draw a two-dimensional histogram.
 
virtual const Drawerdraw (const DrawableColl &, const std::string &name="", const std::string &title="", const Mode &=Mode::none) const =0
 Draw a collection of drawables.
 
virtual std::ostream & operator<< (std::ostream &os) const
 Output operator (when necessary)
 
const std::string & name () const
 Module unique indexing name.
 
bool operator== (const SteeredObject &oth) const
 Equality operator.
 
bool operator!= (const SteeredObject &oth) const
 Inequality operator.
 
const ParametersListparameters () const override
 Module user-defined parameters.
 
void setParameters (const ParametersList &params) override
 Set module parameters.
 
void setDescribedParameters (const ParametersList &params_orig)
 Set (documented) module parameters.
 

Static Public Member Functions

static ParametersDescription description ()
 Describe all steering parameters for this module.
 

Protected Member Functions

template<typename T >
steer (const std::string &key) const
 Retrieve a parameters as previously steered.
 
template<typename T , typename U >
U steerAs (const std::string &key) const
 Retrieve a recast parameters as previously steered.
 
std::string steerName () const
 Retrieve module name from parameters.
 
std::string steerPath (const std::string &key) const
 Retrieve a path from common search paths.
 

Protected Attributes

const std::string name_
 Module unique indexing name.
 
ParametersList params_
 Module parameters.
 

Friends

class Drawable
 
class Graph1D
 
class Graph2D
 
class Hist1D
 
class Hist2D
 

Detailed Description

Definition at line 34 of file Drawer.h.

Constructor & Destructor Documentation

◆ Drawer()

Drawer ( const ParametersList & params)
explicit

Member Function Documentation

◆ description()

static ParametersDescription description ( )
staticinherited

Definition at line 36 of file NamedModule.h.

◆ draw() [1/5]

virtual const Drawer & draw ( const DrawableColl & ,
const std::string & name = "",
const std::string & title = "",
const Mode & = Mode::none ) const
pure virtual

◆ draw() [2/5]

virtual const Drawer & draw ( const Graph1D & ,
const Mode & = Mode::none ) const
pure virtual

◆ draw() [3/5]

virtual const Drawer & draw ( const Graph2D & ,
const Mode & = Mode::none ) const
pure virtual

◆ draw() [4/5]

virtual const Drawer & draw ( const Hist1D & ,
const Mode & = Mode::none ) const
pure virtual

◆ draw() [5/5]

virtual const Drawer & draw ( const Hist2D & ,
const Mode & = Mode::none ) const
pure virtual

◆ name()

const std::string & name ( ) const
inherited

Definition at line 42 of file NamedModule.h.

◆ operator!=()

template<typename T >
bool operator!= ( const SteeredObject< T > & oth) const
inherited

Definition at line 50 of file SteeredObject.h.

◆ operator<<()

virtual std::ostream & operator<< ( std::ostream & os) const
virtual

Definition at line 80 of file Drawer.h.

◆ operator==()

template<typename T >
bool operator== ( const SteeredObject< T > & oth) const
inherited

Definition at line 48 of file SteeredObject.h.

◆ parameters()

template<typename T >
const ParametersList & parameters ( ) const
overridevirtualinherited

Reimplemented from Steerable.

Definition at line 53 of file SteeredObject.h.

◆ setDescribedParameters()

template<typename T >
void setDescribedParameters ( const ParametersList & params_orig)
inherited

Definition at line 72 of file SteeredObject.h.

◆ setParameters()

template<typename T >
void setParameters ( const ParametersList & )
overridevirtualinherited

Reimplemented from Steerable.

Definition at line 61 of file SteeredObject.h.

◆ steer()

template<typename T >
T steer ( const std::string & key) const
protectedinherited

Definition at line 39 of file Steerable.h.

◆ steerAs()

template<typename T , typename U >
U steerAs ( const std::string & key) const
protectedinherited

Definition at line 44 of file Steerable.h.

◆ steerName()

std::string steerName ( ) const
protectedinherited

Definition at line 48 of file Steerable.h.

◆ steerPath()

std::string steerPath ( const std::string & key) const
protectedinherited

Friends And Related Symbol Documentation

◆ Drawable

friend class Drawable
friend

Definition at line 83 of file Drawer.h.

◆ Graph1D

friend class Graph1D
friend

Definition at line 84 of file Drawer.h.

◆ Graph2D

friend class Graph2D
friend

Definition at line 85 of file Drawer.h.

◆ Hist1D

friend class Hist1D
friend

Definition at line 86 of file Drawer.h.

◆ Hist2D

friend class Hist2D
friend

Definition at line 87 of file Drawer.h.

Member Data Documentation

◆ name_

const std::string name_
protectedinherited

Definition at line 45 of file NamedModule.h.

◆ params_

ParametersList params_
mutableprotectedinherited

Definition at line 50 of file Steerable.h.