gotthard2: veto reference

This commit is contained in:
2019-11-14 19:01:10 +01:00
parent fd631ebb71
commit 5518531620
17 changed files with 562 additions and 20 deletions

View File

@ -777,6 +777,7 @@ class CmdProxy {
/* Gotthard2 Specific */
{"inj_ch", &CmdProxy::InjectChannel},
{"vetophoton", &CmdProxy::VetoPhoton},
/* CTB Specific */
{"samples", &CmdProxy::Samples},
@ -925,7 +926,8 @@ class CmdProxy {
std::string ROI(int action);
std::string ClearROI(int action);
/* Gotthard2 Specific */
std::string InjectChannel(int action);
std::string InjectChannel(int action);
std::string VetoPhoton(int action);
/* CTB Specific */
std::string Samples(int action);
std::string Dbitphase(int action);

View File

@ -881,10 +881,17 @@ class Detector {
/** [Gotthard2] offset channel, increment channel */
Result<std::array<int, 2>> getInjectChannel(Positions pos = {});
/** [Gotthard2]
* @param offsetChannel starting channel to be injected
* @param incrementChannel determines succeeding channels to be injected */
void setInjectChannel(int offsetChannel, int incrementChannel, Positions pos = {});
void setInjectChannel(const int offsetChannel, const int incrementChannel, Positions pos = {});
/** [Gotthard2] adu values for each channel */
Result<std::vector<int>> getVetoPhoton(const int chipIndex, Positions pos = {});
/** [Gotthard2] energy in keV */
void setVetoPhoton(const int chipIndex, const int numPhotons, const int energy, const std::string& fname, Positions pos = {});
/**************************************************
* *

View File

@ -1109,8 +1109,13 @@ class slsDetector : public virtual slsDetectorDefs {
/** [Gotthard2]
* @param offsetChannel starting channel to be injected
* @param incrementChannel determines succeeding channels to be injected */
void setInjectChannel(int offsetChannel, int incrementChannel);
void setInjectChannel(const int offsetChannel, const int incrementChannel);
/** [Gotthard2] asic input */
std::vector<int> getVetoPhoton(const int chipIndex);
/** [Gotthard2] energy in keV */
void setVetoPhoton(const int chipIndex, const int numPhotons, const int energy, const std::string& fname);
/**
* Set/get counter bit in detector (Gotthard)
* @param i is -1 to get, 0 to reset and any other value to set the counter