13 cout<<
"NO READER PASSED TO TRIGGER"<<endl;
33 size_t first_trig=stream.size()+1;
34 size_t prev_trig=first_trig;
49 for(
size_t i=1; i<stream.size();i++){
62 }
else if (i==prev_trig+1){
64 }
else if(i>prev_trig+1){
72 for(
size_t j =first_trig; j<=prev_trig;j++){
83 size_t min = first_trig -5;
94 for(
size_t j =first_trig; j<=prev_trig;j++){
106 size_t min = first_trig -5;
110 if(
min >= stream.size()){
#define Q_BEGIN_NAMESPACE
ClassImp(Diana::QTriggerTTL)
double min(const Diana::QVector &v)
double GetDouble(const std::string &parname, double defVal, bool warnCfg=true) const
Get a double parameter from config file.
bool GetBool(const std::string &parname, bool defVal, bool warnCfg=true) const
Get a bool parameter from config file ( see GetDouble() )
void GetParametersFromCFG()
void TriggerStream(const vector< double > &stream)
void SetCFGParameters(double trigLevl=5., bool useDiff=true)
vector< double > triggerHeights
vector< double > filteredStream
const QBaseModule * reader