-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from rest-for-physics/DavidDiezIb_TRestTrack3D…
…AnalysisProcess TRestTrack3DAnalysisProcess
- Loading branch information
Showing
3 changed files
with
412 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/************************************************************************* | ||
* 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 RestCore_TRestTrack3DAnalysisProcess | ||
#define RestCore_TRestTrack3DAnalysisProcess | ||
|
||
#include <TRestTrackEvent.h> | ||
|
||
#include "TRestEventProcess.h" | ||
|
||
//! An analysis REST process to extract valuable information from Track type of data. | ||
class TRestTrack3DAnalysisProcess : public TRestEventProcess { | ||
private: | ||
TRestTrackEvent* fTrackEvent; //! | ||
|
||
void InitFromConfigFile() override; | ||
|
||
void Initialize() override; | ||
|
||
void LoadDefaultConfig(); | ||
|
||
protected: | ||
public: | ||
RESTValue GetInputEvent() const override { return fTrackEvent; } | ||
RESTValue GetOutputEvent() const override { return fTrackEvent; } | ||
|
||
void InitProcess() override; | ||
TRestEvent* ProcessEvent(TRestEvent* inputEvent) override; | ||
void EndProcess() override; | ||
|
||
void LoadConfig(const std::string& configFilename, const std::string& name = ""); | ||
|
||
void PrintMetadata() override { | ||
BeginPrintProcess(); | ||
|
||
///////// Metadata //////// | ||
|
||
EndPrintProcess(); | ||
} | ||
|
||
const char* GetProcessName() const override { return "trackAnalysis"; } | ||
|
||
// Constructor | ||
TRestTrack3DAnalysisProcess(); | ||
TRestTrack3DAnalysisProcess(const char* configFilename); | ||
// Destructor | ||
~TRestTrack3DAnalysisProcess(); | ||
|
||
ClassDefOverride(TRestTrack3DAnalysisProcess, 1); // Template for a REST "event process" class inherited | ||
// from TRestEventProcess | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.