CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends
MuonStub Class Reference

#include <MuonStub.h>

Public Types

enum  Type {
  EMPTY, DT_PHI, DT_THETA, DT_PHI_ETA,
  DT_HIT, RPC, RPC_DROPPED, CSC_PHI,
  CSC_ETA, CSC_PHI_ETA, BARREL_SUPER_SEG
}
 

Public Member Functions

 MuonStub ()
 
 MuonStub (int phiHw, int phiBHw)
 
virtual ~MuonStub ()
 

Public Attributes

int bx = 0
 
int detId = 0
 
int etaHw = 0
 
int etaSigmaHw = 0
 
unsigned int logicLayer = 0
 
int phiBHw = 0
 
int phiHw = 0
 
int qualityHw = 0
 error of the eta measurement More...
 
int timing = 0
 
Type type = EMPTY
 

Static Public Attributes

static const int EMTPY_PHI = 0xffffff
 

Friends

std::ostream & operator<< (std::ostream &out, const MuonStub &stub)
 

Detailed Description

Class that creates a super-primitive for all chambers

M.Bachtis (UCLA)

Definition at line 16 of file MuonStub.h.

Member Enumeration Documentation

◆ Type

Enumerator
EMPTY 
DT_PHI 
DT_THETA 
DT_PHI_ETA 
DT_HIT 
RPC 
RPC_DROPPED 
CSC_PHI 
CSC_ETA 
CSC_PHI_ETA 
BARREL_SUPER_SEG 

Definition at line 18 of file MuonStub.h.

18  {
19  EMPTY,
20  DT_PHI,
21  DT_THETA,
22  DT_PHI_ETA,
23  DT_HIT,
24  RPC,
25  RPC_DROPPED, //to mark that all clusters were dropped because there are more than 2 clusters or at least one too big cluster
26  CSC_PHI,
27  CSC_ETA,
30  };

Constructor & Destructor Documentation

◆ MuonStub() [1/2]

MuonStub::MuonStub ( )

Definition at line 16 of file MuonStub.cc.

16 {}

◆ MuonStub() [2/2]

MuonStub::MuonStub ( int  phiHw,
int  phiBHw 
)
inline

Definition at line 34 of file MuonStub.h.

34 : phiHw(phiHw), phiBHw(phiBHw){};
int phiBHw
Definition: MuonStub.h:41
int phiHw
Definition: MuonStub.h:40

◆ ~MuonStub()

MuonStub::~MuonStub ( )
virtual

Definition at line 18 of file MuonStub.cc.

18 {}

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const MuonStub stub 
)
friend

Definition at line 20 of file MuonStub.cc.

20  {
21  out << "MuonStub: ";
22  out << " logicLayer: " << std::setw(2) << stub.logicLayer << " type: " << std::setw(2) << stub.type
23  << " roll: " << std::setw(1) << 0 << " phiHw: " << std::setw(5)
24  << stub.phiHw //<<" ("<<std::setw(8)<<stub.phi<<")"
25  << " phiBHw: " << std::setw(4) << stub.phiBHw << " etaHw: " << std::setw(4)
26  << stub.etaHw //<<" ("<<std::setw(8)<<stub.eta<<")"
27  << " etaSigmaHw: " << std::setw(3) << stub.etaSigmaHw << " qualityHw: " << std::setw(2) << stub.qualityHw << " "
28  << " bx: " << std::setw(1) << stub.bx << " "
29  << " timing: " << std::setw(2) << stub.timing << " "
30  << " detId: " << std::setw(9) << stub.detId << " ";
31 
32  DetId detId(stub.detId);
33  if (detId.det() != DetId::Muon) {
34  //std::cout << "PROBLEM: hit in unknown Det, detID: "<<detId.det()<<std::endl;
35  return out;
36  }
37 
38  switch (detId.subdetId()) {
39  case MuonSubdetId::RPC: {
40  RPCDetId rpcId(stub.detId);
41  if (rpcId.region() != 0 && abs(rpcId.station()) >= 3 && rpcId.ring() == 1)
42  out << " iRPC " << rpcId;
43  else
44  out << " RPC " << rpcId;
45  break;
46  }
47  case MuonSubdetId::DT: {
48  DTChamberId dtId(stub.detId);
49  out << " DT " << dtId;
50  break;
51  }
52  case MuonSubdetId::CSC: {
53  CSCDetId cscId(stub.detId);
54  out << " CSC " << cscId;
55  break;
56  }
57  }
58 
59  return out;
60 }
int timing
Definition: MuonStub.h:50
int detId
Definition: MuonStub.h:57
Type type
Definition: MuonStub.h:38
int qualityHw
error of the eta measurement
Definition: MuonStub.h:47
int phiBHw
Definition: MuonStub.h:41
int etaSigmaHw
Definition: MuonStub.h:46
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int etaHw
Definition: MuonStub.h:45
Definition: DetId.h:17
static constexpr int RPC
Definition: MuonSubdetId.h:13
int bx
Definition: MuonStub.h:49
unsigned int logicLayer
Definition: MuonStub.h:53
int phiHw
Definition: MuonStub.h:40
static constexpr int DT
Definition: MuonSubdetId.h:11
static constexpr int CSC
Definition: MuonSubdetId.h:12

Member Data Documentation

◆ bx

int MuonStub::bx = 0

◆ detId

int MuonStub::detId = 0

◆ EMTPY_PHI

const int MuonStub::EMTPY_PHI = 0xffffff
static

Definition at line 43 of file MuonStub.h.

Referenced by MuonStubsInput::getPhiHw().

◆ etaHw

int MuonStub::etaHw = 0

◆ etaSigmaHw

int MuonStub::etaSigmaHw = 0

Definition at line 46 of file MuonStub.h.

Referenced by operator<<().

◆ logicLayer

unsigned int MuonStub::logicLayer = 0

◆ phiBHw

int MuonStub::phiBHw = 0

◆ phiHw

int MuonStub::phiHw = 0

◆ qualityHw

int MuonStub::qualityHw = 0

error of the eta measurement

Definition at line 47 of file MuonStub.h.

Referenced by CscDigiToStubsConverterOmtf::addCSCstubs(), RpcDigiToStubsConverterOmtf::addRPCstub(), and operator<<().

◆ timing

int MuonStub::timing = 0

Definition at line 50 of file MuonStub.h.

Referenced by RpcDigiToStubsConverterOmtf::addRPCstub(), and operator<<().

◆ type

Type MuonStub::type = EMPTY