REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawSignalRecoverChannelsProcess.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_TRestRawSignalRecoverChannelsProcess
24#define RestCore_TRestRawSignalRecoverChannelsProcess
25
26#include "TRestLegacyProcess.h"
27
30 private:
31 std::vector<Int_t> fChannelIds; //<
32
33 public:
34 void PrintMetadata() override {
36 for (const auto& channelId : fChannelIds) {
37 RESTMetadata << "Channel id to recover: " << channelId << RESTendl;
38 }
39 EndPrintProcess();
40 }
41
43 RESTWarning << "Creating legacy process TRestRawSignalRecoverChannelsProcess" << RESTendl;
44 RESTWarning << "This process is now implemented under TRestDetectorSignalRecoveryProcess" << RESTendl;
45 }
46
47 TRestRawSignalRecoverChannelsProcess(char* configFilename) {
48 RESTWarning << "Creating legacy process TRestRawSignalRecoverChannelsProcess" << RESTendl;
49 RESTWarning << "This process is now implemented under TRestDetectorSignalRecoveryProcess" << RESTendl;
50 }
51
52 ClassDefOverride(TRestRawSignalRecoverChannelsProcess, 1);
53};
54#endif
void BeginPrintProcess()
[name, cut range]
Base class for legacy process.
endl_t RESTendl
Termination flag object for TRestStringOutput.
A process allowing to recover selected channels from a TRestRawSignalEvent.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.