9#include "TrackFreezoutCut.h"
12#include "DataFormatManager.h"
16TrackFreezoutCut::TrackFreezoutCut() : TrackMCCut(4) {
17 SetUnitName(
"X [fm]", 0);
18 SetUnitName(
"Y [fm]", 1);
19 SetUnitName(
"Z [fm]", 2);
20 SetUnitName(
"T [fm/c]", 3);
21 SetMinMax(-1000, 1000, 0);
22 SetMinMax(-1000, 1000, 1);
23 SetMinMax(-1000, 1000, 2);
24 SetMinMax(-1000, 1000, 3);
27Bool_t TrackFreezoutCut::Pass(
Track* track) {
28 const TLorentzVector& fr = ((
McTrack*) track)->GetFreezoutPosition();
36TrackFreezoutCut::~TrackFreezoutCut() {}
38TrackTFreezCut::TrackTFreezCut() : TrackMCCut(1) {
SetUnitName(
"T_{freez} [fm]"); }
45TrackTFreezCut::~TrackTFreezCut() {}
47TrackTauCut::TrackTauCut() : TrackMCCut(1) {
SetUnitName(
"#tau [fm/c]"); }
51 z = ((
McTrack*) track)->GetFreezoutPosition().Z();
52 t = ((
McTrack*) track)->GetFreezoutPosition().T();
53 if (TMath::Abs(z) > TMath::Abs(t)) {
54 SetValue(TMath::Sqrt(-t * t + z * z));
58 Double_t tau = TMath::Sqrt(t * t - z * z);
63TrackTauCut::~TrackTauCut() {}
Bool_t ForcedUpdate(Bool_t state)
void SetValue(Double_t val, Int_t i=0)
void SetUnitName(TString name, Int_t i=0)
virtual Bool_t Pass(Track *track)
virtual Bool_t Pass(Track *track)