Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TowerBackgroundv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TowerBackgroundv1.h
1 #ifndef JETBACKGROUND_TOWERBACKGROUNDV1_H
2 #define JETBACKGROUND_TOWERBACKGROUNDV1_H
3 
4 #include "TowerBackground.h"
5 
6 #include <iostream>
7 #include <vector>
8 
10 {
11  public:
13  ~TowerBackgroundv1() override {}
14 
15  void identify(std::ostream &os = std::cout) const override;
16  void Reset() override {}
17  int isValid() const override { return 1; }
18 
19  void set_UE(int layer, const std::vector<float> &UE) override { _UE[layer] = UE; }
20  void set_v2(float v2) override { _v2 = v2; }
21  void set_Psi2(float Psi2) override { _Psi2 = Psi2; }
22  void set_nStripsUsedForFlow(int nStrips) override { _nStrips = nStrips; }
23  void set_nTowersUsedForBkg(int nTowers) override { _nTowers = nTowers; }
24 
25  std::vector<float> get_UE(int layer) override { return _UE[layer]; }
26  float get_v2() override { return _v2; }
27  float get_Psi2() override { return _Psi2; }
28  int get_nStripsUsedForFlow() override { return _nStrips; }
29 
30 // our own - not from parent class
31  virtual int get_nTowersUsedForFlow() { return _nTowers; }
32 
33  private:
34  std::vector<std::vector<float> > _UE;
35  float _v2;
36  float _Psi2;
37  int _nStrips;
38  int _nTowers;
39 
41 };
42 
43 #endif