Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FlowYVariable.cxx
1/*
2 * FlowYVariable.cxx
3 *
4 * Created on: 05-10-2014
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "FlowYVariable.h"
11
12#include "Track.h"
13
14#include <TMath.h>
15
16namespace Hal {
17 FlowYVariable::FlowYVariable() : FlowVariable("y", "y") {}
18
19 Double_t FlowYVariable::GetVariable(Track* p) {
20 Double_t E = p->GetE();
21 Double_t pz = p->GetPz();
22 return 0.5 * TMath::Log((E + pz) / (E - pz));
23 }
24
25 FlowYVariable::~FlowYVariable() {}
26} // namespace Hal
Double_t GetPz() const
Definition Track.h:109
Double_t GetE() const
Definition Track.h:114