Cat
|
#include <inc/Acquisition.h>
Classes | |
class | Acquisition |
Public Member Functions | |
Acquisition () | |
Standard constructor. More... | |
virtual | ~Acquisition () |
Destructor. More... | |
virtual StatusCode | initialize () |
virtual StatusCode | execute () |
virtual StatusCode | finalize () |
StatusCode | setDepth (unsigned int) |
unsigned int | depth () |
StatusCode | setChannels (unsigned int) |
unsigned int | channels () |
StatusCode | setTrigger (bool trig) |
bool | trigger () |
void | setStoreTree (bool store_tree) |
bool | storeTree () |
void | setStoreTrend (bool store_hist) |
bool | storeTrend () |
void | setStoreSample (bool store_sample) |
bool | storeSample () |
void | setDeadTime (int deadtime) |
int | deadTime () |
void | setSample (int nsample) |
int | sample () |
void | setNBins (int nbins) |
int | nBins () |
void | setMinRange (float minrange) |
float | minRange () |
void | setMaxRange (float maxrange) |
float | maxRange () |
A3PE * | a3pe () |
Acquisition () | |
Standard constructor. More... | |
virtual | ~Acquisition () |
Destructor. More... | |
virtual StatusCode | initialize () |
virtual StatusCode | execute () |
virtual StatusCode | finalize () |
StatusCode | setDepth (unsigned int) |
unsigned int | depth () |
StatusCode | setChannels (unsigned int) |
unsigned int | channels () |
StatusCode | setTrigger (bool trig) |
bool | trigger () |
void | setStoreTree (bool store_tree) |
bool | storeTree () |
void | setStoreTrend (bool store_hist) |
bool | storeTrend () |
void | setStoreSample (bool store_sample) |
bool | storeSample () |
void | setDeadTime (int deadtime) |
int | deadTime () |
void | setSample (int nsample) |
int | sample () |
void | setNBins (int nbins) |
int | nBins () |
void | setMinRange (float minrange) |
float | minRange () |
void | setMaxRange (float maxrange) |
float | maxRange () |
![]() | |
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 | |
Acquisition * | clone () |
unsigned int | decodeFormat (unsigned int, unsigned int, RAM *) |
Acquisition * | clone () |
unsigned int | decodeFormat (unsigned int, unsigned int, RAM *) |
Private Attributes | |
bool | m_store_tree |
bool | m_store_hist |
bool | m_store_sample |
TTree * | m_tree |
Int_t | m_runNumber |
Int_t | m_evtNumber |
Int_t | m_sample |
Int_t | m_channel [8] |
Int_t | m_chEnable [8] |
Int_t | m_nch |
double | m_timestamp |
int | m_channels |
int | m_depth |
Proto40MHz_v1 * | m_board |
A3PE * | m_pga |
RAM * | m_fifo |
bool | m_trig |
TH1D * | m_a [8] |
TH1D * | m_s [8] |
TH1D * | m_hsample [8] |
double | v [8 *m_depthmax] |
double | v2 [8 *m_depthmax] |
unsigned int | m_nsample |
unsigned int | m_nbins |
float | m_minRange |
float | m_maxRange |
int | m_deadtime |
FEB_v1 * | m_board |
Static Private Attributes | |
static const unsigned int | m_depthmax = 512 |
Additional Inherited Members | |
![]() | |
enum | states { ERR =-1, NOT_OK, OK } |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
![]() | |
Element * | m_element |
![]() | |
std::string | m_attribString [10] |
Definition at line 20 of file Acquisition.h.
Standard constructor.
Definition at line 22 of file Acquisition.cpp.
References Object::setName(), Object::setTitle(), and Object::setType().
Referenced by clone().
|
virtual |
Standard constructor.
|
virtual |
Destructor.
|
inline |
|
inline |
|
inline |
Definition at line 34 of file Acquisition.h.
References m_channels.
Referenced by BOOST_PYTHON_MODULE(), setChannels(), and Acquisition.Acquisition::update().
|
inlineprotectedvirtual |
processus termination virtual function
Implements Processus.
Definition at line 94 of file Acquisition.h.
References Acquisition(), decodeFormat(), m_channel, m_channels, m_chEnable, m_depth, m_depthmax, m_evtNumber, m_nch, m_runNumber, m_sample, m_store_hist, m_store_sample, m_store_tree, m_timestamp, and m_tree.
|
inlineprotectedvirtual |
processus termination virtual function
Implements Processus.
Definition at line 96 of file Acquisition.h.
References Acquisition(), and decodeFormat().
|
inline |
|
inline |
Definition at line 67 of file Acquisition.h.
References m_deadtime.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
protected |
|
protected |
Definition at line 226 of file Acquisition.cpp.
References IOdata::dataU8(), and IOobject::io().
Referenced by clone(), and execute().
|
inline |
|
inline |
Definition at line 31 of file Acquisition.h.
References m_depth, and setChannels().
Referenced by BOOST_PYTHON_MODULE(), setDepth(), and Acquisition.Acquisition::update().
|
virtual |
processus execution virtual function
Implements Processus.
|
virtual |
processus execution virtual function
Implements Processus.
Definition at line 118 of file Acquisition.cpp.
References application(), A3PE::dataReady(), Object::debug(), decodeFormat(), A3PE::enableStorage(), StatusCode::FAILURE, itos(), m_channel, m_chEnable, m_deadtime, m_depth, m_evtNumber, m_fifo, m_hsample, m_nch, m_nsample, m_pga, m_sample, m_store_hist, m_store_sample, m_store_tree, m_timestamp, m_tree, m_trig, Options::nEvt(), Application::options(), IOobject::read(), StatusCode::SUCCESS, A3PE::trigger(), v, v2, and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
processus termination virtual function
Implements Processus.
|
virtual |
processus termination virtual function
Implements Processus.
Definition at line 173 of file Acquisition.cpp.
References m_a, m_channels, m_depth, m_evtNumber, m_nch, m_s, m_store_hist, m_store_tree, m_tree, StatusCode::SUCCESS, v, and v2.
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
processus initialisation virtual function
Implements Processus.
|
virtual |
processus initialisation virtual function
Implements Processus.
Definition at line 49 of file Acquisition.cpp.
References Proto40MHz_v1::a3pe(), Processus::addHisto1d(), application(), Object::debug(), Processus::element(), Object::info(), m_a, m_board, m_channel, m_channels, m_chEnable, m_depth, m_evtNumber, m_fifo, m_hsample, m_maxRange, m_minRange, m_nbins, m_nch, m_nsample, m_pga, m_runNumber, m_s, m_sample, m_store_hist, m_store_sample, m_store_tree, m_timestamp, m_tree, m_trig, Object::name(), Application::options(), Options::runNumber(), A3PE::setEnableADC(), A3PE::setFifoDepth(), A3PE::setSoftwareTrigger(), A3PE::setWriteStorageFifoUsb(), A3PE::storageRam(), StatusCode::SUCCESS, Object::title(), Object::type(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
|
inline |
Definition at line 91 of file Acquisition.h.
References m_maxRange.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
|
inline |
Definition at line 85 of file Acquisition.h.
References m_minRange.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
|
inline |
Definition at line 79 of file Acquisition.h.
References m_nbins.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
|
inline |
Definition at line 73 of file Acquisition.h.
References m_nsample.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
StatusCode Acquisition::setChannels | ( | unsigned | int | ) |
StatusCode Acquisition::setChannels | ( | unsigned int | channels | ) |
Definition at line 214 of file Acquisition.cpp.
References channels(), m_channels, StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), depth(), and Acquisition.Acquisition::onApply().
|
inline |
Definition at line 61 of file Acquisition.h.
References m_deadtime.
|
inline |
Definition at line 63 of file Acquisition.h.
References m_deadtime.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onDeadtime().
StatusCode Acquisition::setDepth | ( | unsigned | int | ) |
StatusCode Acquisition::setDepth | ( | unsigned int | depth | ) |
Definition at line 202 of file Acquisition.cpp.
References depth(), StatusCode::FAILURE, m_depth, StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onDepth().
|
inline |
|
inline |
Definition at line 87 of file Acquisition.h.
References m_maxRange.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onMax().
|
inline |
|
inline |
Definition at line 81 of file Acquisition.h.
References m_minRange.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onMin().
|
inline |
Definition at line 73 of file Acquisition.h.
References m_nbins.
|
inline |
Definition at line 75 of file Acquisition.h.
References m_nbins.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onNBins().
|
inline |
|
inline |
Definition at line 69 of file Acquisition.h.
References m_nsample.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onNSample().
|
inline |
|
inline |
Definition at line 57 of file Acquisition.h.
References m_store_sample.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onSample().
|
inline |
|
inline |
Definition at line 45 of file Acquisition.h.
References m_store_tree.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onTree().
|
inline |
|
inline |
Definition at line 51 of file Acquisition.h.
References m_store_hist.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onTrend().
|
inline |
Definition at line 34 of file Acquisition.h.
References m_trig, and StatusCode::SUCCESS.
|
inline |
Definition at line 36 of file Acquisition.h.
References m_trig, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::onSoftTrig().
|
inline |
|
inline |
Definition at line 61 of file Acquisition.h.
References m_store_sample.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
|
inline |
Definition at line 49 of file Acquisition.h.
References m_store_tree.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
|
inline |
Definition at line 55 of file Acquisition.h.
References m_store_hist.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
inline |
Definition at line 39 of file Acquisition.h.
References m_trig.
|
inline |
Definition at line 41 of file Acquisition.h.
References m_trig.
Referenced by BOOST_PYTHON_MODULE(), and Acquisition.Acquisition::update().
|
private |
Definition at line 123 of file Acquisition.h.
Referenced by finalize(), and initialize().
|
private |
Definition at line 117 of file Acquisition.h.
|
private |
Definition at line 119 of file Acquisition.h.
Referenced by initialize().
|
private |
Definition at line 112 of file Acquisition.h.
Referenced by clone(), execute(), and initialize().
|
private |
Definition at line 117 of file Acquisition.h.
Referenced by channels(), clone(), finalize(), initialize(), and setChannels().
|
private |
Definition at line 113 of file Acquisition.h.
Referenced by clone(), execute(), and initialize().
|
private |
Definition at line 132 of file Acquisition.h.
Referenced by deadTime(), execute(), and setDeadTime().
|
private |
Definition at line 118 of file Acquisition.h.
Referenced by clone(), depth(), execute(), finalize(), initialize(), and setDepth().
|
staticprivate |
Definition at line 102 of file Acquisition.h.
Referenced by clone().
|
private |
Definition at line 110 of file Acquisition.h.
Referenced by clone(), execute(), finalize(), and initialize().
|
private |
Definition at line 121 of file Acquisition.h.
Referenced by execute(), and initialize().
|
private |
Definition at line 125 of file Acquisition.h.
Referenced by execute(), and initialize().
|
private |
Definition at line 131 of file Acquisition.h.
Referenced by initialize(), maxRange(), and setMaxRange().
|
private |
Definition at line 130 of file Acquisition.h.
Referenced by initialize(), minRange(), and setMinRange().
|
private |
Definition at line 129 of file Acquisition.h.
Referenced by initialize(), nBins(), and setNBins().
|
private |
Definition at line 114 of file Acquisition.h.
Referenced by clone(), execute(), finalize(), and initialize().
|
private |
Definition at line 128 of file Acquisition.h.
Referenced by execute(), initialize(), sample(), and setSample().
|
private |
Definition at line 120 of file Acquisition.h.
Referenced by a3pe(), execute(), and initialize().
|
private |
Definition at line 109 of file Acquisition.h.
Referenced by clone(), and initialize().
|
private |
Definition at line 124 of file Acquisition.h.
Referenced by finalize(), and initialize().
|
private |
Definition at line 111 of file Acquisition.h.
Referenced by clone(), execute(), and initialize().
|
private |
Definition at line 105 of file Acquisition.h.
Referenced by clone(), execute(), finalize(), initialize(), setStoreTrend(), and storeTrend().
|
private |
Definition at line 106 of file Acquisition.h.
Referenced by clone(), execute(), initialize(), setStoreSample(), and storeSample().
|
private |
Definition at line 104 of file Acquisition.h.
Referenced by clone(), execute(), finalize(), initialize(), setStoreTree(), and storeTree().
|
private |
Definition at line 116 of file Acquisition.h.
Referenced by clone(), execute(), and initialize().
|
private |
Definition at line 108 of file Acquisition.h.
Referenced by clone(), execute(), finalize(), and initialize().
|
private |
Definition at line 122 of file Acquisition.h.
Referenced by execute(), initialize(), setTrigger(), and trigger().
|
private |
Definition at line 126 of file Acquisition.h.
Referenced by execute(), and finalize().
|
private |
Definition at line 127 of file Acquisition.h.
Referenced by execute(), and finalize().