PandaRoot
PndCAStationSTT.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDCASTATIONSTT_H
14 #define PNDCASTATIONSTT_H
15 
16 #include "PndCADef.h"
17 
18 #include <vector>
19 using std::vector;
20 
21 class PndCAHitSTT {
22  public:
23  char fISta, fISec;
24  int fOrigID;
25  float fU, fDR;
26 
27  friend bool operator<(const PndCAHitSTT &a, const PndCAHitSTT &b) { return (a.fISec < b.fISec) || ((a.fISec == b.fISec) && (a.fU < b.fU)); }
28 };
29 
31  public:
32  void Init()
33  {
34  fNHits = 0;
35  fFirstHit = 0;
36  }
37  int fNHits;
38  int fFirstHit;
39 };
40 
42  public:
43  void Init()
44  {
45  fResolution = float_v(35697.3e-8);
46  fHits1D.clear();
47  fHits1D.reserve(100);
48  for (int i = 0; i < fgNSectors; i++)
49  fSectors[i].Init();
50  }
51  static const int fgNSectors = 6;
52  float_v fResolution;
53  float_v fSin, fCos;
54  PndCAStationSTTSector fSectors[fgNSectors];
55  vector<PndCAHitSTT> fHits1D;
56 };
57 
58 #endif
unsigned int i
Definition: P4_F32vec4.h:33
friend bool operator<(const PndCAHitSTT &a, const PndCAHitSTT &b)
vector< PndCAHitSTT > fHits1D