Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-26 02:40:29

0001 #include "DataFormats/L1TMuonPhase2/interface/MuonStub.h"
0002 
0003 #include <iostream>
0004 #include <iomanip>
0005 #include <cmath>
0006 
0007 using namespace std;
0008 using namespace l1t;
0009 MuonStub::MuonStub()
0010     : etaRegion_(0),
0011       phiRegion_(0),
0012       depthRegion_(0),
0013       coord1_(0),
0014       coord2_(0),
0015       id_(0),
0016       quality_(-1),
0017       bxNum_(17),
0018       eta1_(0),
0019       eta2_(0),
0020       etaQuality_(-1),
0021       type_(0) {}
0022 
0023 MuonStub::MuonStub(int etaRegion,
0024                    int phiRegion,
0025                    int depthRegion,
0026                    uint tfLayer,
0027                    int coord1,
0028                    int coord2,
0029                    int id,
0030                    int bx,
0031                    int quality,
0032                    int eta1,
0033                    int eta2,
0034                    int etaQuality,
0035                    int type)
0036     : etaRegion_(etaRegion),
0037       phiRegion_(phiRegion),
0038       depthRegion_(depthRegion),
0039       tfLayer_(tfLayer),
0040       coord1_(coord1),
0041       coord2_(coord2),
0042       id_(id),
0043       quality_(quality),
0044       bxNum_(bx),
0045       eta1_(eta1),
0046       eta2_(eta2),
0047       etaQuality_(etaQuality),
0048       type_(type) {}
0049 
0050 MuonStub::~MuonStub() {}
0051 
0052 bool MuonStub::operator==(const MuonStub& id) const {
0053   if (etaRegion_ != id.etaRegion_)
0054     return false;
0055   if (phiRegion_ != id.phiRegion_)
0056     return false;
0057   if (depthRegion_ != id.depthRegion_)
0058     return false;
0059   if (id_ != id.id_)
0060     return false;
0061   if (coord1_ != id.coord1_)
0062     return false;
0063   if (coord2_ != id.coord2_)
0064     return false;
0065   if (quality_ != id.quality_)
0066     return false;
0067   if (bxNum_ != id.bxNum_)
0068     return false;
0069   if (eta1_ != id.eta1_)
0070     return false;
0071   if (eta2_ != id.eta2_)
0072     return false;
0073   if (etaQuality_ != id.etaQuality_)
0074     return false;
0075   if (type_ != id.type_)
0076     return false;
0077   return true;
0078 }
0079 
0080 //
0081 // output stream operator for phi track segments
0082 //
0083 
0084 void MuonStub::print() const {
0085   LogDebug("MuonStub") << " MuonStub : BX=" << bxNum_ << " etaRegion=" << etaRegion_ << " phiRegion=" << phiRegion_
0086                        << " depth=" << depthRegion_ << " ID=" << id_ << " coord1=" << coord1_ << " coord2=" << coord2_
0087                        << " quality=" << quality_ << " eta1=" << eta1_ << " eta2=" << eta2_
0088                        << " etaQuality=" << etaQuality_ << " type=" << type_;
0089 }