Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FlowPtVariable.cxx
1/*
2 * FlowPtVariable.cxx
3 *
4 * Created on: 19-10-2013
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "FlowPtVariable.h"
11
12#include "Track.h"
13
14namespace Hal {
15 FlowPtVariable::FlowPtVariable() : FlowVariable("P_{t} [GeV/c]", "dP_{t}") {}
16
17 Double_t FlowPtVariable::GetVariable(Track* p) {
18 Double_t px = p->GetPx();
19 Double_t py = p->GetPy();
20 return TMath::Sqrt(px * px + py * py);
21 }
22
23 FlowPtVariable::~FlowPtVariable() {}
24} // namespace Hal
Double_t GetPx() const
Definition Track.h:99
Double_t GetPy() const
Definition Track.h:104