Cat
|
#include <inc/EmulateFE.h>
Public Types | |
typedef unsigned long | U32 |
typedef unsigned short | U16 |
typedef unsigned char | U8 |
![]() | |
enum | states { ERR =-1, NOT_OK, OK } |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Public Member Functions | |
EmulateFE () | |
Standard constructor. More... | |
virtual | ~EmulateFE () |
Destructor. More... | |
virtual StatusCode | initialize () |
virtual StatusCode | execute () |
virtual StatusCode | finalize () |
StatusCode | setFile (std::string filename) |
std::string | file () |
StatusCode | setNTriggers (int ntriggersMax) |
int | nTriggers () |
StatusCode | setGenerationType (bool type) |
bool | generationType () |
StatusCode | setSignalRate (float signalRate) |
float | signalRate () |
StatusCode | setPedestal (float pedestal) |
float | pedestal () |
StatusCode | setNoise (float noise) |
float | noise () |
![]() | |
Processus () | |
Standard constructor. More... | |
virtual | ~Processus () |
Destructor. More... | |
StatusCode | startProcessing () |
StatusCode | endProcessing () |
void | clean () |
void | setStorage (std::string storage) |
Data * | data () |
std::vector< double > | data (unsigned int row) |
std::vector< double > | data (std::string name) |
Histo1D * | hist1d (unsigned int row) |
Histo2D * | hist2d (unsigned int row) |
void | addDataStream (std::string name, std::string title) |
void | addHisto1d (TH1D *h) |
void | addHisto2d (TH2D *h) |
StatusCode | dataFill (int i, double val) |
StatusCode | dataFill (std::string name, double val) |
std::string | storage () |
void | setElement (Element *element) |
Element * | element () |
void | incNErrors () |
void | setNErrors (unsigned int) |
unsigned int | nErrors () |
TFile * | rootFile () |
void | openRootFile () |
void | closeRootFile () |
void | startChrono () |
void | setLogMsg (std::string logMsg) |
std::string | logMsg () |
void | setState (int state) |
double | elapsedTime () |
double | elapsedTime (time_t start) |
![]() | |
Object () | |
Standard constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
std::string | name () const |
std::string | type () |
unsigned char | id () |
std::string | title () |
void | msgSvc (int level, std::string msg, std::string name) |
void | msg (std::string mymsg) |
void | verbose (std::string mymsg) |
void | debug (std::string mymsg) |
void | info (std::string mymsg) |
void | warning (std::string mymsg) |
void | error (std::string mymsg) |
void | fatal (std::string mymsg) |
void | msg (std::string mymsg, std::string name) |
void | verbose (std::string mymsg, std::string name) |
void | debug (std::string mymsg, std::string name) |
void | info (std::string mymsg, std::string name) |
void | warning (std::string mymsg, std::string name) |
void | error (std::string mymsg, std::string name) |
void | fatal (std::string mymsg, std::string name) |
void | setName (std::string name) |
void | setType (std::string type) |
void | setId (unsigned char id) |
void | setTitle (std::string title) |
void | setDllName (std::string dllName) |
std::string | dllName () |
![]() | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Protected Member Functions | |
EmulateFE * | clone () |
StatusCode | generateValues () |
StatusCode | generateFile () |
StatusCode | processingFE () |
Private Attributes | |
TRandom | m_random |
FEB_v1 * | m_board |
std::string | m_filename |
int | m_nFile |
Options * | m_options |
int | m_typeGeneration |
float | m_signalRate |
float | m_pedestal |
float | m_noise |
int | m_adcin [16384] |
int | m_ntriggersMax |
int | m_ntriggers |
Additional Inherited Members | |
![]() | |
Element * | m_element |
![]() | |
std::string | m_attribString [10] |
Definition at line 18 of file EmulateFE.h.
typedef unsigned short EmulateFE::U16 |
Definition at line 21 of file EmulateFE.h.
typedef unsigned long EmulateFE::U32 |
Definition at line 20 of file EmulateFE.h.
typedef unsigned char EmulateFE::U8 |
Definition at line 22 of file EmulateFE.h.
Standard constructor.
Definition at line 25 of file EmulateFE.cpp.
References Object::setName(), Object::setTitle(), and Object::setType().
Referenced by clone().
|
virtual |
|
inlineprotectedvirtual |
processus termination virtual function
Implements Processus.
Definition at line 87 of file EmulateFE.h.
References EmulateFE(), generateFile(), generateValues(), and processingFE().
|
virtual |
processus execution virtual function
Implements Processus.
Definition at line 76 of file EmulateFE.cpp.
References Options::dataStorage(), Object::debug(), generateFile(), generateValues(), m_filename, m_ntriggersMax, m_options, processingFE(), and StatusCode::SUCCESS.
|
inline |
|
virtual |
processus termination virtual function
Implements Processus.
Definition at line 91 of file EmulateFE.cpp.
References StatusCode::SUCCESS.
|
protected |
Definition at line 133 of file EmulateFE.cpp.
References itos(), m_adcin, m_filename, m_nFile, m_noise, m_options, m_pedestal, m_signalRate, m_typeGeneration, Options::storageFullPath(), and StatusCode::SUCCESS.
Referenced by clone(), and execute().
|
protected |
Definition at line 98 of file EmulateFE.cpp.
References m_adcin, m_noise, m_pedestal, m_random, m_signalRate, m_typeGeneration, and StatusCode::SUCCESS.
Referenced by clone(), and execute().
|
inline |
|
virtual |
processus initialisation virtual function
Implements Processus.
Definition at line 49 of file EmulateFE.cpp.
References Options::dataStorage(), Object::debug(), Processus::element(), StatusCode::FAILURE, Object::info(), m_board, m_filename, m_nFile, m_ntriggersMax, m_options, Object::name(), StatusCode::SUCCESS, Object::type(), and Object::warning().
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 173 of file EmulateFE.cpp.
References StatusCode::SUCCESS.
|
inline |
Definition at line 31 of file EmulateFE.h.
References m_filename, and StatusCode::SUCCESS.
|
inline |
Definition at line 49 of file EmulateFE.h.
References m_typeGeneration, StatusCode::SUCCESS, and Object::type().
|
inline |
Definition at line 76 of file EmulateFE.h.
References m_noise, noise(), and StatusCode::SUCCESS.
|
inline |
Definition at line 40 of file EmulateFE.h.
References m_ntriggersMax, and StatusCode::SUCCESS.
|
inline |
Definition at line 67 of file EmulateFE.h.
References m_pedestal, pedestal(), and StatusCode::SUCCESS.
|
inline |
Definition at line 58 of file EmulateFE.h.
References m_signalRate, signalRate(), and StatusCode::SUCCESS.
|
inline |
|
private |
Definition at line 106 of file EmulateFE.h.
Referenced by generateFile(), and generateValues().
|
private |
Definition at line 97 of file EmulateFE.h.
Referenced by initialize().
|
private |
Definition at line 98 of file EmulateFE.h.
Referenced by execute(), file(), generateFile(), initialize(), and setFile().
|
private |
Definition at line 99 of file EmulateFE.h.
Referenced by generateFile(), and initialize().
|
private |
Definition at line 105 of file EmulateFE.h.
Referenced by generateFile(), generateValues(), noise(), and setNoise().
|
private |
Definition at line 108 of file EmulateFE.h.
|
private |
Definition at line 107 of file EmulateFE.h.
Referenced by execute(), initialize(), nTriggers(), and setNTriggers().
|
private |
Definition at line 101 of file EmulateFE.h.
Referenced by execute(), generateFile(), and initialize().
|
private |
Definition at line 104 of file EmulateFE.h.
Referenced by generateFile(), generateValues(), pedestal(), and setPedestal().
|
private |
Definition at line 96 of file EmulateFE.h.
Referenced by generateValues().
|
private |
Definition at line 103 of file EmulateFE.h.
Referenced by generateFile(), generateValues(), setSignalRate(), and signalRate().
|
private |
Definition at line 102 of file EmulateFE.h.
Referenced by generateFile(), generateValues(), generationType(), and setGenerationType().