Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/cmd/src/ProcBlockManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <RAT/SplitEVDAQProc.hh>
#include <RAT/TrueDAQProc.hh>
#include <RAT/UserAnalProc.hh>
#include <RAT/RENETestDAQProc.hh>

namespace RAT {

Expand Down Expand Up @@ -89,6 +90,7 @@ ProcBlockManager::ProcBlockManager(ProcBlock *theMainBlock) {
AppendProcessor<LessSimpleDAQProc>();
AppendProcessor<LessSimpleDAQ2Proc>();
AppendProcessor<TrueDAQProc>();
AppendProcessor<RENETestDAQProc>();
// Misc
AppendProcessor<CountProc>();
AppendProcessor<PruneProc>();
Expand Down
1 change: 1 addition & 0 deletions src/daq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ add_library(daq OBJECT
src/SplitEVDAQProc.cc
src/TrueDAQProc.cc
src/WaveformAnalysis.cc
src/RENETestDAQProc.cc
)

# Set our include directories
Expand Down
46 changes: 46 additions & 0 deletions src/daq/include/RAT/RENETestDAQProc.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#ifndef __RAT_RENETestDAQProc__
#define __RAT_RENETestDAQProc__

#include <RAT/DB.hh>
#include <RAT/Digitizer.hh>
#include <RAT/Processor.hh>
#include <RAT/WaveformAnalysis.hh>
#include <string>

namespace RAT {

class RENETestDAQProc : public Processor {
public:
RENETestDAQProc();
virtual ~RENETestDAQProc(){};
virtual Processor::Result DSEvent(DS::Root *ds);
void SetD(std::string param, double value);
void SetI(std::string param, int value);

void BeginOfRun(DS::Run *run);

protected:
int fEventCounter;
double fPulseWidth;
double fTriggerThreshold;
double fTriggerWindow;
double fPmtLockout;
double fTriggerLockout;
double fTriggerResolution;
double fLookback;
double fMaxHitTime;
bool fDigitize;
bool fAnalyze;

int fTriggerOnNoise;
DBLinkPtr ldaq;

Digitizer *fDigitizer;
std::string fDigitizerType;

WaveformAnalysis *fWaveformAnalysis;
};

} // namespace RAT

#endif
Loading