10 using namespace L1TMuon;
64 <<
"The specified subsystem for this track stub is out of range"
68 const unsigned shift = 4*offset + station - 1;
69 const unsigned bit = 1 <<
shift;
84 <<
" sector: " <<
_sector << std::endl;
86 <<
"\t phi index: " <<
phi_packed() << std::endl;
89 std::cout <<
"\tMode Breakdown: " << std::hex
102 std::cout <<
"\tParent is a DT Track!" << std::endl;
103 std::cout <<
"\t Parent Track Class: " << dtparent->TCNum() << std::endl;
104 std::cout <<
"\t Parent Mode: " << std::hex
107 std::cout <<
"\t MB 1: " << dtparent->stNum(1)
108 <<
"\t MB 2: " << dtparent->stNum(2)
109 <<
"\t MB 3: " << dtparent->stNum(3)
110 <<
"\t MB 4: " << dtparent->stNum(4) << std::endl;
111 if( (mode & 0x1) != (
dtMode() & 0x1) ) {
112 std::cout <<
"DT-Based Internal Track did not find expected DT"
113 <<
" segment in station 1!" << std::endl;
115 if( (mode & 0x2) != (
dtMode() & 0x2) ) {
116 std::cout <<
"DT-Based Internal Track did not find expected DT"
117 <<
" segment in station 2!" << std::endl;
119 if(
std::abs(dtparent->whNum()) == 3 ) {
120 if( dtparent->stNum(3) == 0 || dtparent->stNum(3) == 1) {
121 if( (mode & 0x4) != ((
cscMode() & 0x1)<<2) ) {
122 std::cout <<
"DT-Based Internal Track did not find expected CSC"
123 <<
" segment in station 1!" << std::endl;
126 if( (mode & 0x4) != (
dtMode() & 0x4) ) {
127 std::cout <<
"DT-Based Internal Track did not find expected DT"
128 <<
" segment in station 3!" << std::endl;
132 if( (mode & 0x4) != (
dtMode() & 0x4) ) {
133 std::cout <<
"DT-Based Internal Track did not find expected DT"
134 <<
" segment in station 3!" << std::endl;
137 if( (mode & 0x8) != (
dtMode() & 0x8) ) {
138 std::cout <<
"DT-Based Internal Track did not find expected DT"
139 <<
" segment in station 4!" << std::endl;
141 std::cout <<
"\t Parent Quality: " << dtparent->quality() << std::endl;
145 std::cout <<
"\tParent is a RPCb Track!" << std::endl;
146 std::cout <<
"\t Parent Quality: " << rpcparent->quality() << std::endl;
147 std::cout <<
"\t Parent phi: " << rpcparent->phi_packed() << std::endl;
148 std::cout <<
"\t Parent eta: " << rpcparent->eta_packed() << std::endl;
152 std::cout <<
"\tParent is a CSC Track!" << std::endl;
153 std::cout <<
"\t Parent Mode: " << std::hex
156 <<
"\t ME 1: " << cscparent->me1ID()
157 <<
"\t ME 2: " << cscparent->me2ID()
158 <<
"\t ME 3: " << cscparent->me3ID()
159 <<
"\t ME 4: " << cscparent->me4ID()
160 <<
"\t MB 1: " << cscparent->mb1ID() << std::endl;
161 if( (
bool)(cscparent->me1ID()) != (
bool)(
cscMode() & 0x1) ) {
162 std::cout <<
"CSC-Based Internal Track did not find expected CSC"
163 <<
" segment in station 1!" << std::endl;
165 if( (
bool)(cscparent->me2ID()) != (
bool)(
cscMode() & 0x2) ) {
166 std::cout <<
"CSC-Based Internal Track did not find expected CSC"
167 <<
" segment in station 2!" << std::endl;
169 if( (
bool)(cscparent->me3ID()) != (
bool)(
cscMode() & 0x4) ) {
170 std::cout <<
"CSC-Based Internal Track did not find expected CSC"
171 <<
" segment in station 3!" << std::endl;
173 if( (
bool)(cscparent->me4ID()) != (
bool)(
cscMode() & 0x8) ) {
174 std::cout <<
"CSC-Based Internal Track did not find expected CSC"
175 <<
" segment in station 4!" << std::endl;
177 if( (
bool)(cscparent->mb1ID()) != (
bool)(
dtMode() & 0x1) ) {
178 std::cout <<
"CSC-Based Internal Track did not find expected DT"
179 <<
" segment in station 1!" << std::endl;
181 std::cout <<
"\t Parent Quality: " << cscparent->quality() << std::endl;
185 std::cout <<
"\tParent is a RPCf Track!" << std::endl;
186 std::cout <<
"\t Parent Quality: " << rpcparent->quality() << std::endl;
187 std::cout <<
"\t Parent phi: " << rpcparent->phi_packed() << std::endl;
188 std::cout <<
"\t Parent eta: " << rpcparent->eta_packed() << std::endl;
194 <<
"L1ITMu::InternalTrack is of unknown track type: " <<
type_idx()
void print() const
print candidate
const subsystem_type subsystem() const
unsigned long rpcbMode() const
unsigned long rpcfMode() const
unsigned long cscMode() const
bool isNonnull() const
Checks for non-null.
const unsigned int tc2bitmap(const TrackClass tc)
RegionalCandBaseRef _parent
void addStub(const TriggerPrimitive &stub)
unsigned type_idx() const
std::vector< TriggerPrimitive > TriggerPrimitiveCollection
Abs< T >::type abs(const T &t)
unsigned eta_packed() const
return eta packed as in hardware
unsigned long mode() const
TriggerPrimitiveStationMap _associatedStubs
unsigned int quality() const
return quality
unsigned long dtMode() const
static unsigned int const shift
unsigned type_idx() const
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
unsigned phi_packed() const
return phi packed as in hardware
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.