Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackCut.cxx
1/*
2 * TrackCut.cpp
3 *
4 * Created on: 21-06-2013
5 * Author: Daniel Wielanek
6 */
7
8#include "TrackCut.h"
9
10#include <TString.h>
11
12#include "Std.h"
13#include "TrackComplexCut.h"
14#include "TrackVirtualCut.h"
15
16namespace Hal {
17 TrackCut::TrackCut(const Int_t i) : Cut(i, ECutUpdate::kTrack, "N_{tracks}") {
18 // fUnitName = " ";
19 }
20
21 TrackCut::~TrackCut() {
22 // TODO Auto-generated destructor stub
23 }
24
26 Package* pack = Cut::Report();
27 return pack;
28 }
29
31 if (this->InheritsFrom("Hal::TrackComplexCut")) return NULL;
32 TString option = opt;
33 if (option == "re" || option == "RE" || option == "Re") {
34 return new TrackComplexCut(this, new TrackVirtualCut());
35 } else if (option == "im" || option == "IM" || option == "Im") {
36 return new TrackComplexCut(new TrackVirtualCut(), this);
37 } else {
38 return new TrackComplexCut(this, this);
39 }
40 }
41} // namespace Hal
Definition Cut.h:40
virtual Package * Report() const
Definition Cut.cxx:115
virtual Package * Report() const
Definition TrackCut.cxx:25
TrackComplexCut * MakeComplexCut(Option_t *opt) const
Definition TrackCut.cxx:30
TrackCut(const Int_t i=1)
Definition TrackCut.cxx:17