Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-21 23:58:45

0001 //-------------------------------------------------
0002 //
0003 //   Class L1Phase2MuDTExtPhDigi.cc
0004 //
0005 //   Description: trigger primtive data for the
0006 //                muon barrel Phase2 trigger
0007 //
0008 //
0009 //   Author List: Nicolo' Trevisani - Oviedo ICTEA
0010 //
0011 //
0012 //--------------------------------------------------
0013 
0014 //-----------------------
0015 // This Class's Header --
0016 //-----------------------
0017 #include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTExtPhDigi.h"
0018 
0019 //-------------------------------
0020 // Collaborating Class Headers --
0021 //-------------------------------
0022 
0023 //---------------
0024 // C++ Headers --
0025 //---------------
0026 
0027 //-------------------
0028 // Initializations --
0029 //-------------------
0030 
0031 //----------------
0032 // Constructors --
0033 //----------------
0034 L1Phase2MuDTExtPhDigi::L1Phase2MuDTExtPhDigi()
0035     :
0036 
0037       L1Phase2MuDTPhDigi(),
0038 
0039       m_xLocal(0),
0040       m_tanPsi(0),
0041       m_phiCMSSW(0),
0042       m_phiBendCMSSW(0) {
0043   for (int i = 0; i < 8; i++) {
0044     m_pathWireId[i] = -1;
0045     m_pathTDC[i] = -1;
0046     m_pathLat[i] = 2;
0047   }
0048 }
0049 
0050 L1Phase2MuDTExtPhDigi::L1Phase2MuDTExtPhDigi(int bx,
0051                                              int wh,
0052                                              int sc,
0053                                              int st,
0054                                              int sl,
0055                                              int phi,
0056                                              int phib,
0057                                              int qual,
0058                                              int idx,
0059                                              int t0,
0060                                              int chi2,
0061                                              int x,
0062                                              int tan,
0063                                              int phi_cmssw,
0064                                              int phib_cmssw,
0065                                              int rpc,
0066                                              int wireId[8],
0067                                              int tdc[8],
0068                                              int lat[8])
0069     :
0070 
0071       L1Phase2MuDTPhDigi(bx, wh, sc, st, sl, phi, phib, qual, idx, t0, chi2, rpc),
0072 
0073       m_xLocal(x),
0074       m_tanPsi(tan),
0075       m_phiCMSSW(phi_cmssw),
0076       m_phiBendCMSSW(phib_cmssw) {
0077   for (int i = 0; i < 8; i++) {
0078     m_pathWireId[i] = wireId[i];
0079     m_pathTDC[i] = tdc[i];
0080     m_pathLat[i] = lat[i];
0081   }
0082 }
0083 
0084 L1Phase2MuDTExtPhDigi::L1Phase2MuDTExtPhDigi(const L1Phase2MuDTExtPhDigi &digi)
0085     :
0086 
0087       L1Phase2MuDTPhDigi(digi.bxNum(),
0088                          digi.whNum(),
0089                          digi.scNum(),
0090                          digi.stNum(),
0091                          digi.slNum(),
0092                          digi.phi(),
0093                          digi.phiBend(),
0094                          digi.quality(),
0095                          digi.index(),
0096                          digi.t0(),
0097                          digi.chi2(),
0098                          digi.rpcFlag()),
0099 
0100       m_xLocal(digi.xLocal()),
0101       m_tanPsi(digi.tanPsi()),
0102       m_phiCMSSW(digi.phiCMSSW()),
0103       m_phiBendCMSSW(digi.phiBendCMSSW()) {
0104   for (int i = 0; i < 8; i++) {
0105     m_pathWireId[i] = digi.pathWireId(i);
0106     m_pathTDC[i] = digi.pathTDC(i);
0107     m_pathLat[i] = digi.pathLat(i);
0108   }
0109 }
0110 
0111 //--------------
0112 // Operations --
0113 //--------------
0114 
0115 int L1Phase2MuDTExtPhDigi::xLocal() const { return m_xLocal; }
0116 
0117 int L1Phase2MuDTExtPhDigi::tanPsi() const { return m_tanPsi; }
0118 
0119 int L1Phase2MuDTExtPhDigi::phiCMSSW() const { return m_phiCMSSW; }
0120 
0121 int L1Phase2MuDTExtPhDigi::phiBendCMSSW() const { return m_phiBendCMSSW; }
0122 
0123 int L1Phase2MuDTExtPhDigi::pathWireId(int i) const { return m_pathWireId[i]; }
0124 
0125 int L1Phase2MuDTExtPhDigi::pathTDC(int i) const { return m_pathTDC[i]; }
0126 
0127 int L1Phase2MuDTExtPhDigi::pathLat(int i) const { return m_pathLat[i]; }