Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Helix.cxx
1/*
2 * HalHelixBase.cxx
3 *
4 * Created on: 3 sty 2018
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "Helix.h"
10
11#include <TMath.h>
12#include <iostream>
13namespace Hal {
14 HelixZ::HelixZ() : HelixBase() {}
15
16 HelixZ::HelixZ(const TVector3& x, const TVector3& mom, Double_t charge, Double_t conversion) :
17 HelixBase(x, mom, charge, conversion) {}
18
19 void HelixZ::Shift(Double_t x, Double_t y, Double_t z) { BaseShift(x, y, z); }
20
23 return *this;
24 }
25
26 HelixX::HelixX() : HelixBase() {}
27
28 HelixX::HelixX(const TVector3& x, const TVector3& mom, Double_t charge, Double_t conversion) :
29 HelixBase(x.Y(), x.Z(), x.X(), mom.Y(), mom.Z(), mom.X(), charge, conversion) {}
30
31 void HelixX::Shift(Double_t x, Double_t y, Double_t z) { BaseShift(y, z, x); }
32
35 return *this;
36 }
37
38 HelixY::HelixY() : HelixBase() {}
39
40 HelixY::HelixY(const TVector3& x, const TVector3& mom, Double_t charge, Double_t conversion) :
41 HelixBase(x.Z(), x.X(), x.Y(), mom.Z(), mom.X(), mom.Y(), charge, conversion) {}
42
45 return *this;
46 }
47
48 void HelixY::Shift(Double_t x, Double_t y, Double_t z) { BaseShift(z, x, y); }
49} // namespace Hal
void BaseShift(Double_t x, Double_t y, Double_t z)
HelixBase & operator=(const HelixBase &helix)
HelixX & operator=(const HelixX &helix)
Definition Helix.cxx:33
void Shift(Double_t x, Double_t y, Double_t z)
Definition Helix.cxx:31
HelixY & operator=(const HelixY &helix)
Definition Helix.cxx:43
void Shift(Double_t x, Double_t y, Double_t z)
Definition Helix.cxx:48
HelixZ & operator=(const HelixZ &helix)
Definition Helix.cxx:21
void Shift(Double_t x, Double_t y, Double_t z)
Definition Helix.cxx:19