PandaRoot
PndCAStationSTT.h
Go to the documentation of this file.
1 #ifndef PNDCASTATIONSTT_H
2 #define PNDCASTATIONSTT_H
3 
4 #include "PndCADef.h"
5 
6 #include <vector>
7 using std::vector;
8 
9 class PndCAHitSTT {
10  public:
11  char fISta, fISec;
12  int fOrigID;
13  float fU, fDR;
14 
15  friend bool operator<(const PndCAHitSTT &a, const PndCAHitSTT &b) { return (a.fISec < b.fISec) || ((a.fISec == b.fISec) && (a.fU < b.fU)); }
16 };
17 
19  public:
20  void Init()
21  {
22  fNHits = 0;
23  fFirstHit = 0;
24  }
25  int fNHits;
26  int fFirstHit;
27 };
28 
30  public:
31  void Init()
32  {
33  fResolution = float_v(35697.3e-8);
34  fHits1D.clear();
35  fHits1D.reserve(100);
36  for (int i = 0; i < fgNSectors; i++)
37  fSectors[i].Init();
38  }
39  static const int fgNSectors = 6;
40  float_v fResolution;
41  float_v fSin, fCos;
42  PndCAStationSTTSector fSectors[fgNSectors];
43  vector<PndCAHitSTT> fHits1D;
44 };
45 
46 #endif
unsigned int i
Definition: P4_F32vec4.h:21
friend bool operator<(const PndCAHitSTT &a, const PndCAHitSTT &b)
vector< PndCAHitSTT > fHits1D