Belle II Software  release-08-01-10
TrgEclMapping.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #ifndef TRGECLTCMAPPING_FLAG_
10 #define TRGECLTCMAPPING_FLAG_
11 
12 #include <vector>
13 #include "TVector3.h"
14 //
15 //
16 //
17 namespace Belle2 {
22 //
23 //
25 //
26  class TrgEclMapping {
27 
28  public:
29 
31  TrgEclMapping();
32 
34  virtual ~TrgEclMapping() {};
35 
36  public:
37 
39  int getTCIdFromXtalId(int);
41  std::vector<int> getXtalIdFromTCId(int);
43  int getTCSubIdFromXtalId(int);
45  int getTCThetaIdFromTCId(int);
47  int getTCPhiIdFromTCId(int);
49  TVector3 getTCPosition(int);
51  int getTCIdFromFAMChannel(int, int);
53  std::vector<int> getFAMChannelFromTCId(int);
55  int getTCIdFromPosition(int, int);
56  private:
57 
58 
60  int _tcid; // ID = 1-576
62  int _tcsubid; // ID = 0-1
64  int _tcthetaid; // ID = 1-17
66  int _tcphiid; // ID = 1-36(1-32 for both endcap)
67 
69  std::vector<std::vector<int>> TC2Xtal;
70  };
71 //
72 //
73 //
75 } // namespace Belle2
76 
77 #endif /* TRGECLTCMAPPING_FLAG_ */
A class of TC Mapping.
Definition: TrgEclMapping.h:26
int _tcsubid
TC Sub Id.
Definition: TrgEclMapping.h:62
TrgEclMapping()
Constructor.
int getTCIdFromFAMChannel(int, int)
Get TC from FAM # and Channel #.
int getTCThetaIdFromTCId(int)
get [TC Theta ID] from [TC ID]
int getTCIdFromPosition(int, int)
get TCId from phi and theta position(LSB = 1.4)
std::vector< std::vector< int > > TC2Xtal
Matrix of the relation of TC and Xtal.
Definition: TrgEclMapping.h:69
int _tcphiid
TC Phi Id.
Definition: TrgEclMapping.h:66
int getTCSubIdFromXtalId(int)
get [TC sub ID] from [Xtal ID]
int getTCIdFromXtalId(int)
get [TC ID] from [Xtal ID]
virtual ~TrgEclMapping()
Destructor.
Definition: TrgEclMapping.h:34
std::vector< int > getFAMChannelFromTCId(int)
Get FAM # and Channel # from TC Id.
TVector3 getTCPosition(int)
TC position (cm)
std::vector< int > getXtalIdFromTCId(int)
get [Xtal ID] from [TC ID] (Output as a vector)
int _tcthetaid
TC Theta Id.
Definition: TrgEclMapping.h:64
int getTCPhiIdFromTCId(int)
get [TC Phi ID] from [TC ID]
Abstract base class for different kinds of events.