Diana Software
MNoHeaterInWindow.cc
Go to the documentation of this file.
1 #include "MNoHeaterInWindow.hh"
2 #include "QEvent.hh"
3 #include "QRawEvent.hh"
4 
5 using namespace std;
6 
8 
9 
10 void MNoHeaterInWindow::GetCuts(const Diana::QEvent& ev)
11 {
12  // Get parameters from cfg
13 }
14 
15 bool MNoHeaterInWindow::Filter(const Diana::QEvent& ev)
16 {
17  // perform selection: true if the event passes the cuts
18 
19  const QPulseInfo& pulseInfo = ev.Get<QPulseInfo>("DAQ","PulseInfo");
20  const std::vector<QSampleInfo>& samplesInfo = pulseInfo.GetSamplesInfo();
21  if(!samplesInfo.empty()) {
22  std::vector<QSampleInfo>::const_iterator sampleInfo = samplesInfo.begin();
23  while(sampleInfo != samplesInfo.end()) {
24  if(sampleInfo->GetIsPulser()) return false;
25  sampleInfo++;
26  }
27  }
28 
29  return true;
30 }
#define REGISTER_MODULE(clazz)
Definition: QDriver.hh:133
select events with no heater pulses in window
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
diana event
Definition: QEvent.hh:46
Raw event: bolometer channel, trigger positions and types.
Definition: QPulseInfo.hh:18
const std::vector< QSampleInfo > & GetSamplesInfo() const
Get Samples Info.
Definition: QPulseInfo.hh:31
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...