Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TwoTrack.h
1/*
2 * TwoTrack.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#ifndef HALTWOTRACK_H_
11#define HALTWOTRACK_H_
12
13#include <TObject.h>
14namespace Hal {
15 class Track;
16 class HiddenInfo;
17
21 class TwoTrack : public TObject {
22 public:
23 enum PairType { kSignal, kBackground, kMixed, kRotated, kHemishpere, kOther };
24
25 private:
26 Track* fTrack1 = {nullptr};
27 Track* fTrack2 = {nullptr};
28 PairType fType = {PairType::kOther};
29 Bool_t fSame = {kTRUE};
30 HiddenInfo* fHiddenInfo = {nullptr};
31
32 public:
33 TwoTrack();
39 inline void FastBuild(Track* track1, Track* track2) {
40 fTrack1 = track1;
41 fTrack2 = track2;
42 };
46 inline void SwapTracks() {
47 Track* temp = fTrack1;
48 fTrack1 = fTrack2;
49 fTrack2 = temp;
50 }
55 inline void AddFirstTrack(Track* track) { fTrack1 = track; };
60 inline void AddSecondTrack(Track* track) { fTrack2 = track; };
65 inline void SetPairType(PairType type) { fType = type; }
70 inline PairType GetPairType() const { return fType; };
75 inline Track* GetTrack1() const { return fTrack1; };
80 inline Track* GetTrack2() const { return fTrack2; };
85 inline HiddenInfo* GetHiddenInfo() const { return fHiddenInfo; }
90 inline void SetSame(Bool_t same) { fSame = same; };
95 inline void SetHiddenInfo(HiddenInfo* info) { fHiddenInfo = info; };
100 inline Bool_t AreSame() const { return fSame; };
101 virtual ~TwoTrack();
102 ClassDef(TwoTrack, 1)
103 };
104} // namespace Hal
105#endif /* HALTWOTRACK_H_ */
void SwapTracks()
Definition TwoTrack.h:46
HiddenInfo * GetHiddenInfo() const
Definition TwoTrack.h:85
void SetHiddenInfo(HiddenInfo *info)
Definition TwoTrack.h:95
void FastBuild(Track *track1, Track *track2)
Definition TwoTrack.h:39
void SetSame(Bool_t same)
Definition TwoTrack.h:90
Bool_t AreSame() const
Definition TwoTrack.h:100
void SetPairType(PairType type)
Definition TwoTrack.h:65
PairType GetPairType() const
Definition TwoTrack.h:70
Track * GetTrack1() const
Definition TwoTrack.h:75
Track * GetTrack2() const
Definition TwoTrack.h:80
void AddSecondTrack(Track *track)
Definition TwoTrack.h:60
void AddFirstTrack(Track *track)
Definition TwoTrack.h:55