FairRoot/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) {
16  return (a.fISec < b.fISec) || ((a.fISec == b.fISec) && (a.fU < b.fU));
17  }
18 };
19 
21  public:
22  void Init(){
23  fNHits = 0;
24  fFirstHit = 0;
25  }
26  int fNHits;
27  int fFirstHit;
28 };
29 
31  public:
32  void Init(){
33  fResolution = float_v(35697.3e-8);
34  fHits1D.clear();
35  fHits1D.reserve(100);
36  for( int i=0; i<fgNSectors; i++ ) fSectors[i].Init();
37  }
38  static const int fgNSectors = 6;
39  float_v fResolution;
40  float_v fSin, fCos;
42  vector<PndCAHitSTT> fHits1D;
43 };
44 
45 #endif
Int_t i
Definition: run_full.C:25
TTree * b
static const int fgNSectors
Int_t a
Definition: anaLmdDigi.C:126
friend bool operator<(const PndCAHitSTT &a, const PndCAHitSTT &b)
vector< PndCAHitSTT > fHits1D
PndCAStationSTTSector fSectors[fgNSectors]