]>
Commit | Line | Data |
---|---|---|
67427ff7 | 1 | //////////////////////////////////////////////////////////////////////////////// |
2 | /// AliFemtoEventReader - the pure virtual base class for the event reader /// | |
3 | /// All event readers must inherit from this one /// | |
4 | //////////////////////////////////////////////////////////////////////////////// | |
5 | #include "Infrastructure/AliFemtoEvent.h" | |
6 | #include "Base/AliFemtoEventCut.h" | |
7 | #include "Base/AliFemtoTrackCut.h" | |
8 | #include "Base/AliFemtoV0Cut.h" | |
9 | #include "Base/AliFemtoXiCut.h" | |
10 | #include "Base/AliFemtoKinkCut.h" | |
11 | #include "Base/AliFemtoEventReader.h" | |
12 | ||
13 | #ifdef __ROOT__ | |
14 | ClassImp(AliFemtoEventReader) | |
15 | #endif | |
16 | ||
0215f606 | 17 | AliFemtoEventReader::AliFemtoEventReader(const AliFemtoEventReader& aReader): |
18 | fEventCut(0), | |
19 | fTrackCut(0), | |
20 | fV0Cut(0), | |
21 | fXiCut(0), | |
22 | fKinkCut(0), | |
23 | fReaderStatus(0), | |
24 | fDebug(0) | |
25 | { | |
26 | fEventCut = aReader.fEventCut; | |
27 | fTrackCut = aReader.fTrackCut; | |
28 | fV0Cut = aReader.fV0Cut; | |
29 | fXiCut = aReader.fXiCut; | |
30 | fKinkCut = aReader.fKinkCut; | |
31 | fReaderStatus = aReader.fReaderStatus; | |
32 | fDebug = aReader.fDebug; | |
33 | } | |
34 | ||
35 | AliFemtoEventReader& AliFemtoEventReader::operator=(const AliFemtoEventReader& aReader) | |
36 | { | |
37 | if (this == &aReader) | |
38 | return *this; | |
39 | ||
40 | fEventCut = aReader.fEventCut; | |
41 | fTrackCut = aReader.fTrackCut; | |
42 | fV0Cut = aReader.fV0Cut; | |
43 | fXiCut = aReader.fXiCut; | |
44 | fKinkCut = aReader.fKinkCut; | |
45 | fReaderStatus = aReader.fReaderStatus; | |
46 | fDebug = aReader.fDebug; | |
47 | ||
48 | return *this; | |
49 | } | |
50 | ||
51 | ||
67427ff7 | 52 | AliFemtoString AliFemtoEventReader::Report(){ |
53 | // Create a simple report from the workings of the reader | |
54 | AliFemtoString temp = "\n This is the base class AliFemtoEventReader reporting"; | |
55 | temp += "\n---> EventCuts in Reader: "; | |
56 | if (fEventCut) { | |
57 | temp += fEventCut->Report(); | |
58 | } | |
59 | else { | |
60 | temp += "NONE"; | |
61 | } | |
62 | temp += "\n---> TrackCuts in Reader: "; | |
63 | if (fTrackCut) { | |
64 | temp += fTrackCut->Report(); | |
65 | } | |
66 | else { | |
67 | temp += "NONE"; | |
68 | } | |
69 | temp += "\n---> V0Cuts in Reader: "; | |
70 | if (fV0Cut) { | |
71 | temp += fV0Cut->Report(); | |
72 | } | |
73 | else { | |
74 | temp += "NONE"; | |
75 | } | |
76 | temp += "\n---> XiCuts in Reader: "; | |
77 | if (fXiCut) { | |
78 | temp += fXiCut->Report(); | |
79 | } | |
80 | else { | |
81 | temp += "NONE"; | |
82 | } | |
83 | temp += "\n---> KinkCuts in Reader: "; | |
84 | if (fKinkCut) { | |
85 | temp += fKinkCut->Report(); | |
86 | } | |
87 | else { | |
88 | temp += "NONE"; | |
89 | } | |
90 | temp += "\n"; | |
91 | return temp; | |
92 | } | |
93 | //______________________________________ | |
94 | void AliFemtoEventReader::SetEventCut(AliFemtoEventCut* ecut){fEventCut=ecut;} | |
95 | //______________________________________ | |
96 | void AliFemtoEventReader::SetTrackCut(AliFemtoTrackCut* pcut){cout << pcut << endl; fTrackCut=pcut;} | |
97 | //______________________________________ | |
98 | void AliFemtoEventReader::SetV0Cut(AliFemtoV0Cut* pcut){fV0Cut=pcut;} | |
99 | //______________________________________ | |
100 | void AliFemtoEventReader::SetXiCut(AliFemtoXiCut* pcut){fXiCut=pcut;} | |
101 | //______________________________________ | |
102 | void AliFemtoEventReader::SetKinkCut(AliFemtoKinkCut* pcut){fKinkCut=pcut;} | |
103 | //______________________________________ | |
104 | AliFemtoEventCut* AliFemtoEventReader::EventCut(){return fEventCut;} | |
105 | //______________________________________ | |
106 | AliFemtoTrackCut* AliFemtoEventReader::TrackCut(){return fTrackCut;} | |
107 | //______________________________________ | |
108 | AliFemtoV0Cut* AliFemtoEventReader::V0Cut(){return fV0Cut;} | |
109 | //______________________________________ | |
110 | AliFemtoXiCut* AliFemtoEventReader::XiCut(){return fXiCut;} | |
111 | //______________________________________ | |
112 | AliFemtoKinkCut* AliFemtoEventReader::KinkCut(){return fKinkCut;} | |
113 | ||
114 |