Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackMCCut.cxx
1/*
2 * TrackMCCut.cxx
3 *
4 * Created on: 5 mar 2018
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "TrackMCCut.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 TrackMCCut::TrackMCCut(const Int_t size) : TrackCut(size) {}
22
23 Bool_t TrackMCCut::Init(Int_t task_id) {
24 if (TrackCut::Init() == kFALSE) return kFALSE;
25 const Event* ev = DataFormatManager::Instance()->GetFormat(task_id, EFormatDepth::kNonBuffered);
26 if (dynamic_cast<const Hal::McEvent*>(ev)) return kTRUE;
27 return kFALSE;
28 }
29
30 TrackMCCut::~TrackMCCut() {
31 // TODO Auto-generated destructor stub
32 }
33} // namespace Hal