Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Eventplaneinfov1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Eventplaneinfov1.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EVENTPLANEINFOV1_H
4 #define EVENTPLANEINFOV1_H
5 
6 #include "Eventplaneinfo.h"
7 
8 #include <cstddef> // for size_t
9 #include <iostream>
10 #include <limits>
11 #include <utility> // for pair, make_pair
12 #include <vector>
13 
14 class PHObject;
15 
17 {
18  public:
19  Eventplaneinfov1() = default;
20  ~Eventplaneinfov1() override = default;
21 
22  void identify(std::ostream& os = std::cout) const override;
23  void Reset() override { *this = Eventplaneinfov1(); }
24  PHObject* CloneMe() const override { return new Eventplaneinfov1(*this); }
25 
26  void set_qvector(std::vector<std::pair<double, double>> Qvec) override { mQvec = Qvec; }
27  void set_shifted_psi(std::vector<double> Psi_Shifted) override { mPsi_Shifted = Psi_Shifted; }
28  std::pair<double, double> get_qvector(int order) const override { return std::make_pair(mQvec[order - 1].first, mQvec[order - 1].second); }
29  double get_psi(int order) const override { return GetPsi(mQvec[order - 1].first, mQvec[order - 1].second, order); }
30  double get_shifted_psi(int order) const override { return mPsi_Shifted[order - 1]; }
31  double GetPsi(const double Qx, const double Qy, const unsigned int order) const override;
32 
33  private:
34  std::vector<std::pair<double, double>> mQvec;
35  std::vector<double> mPsi_Shifted;
37 };
38 
39 #endif