Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventCutTemplate.cxx
1
/*
2
*Generated by hal-cmake
3
*/
4
#include "EventCutTemplate.h"
5
6
#include <Hal/DataFormatManager.h>
7
#include <Hal/Event.h>
8
#include <Hal/Package.h>
9
10
namespace
MyHal {
11
15
EventCutTemplate::EventCutTemplate
() : EventCut(1) {
19
}
20
21
EventCutTemplate::~EventCutTemplate() {}
27
Int_t
EventCutTemplate::Init
(Int_t taskID) {
28
Hal::DataFormatManager
* mngr =
Hal::DataFormatManager::Instance
();
29
const
Hal::Event
*
event
= mngr->
GetFormat
(taskID, Hal::EFormatDepth::kNonBuffered);
30
if
(
dynamic_cast<
Hal::Event
*
>
(event))
return
kTRUE;
31
return
EventCutTempate::Init(taskID);
32
}
33
34
Bool_t
EventCutTemplate::Pass
(
Hal::Event
* pair) {
38
return
Validate
();
40
}
41
42
Hal::Package
*
EventCutTemplate::Report
()
const
{
43
Hal::Package
* pack =
Hal::EventCut::Report
();
44
/* add some objects
45
pack->AddObject
46
*/
47
return
pack;
48
}
49
50
}
// namespace MyHal
Hal::Cut::Validate
Bool_t Validate()
Definition
Cut.cxx:43
Hal::DataFormatManager
Definition
DataFormatManager.h:25
Hal::DataFormatManager::GetFormat
const Event * GetFormat(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
Definition
DataFormatManager.cxx:149
Hal::DataFormatManager::Instance
static DataFormatManager * Instance()
Definition
DataFormatManager.cxx:80
Hal::EventCut::Report
virtual Package * Report() const
Definition
EventCut.cxx:18
Hal::Event
Definition
Event.h:50
Hal::Package
Definition
Package.h:26
MyHal::EventCutTemplate::EventCutTemplate
EventCutTemplate()
Definition
EventCutTemplate.cxx:15
MyHal::EventCutTemplate::Pass
Bool_t Pass(Hal::Event *pair)
Definition
EventCutTemplate.cxx:34
MyHal::EventCutTemplate::Init
Int_t Init(Int_t taskID)
Definition
EventCutTemplate.cxx:27
MyHal::EventCutTemplate::Report
Hal::Package * Report() const
Definition
EventCutTemplate.cxx:42
features
hal_plus
templates
EventCutTemplate.cxx
Generated on Wed Oct 23 2024 15:07:52 for Heavy ion Analysis Libriares by
1.12.0