Belle II Software  release-05-02-19
TrgEclMapping.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TrgEclMapping.h
5 // Section : TRG ECL
6 // Owner : InSoo Lee/Yuuji Unno
7 // Email : islee@hep.hanyang.ac.kr / yunno@post.kek.jp
8 //-----------------------------------------------------------
9 // Description : A class to represent TRG ECL.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 
14 #ifndef TRGECLTCMAPPING_FLAG_
15 #define TRGECLTCMAPPING_FLAG_
16 
17 #include <vector>
18 #include "TVector3.h"
19 //
20 //
21 //
22 namespace Belle2 {
27 //
28 //
30 //
31  class TrgEclMapping {
32 
33  public:
34 
36  TrgEclMapping();
37 
39  virtual ~TrgEclMapping() {};
40 
41  public:
42 
44  int getTCIdFromXtalId(int);
46  std::vector<int> getXtalIdFromTCId(int);
48  int getTCSubIdFromXtalId(int);
50  int getTCThetaIdFromTCId(int);
52  int getTCPhiIdFromTCId(int);
54  TVector3 getTCPosition(int);
56  int getTCIdFromFAMChannel(int , int);
58  std::vector<int> getFAMChannelFromTCId(int);
60  int getTCIdFromPosition(int, int);
61  private:
62 
63 
65  int _tcid; // ID = 1-576
67  int _tcsubid; // ID = 0-1
69  int _tcthetaid; // ID = 1-17
71  int _tcphiid; // ID = 1-36(1-32 for both endcap)
72 
74  std::vector<std::vector<int>> TC2Xtal;
75  };
76 //
77 //
78 //
80 } // namespace Belle2
81 
82 #endif /* TRGECLTCMAPPING_FLAG_ */
Belle2::TrgEclMapping::TC2Xtal
std::vector< std::vector< int > > TC2Xtal
Matrix of the relation of TC and Xtal.
Definition: TrgEclMapping.h:74
Belle2::TrgEclMapping::_tcid
int _tcid
TC Id.
Definition: TrgEclMapping.h:65
Belle2::TrgEclMapping::_tcphiid
int _tcphiid
TC Phi Id.
Definition: TrgEclMapping.h:71
Belle2::TrgEclMapping::_tcthetaid
int _tcthetaid
TC Theta Id.
Definition: TrgEclMapping.h:69
Belle2::TrgEclMapping::getTCIdFromFAMChannel
int getTCIdFromFAMChannel(int, int)
Get TC from FAM # and Channel #.
Definition: TrgEclMapping.cc:1438
Belle2::TrgEclMapping::getTCSubIdFromXtalId
int getTCSubIdFromXtalId(int)
get [TC sub ID] from [Xtal ID]
Definition: TrgEclMapping.cc:134
Belle2::TrgEclMapping::getTCPhiIdFromTCId
int getTCPhiIdFromTCId(int)
get [TC Phi ID] from [TC ID]
Definition: TrgEclMapping.cc:227
Belle2::TrgEclMapping::getFAMChannelFromTCId
std::vector< int > getFAMChannelFromTCId(int)
Get FAM # and Channel # from TC Id.
Definition: TrgEclMapping.cc:1521
Belle2::TrgEclMapping
A class of TC Mapping.
Definition: TrgEclMapping.h:31
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrgEclMapping::getTCPosition
TVector3 getTCPosition(int)
TC position (cm)
Definition: TrgEclMapping.cc:251
Belle2::TrgEclMapping::getTCIdFromPosition
int getTCIdFromPosition(int, int)
get TCId from phi and theta position(LSB = 1.4)
Definition: TrgEclMapping.cc:2114
Belle2::TrgEclMapping::~TrgEclMapping
virtual ~TrgEclMapping()
Destructor.
Definition: TrgEclMapping.h:39
Belle2::TrgEclMapping::_tcsubid
int _tcsubid
TC Sub Id.
Definition: TrgEclMapping.h:67
Belle2::TrgEclMapping::getTCThetaIdFromTCId
int getTCThetaIdFromTCId(int)
get [TC Theta ID] from [TC ID]
Definition: TrgEclMapping.cc:200
Belle2::TrgEclMapping::getXtalIdFromTCId
std::vector< int > getXtalIdFromTCId(int)
get [Xtal ID] from [TC ID] (Output as a vector)
Definition: TrgEclMapping.cc:848
Belle2::TrgEclMapping::getTCIdFromXtalId
int getTCIdFromXtalId(int)
get [TC ID] from [Xtal ID]
Definition: TrgEclMapping.cc:36
Belle2::TrgEclMapping::TrgEclMapping
TrgEclMapping()
Constructor.
Definition: TrgEclMapping.cc:27