Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventMcCut.cxx
1/*
2 * EventMcCut.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
10#include "EventMcCut.h"
11
12#include "Cut.h"
13#include "DataFormatManager.h"
14#include "McEvent.h"
15#include "Std.h"
16
17#include <RtypesCore.h>
18
19namespace Hal {
20
21 EventMcCut::EventMcCut(const Int_t size) : EventCut(size) {}
22
23 Bool_t EventMcCut::Init(Int_t format_id) {
24 if (EventCut::Init() == kFALSE) return kFALSE;
25 const Event* ev = DataFormatManager::Instance()->GetFormat(format_id, EFormatDepth::kNonBuffered);
26 if (dynamic_cast<const Hal::McEvent*>(ev)) return kTRUE;
27 return kFALSE;
28 }
29} /* namespace Hal */