Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventExpCut.cxx
1/*
2 * EventExpCut.cxx
3 *
4 * Created on: 30 sie 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "EventExpCut.h"
10
11#include "DataFormatManager.h"
12#include "ExpEvent.h"
13
14namespace Hal {
15
16 EventExpCut::EventExpCut(const Int_t size) : EventCut(size) {}
17
18 Bool_t EventExpCut::Init(Int_t format_id) {
19 if (EventCut::Init() == kFALSE) return kFALSE;
20 const Event* ev = DataFormatManager::Instance()->GetFormat(format_id, EFormatDepth::kNonBuffered);
21 if (dynamic_cast<const Hal::ExpEvent*>(ev)) return kTRUE;
22 return kFALSE;
23 }
24
25} /* namespace Hal */