REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawMultiFEMINOSToSignalProcess.h
1 /*************************************************************************
2  * This file is part of the REST software framework. *
3  * *
4  * Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) *
5  * For more information see http://gifna.unizar.es/trex *
6  * *
7  * REST is free software: you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation, either version 3 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * REST is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have a copy of the GNU General Public License along with *
18  * REST in $REST_PATH/LICENSE. *
19  * If not, see http://www.gnu.org/licenses/. *
20  * For the list of contributors see $REST_PATH/CREDITS. *
21  *************************************************************************/
22 
23 #ifndef RestCore_TRestRawMultiFEMINOSToSignalProcess
24 #define RestCore_TRestRawMultiFEMINOSToSignalProcess
25 
26 #include "TRestRawToSignalProcess.h"
27 
30  private:
31  unsigned short pay;
32 
33  unsigned int fLastEventId;
34  Double_t fLastTimeStamp;
35  void LoadDetectorSetupData();
36 
37  Int_t fCounter = 0;
38 
39  public:
40  void InitProcess() override;
41  void Initialize() override;
42  TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
43  const char* GetProcessName() const override { return "MultiFEMINOSToSignal"; }
44 
45  Bool_t ReadFrame(void* fr, int fr_sz);
46 
47  // Constructor
49  TRestRawMultiFEMINOSToSignalProcess(const char* configFilename);
50  // Destructor
52 
53  ClassDefOverride(TRestRawMultiFEMINOSToSignalProcess,
54  1); // Template for a REST "event process" class inherited from
55  // TRestEventProcess
56 };
57 #endif
A base class for any REST event.
Definition: TRestEvent.h:38
A process to read Feminos acquisition cards in single or TCM mode.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
void Initialize() override
Making default settings.
A base class for any process reading a binary external file as input to REST.