File indexing completed on 2024-04-06 12:04:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtThDigi.h"
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 L1Phase2MuDTExtThDigi::L1Phase2MuDTExtThDigi()
0035 :
0036
0037 L1Phase2MuDTThDigi(),
0038
0039 m_yLocal(0),
0040 m_zCMSSW(0),
0041 m_kCMSSW(0) {
0042 for (int i = 0; i < 4; i++) {
0043 m_pathWireId[i] = -1;
0044 m_pathTDC[i] = -1;
0045 m_pathLat[i] = 2;
0046 }
0047 }
0048
0049 L1Phase2MuDTExtThDigi::L1Phase2MuDTExtThDigi(int bx,
0050 int wh,
0051 int sc,
0052 int st,
0053 int z,
0054 int k,
0055 int qual,
0056 int idx,
0057 int t0,
0058 int chi2,
0059 int y,
0060 int z_cmssw,
0061 int k_cmssw,
0062 int rpc,
0063 int wireId[4],
0064 int tdc[4],
0065 int lat[4])
0066 :
0067
0068 L1Phase2MuDTThDigi(bx, wh, sc, st, z, k, qual, idx, t0, chi2, rpc),
0069
0070 m_yLocal(y),
0071 m_zCMSSW(z_cmssw),
0072 m_kCMSSW(k_cmssw) {
0073 for (int i = 0; i < 4; i++) {
0074 m_pathWireId[i] = wireId[i];
0075 m_pathTDC[i] = tdc[i];
0076 m_pathLat[i] = lat[i];
0077 }
0078 }
0079
0080 L1Phase2MuDTExtThDigi::L1Phase2MuDTExtThDigi(const L1Phase2MuDTExtThDigi &digi)
0081 :
0082
0083 L1Phase2MuDTThDigi(digi.bxNum(),
0084 digi.whNum(),
0085 digi.scNum(),
0086 digi.stNum(),
0087 digi.z(),
0088 digi.k(),
0089 digi.quality(),
0090 digi.index(),
0091 digi.t0(),
0092 digi.chi2(),
0093 digi.rpcFlag()),
0094
0095 m_yLocal(digi.yLocal()),
0096 m_zCMSSW(digi.zCMSSW()),
0097 m_kCMSSW(digi.kCMSSW()) {
0098 for (int i = 0; i < 4; i++) {
0099 m_pathWireId[i] = digi.pathWireId(i);
0100 m_pathTDC[i] = digi.pathTDC(i);
0101 m_pathLat[i] = digi.pathLat(i);
0102 }
0103 }
0104
0105
0106
0107
0108
0109 int L1Phase2MuDTExtThDigi::yLocal() const { return m_yLocal; }
0110
0111 int L1Phase2MuDTExtThDigi::zCMSSW() const { return m_zCMSSW; }
0112
0113 int L1Phase2MuDTExtThDigi::kCMSSW() const { return m_kCMSSW; }
0114
0115 int L1Phase2MuDTExtThDigi::pathWireId(int i) const { return m_pathWireId[i]; }
0116
0117 int L1Phase2MuDTExtThDigi::pathTDC(int i) const { return m_pathTDC[i]; }
0118
0119 int L1Phase2MuDTExtThDigi::pathLat(int i) const { return m_pathLat[i]; }