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>
14
namespace
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_ */
Hal::HiddenInfo
Definition
HiddenInfo.h:17
Hal::Track
Definition
Track.h:29
Hal::TwoTrack
Definition
TwoTrack.h:21
Hal::TwoTrack::SwapTracks
void SwapTracks()
Definition
TwoTrack.h:46
Hal::TwoTrack::GetHiddenInfo
HiddenInfo * GetHiddenInfo() const
Definition
TwoTrack.h:85
Hal::TwoTrack::SetHiddenInfo
void SetHiddenInfo(HiddenInfo *info)
Definition
TwoTrack.h:95
Hal::TwoTrack::FastBuild
void FastBuild(Track *track1, Track *track2)
Definition
TwoTrack.h:39
Hal::TwoTrack::SetSame
void SetSame(Bool_t same)
Definition
TwoTrack.h:90
Hal::TwoTrack::AreSame
Bool_t AreSame() const
Definition
TwoTrack.h:100
Hal::TwoTrack::SetPairType
void SetPairType(PairType type)
Definition
TwoTrack.h:65
Hal::TwoTrack::GetPairType
PairType GetPairType() const
Definition
TwoTrack.h:70
Hal::TwoTrack::GetTrack1
Track * GetTrack1() const
Definition
TwoTrack.h:75
Hal::TwoTrack::GetTrack2
Track * GetTrack2() const
Definition
TwoTrack.h:80
Hal::TwoTrack::AddSecondTrack
void AddSecondTrack(Track *track)
Definition
TwoTrack.h:60
Hal::TwoTrack::AddFirstTrack
void AddFirstTrack(Track *track)
Definition
TwoTrack.h:55
Hal
Definition
EventAnaChain.cxx:28
data
dataformat
TwoTrack.h
Generated on Wed Oct 23 2024 15:07:51 for Heavy ion Analysis Libriares by
1.12.0