Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TwoTrackCutTemplate.cxx
1/*
2 *Generated by hal-cmake
3 */
4#include "TwoTrackCutTemplate.h"
5
6#include <Hal/DataFormatManager.h>
7#include <Hal/Event.h>
8#include <Hal/Package.h>
9#include <Hal/TwoTrack.h>
10
11namespace MyHal {
12
21
22 TwoTrackCutTemplate::~TwoTrackCutTemplate() {}
28 Int_t TwoTrackCutTemplate::Init(Int_t taskID) {
30 const Hal::Event* event = mngr->GetFormat(taskID, Hal::EFormatDepth::kNonBuffered);
31 if (dynamic_cast<Hal::Event*>(event)) return kTRUE;
32 return TwoTrackCut::Init(taskID);
33 }
34
36 switch (pair->GetPairType()) {
37 case Hal::TwoTrack::PairType::kSignal: {
41 } break;
42 case Hal::TwoTrack::PairType::kBackground: {
46 } break;
47 case Hal::TwoTrack::PairType::kMixed: {
51 } break;
52 case Hal::TwoTrack::PairType::kRotated: {
56 } break;
57 case Hal::TwoTrack::PairType::kHemishpere: {
61 } break;
62 case Hal::TwoTrack::PairType::kOther: {
66 } break;
67 }
68 return Validate();
70 }
71
74 /* add some objects
75 pack->AddObject
76 */
77 return pack;
78 }
79} // namespace MyHal
Bool_t Validate()
Definition Cut.cxx:43
const Event * GetFormat(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
static DataFormatManager * Instance()
virtual Package * Report() const
PairType GetPairType() const
Definition TwoTrack.h:70
Hal::Package * Report() const
Bool_t Pass(Hal::TwoTrack *pair)