/************************************************************************* * This file is part of the REST software framework. * * * * Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) * * For more information see http://gifna.unizar.es/trex * * * * REST is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * * * * REST is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have a copy of the GNU General Public License along with * * REST in $REST_PATH/LICENSE. * * If not, see http://www.gnu.org/licenses/. * * For the list of contributors see $REST_PATH/CREDITS. * *************************************************************************/ #ifndef RESTProc_TRestMyNewProcess #define RESTProc_TRestMyNewProcess #include "TRestHitsEvent.h" #include "TRestHitsEvent.h" #include "TRestEventProcess.h" class TRestMyNewProcess : public TRestEventProcess { private: // We define specific input/output event data holders TRestHitsEvent* fAnaEvent; //! void InitFromConfigFile(); void Initialize(); // Add here the members or parameters for your event process. // Note: add "//!" mark at the end of the member definition // if you don't want to save them as "metadata". public: any GetInputEvent() { return fAnaEvent; } any GetOutputEvent() { return fAnaEvent; } void InitProcess(); TRestEvent* ProcessEvent(TRestEvent* eventInput); void EndProcess(); void PrintMetadata() { BeginPrintProcess(); // Write here how to print the added process members and parameters. EndPrintProcess(); } TRestMyNewProcess(); ~TRestMyNewProcess(); // ROOT class definition helper. Increase the number in it every time // you add/rename/remove the process parameters ClassDef(TRestMyNewProcess, 1); }; #endif