ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
EventScan Class Referencefinal

#include <event_scan.hpp>

Inheritance diagram for EventScan:
Figure

Classes

class  SingleScan
 

Public Member Functions

 EventScan (const std::string &name, const NamedFunc &cut, const std::vector< NamedFunc > &columns, const std::vector< std::shared_ptr< Process > > &processes, unsigned precision=10)
 
 EventScan (EventScan &&)=default
 
EventScanoperator= (EventScan &&)=default
 
 ~EventScan ()=default
 
void Print (double luminosity, const std::string &subdir) final
 
std::set< const Process * > GetProcesses () const final
 
FigureComponentGetComponent (const Process *process) final
 
unsigned Precision () const
 
EventScanPrecision (unsigned precision)
 
- Public Member Functions inherited from Figure
 Figure ()=default
 
 Figure (const Figure &)=default
 
Figureoperator= (const Figure &)=default
 
 Figure (Figure &&)=default
 
Figureoperator= (Figure &&)=default
 
virtual ~Figure ()=default
 

Public Attributes

std::string name_
 Name of scan for saving to file. More...
 
NamedFunc cut_
 Cut restricting printed events/objects. More...
 
std::vector< NamedFunccolumns_
 Variables to print. More...
 

Private Member Functions

 EventScan (const EventScan &)=delete
 
EventScanoperator= (const EventScan &)=delete
 
 EventScan ()=delete
 

Private Attributes

std::vector< std::unique_ptr< SingleScan > > scans_
 One scan for each process. More...
 
unsigned precision_
 Decimal places to print. More...
 
unsigned width_
 Width of column in characters. Determined from precision. More...
 

Detailed Description

Definition at line 12 of file event_scan.hpp.

Constructor & Destructor Documentation

EventScan::EventScan ( const std::string &  name,
const NamedFunc cut,
const std::vector< NamedFunc > &  columns,
const std::vector< std::shared_ptr< Process > > &  processes,
unsigned  precision = 10 
)
EventScan::EventScan ( EventScan &&  )
default
EventScan::~EventScan ( )
default
EventScan::EventScan ( const EventScan )
privatedelete
EventScan::EventScan ( )
privatedelete

Member Function Documentation

Figure::FigureComponent * EventScan::GetComponent ( const Process process)
finalvirtual

Implements Figure.

Definition at line 112 of file event_scan.cpp.

References scans_.

set< const Process * > EventScan::GetProcesses ( ) const
finalvirtual

Implements Figure.

Definition at line 104 of file event_scan.cpp.

References scans_.

EventScan& EventScan::operator= ( EventScan &&  )
default
EventScan& EventScan::operator= ( const EventScan )
privatedelete
unsigned EventScan::Precision ( ) const

Definition at line 119 of file event_scan.cpp.

References precision_.

EventScan & EventScan::Precision ( unsigned  precision)

Definition at line 123 of file event_scan.cpp.

References precision_, scans_, and width_.

void EventScan::Print ( double  luminosity,
const std::string &  subdir 
)
finalvirtual

Implements Figure.

Definition at line 97 of file event_scan.cpp.

References CodeToPlainText(), name_, and scans_.

Member Data Documentation

std::vector<NamedFunc> EventScan::columns_

Variables to print.

Definition at line 59 of file event_scan.hpp.

Referenced by EventScan::SingleScan::Precision(), and EventScan::SingleScan::RecordEvent().

NamedFunc EventScan::cut_

Cut restricting printed events/objects.

Definition at line 58 of file event_scan.hpp.

Referenced by EventScan::SingleScan::Precision().

std::string EventScan::name_

Name of scan for saving to file.

Definition at line 57 of file event_scan.hpp.

Referenced by EventScan::SingleScan::Precision(), and Print().

unsigned EventScan::precision_
private

Decimal places to print.

Definition at line 63 of file event_scan.hpp.

Referenced by EventScan::SingleScan::Precision(), and Precision().

std::vector<std::unique_ptr<SingleScan> > EventScan::scans_
private

One scan for each process.

Definition at line 62 of file event_scan.hpp.

Referenced by GetComponent(), GetProcesses(), EventScan::SingleScan::Precision(), Precision(), and Print().

unsigned EventScan::width_
private

Width of column in characters. Determined from precision.

Definition at line 64 of file event_scan.hpp.

Referenced by EventScan::SingleScan::Precision(), Precision(), and EventScan::SingleScan::RecordEvent().


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