CMS 3D CMS Logo

Enumerations | Functions | Variables

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/DTTrackFinder/src/L1MuDTTrackAssParam.h File Reference

#include <iosfwd>
#include <string>

Go to the source code of this file.

Enumerations

enum  TrackClass {
  T1234, T123, T124, T134,
  T234, T12, T14, T13,
  T24, T23, T34, UNDEF
}

Functions

std::ostream & operator<< (std::ostream &s, TrackClass tc)
const unsigned int tc2bitmap (const TrackClass tc)
const std::string tc2string (const TrackClass tc)

Variables

const int MAX_TC = 11

Enumeration Type Documentation

enum TrackClass
Enumerator:
T1234 
T123 
T124 
T134 
T234 
T12 
T14 
T13 
T24 
T23 
T34 
UNDEF 

Definition at line 23 of file L1MuDTTrackAssParam.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  s,
TrackClass  tc 
)
const unsigned int tc2bitmap ( const TrackClass  tc)

Definition at line 45 of file L1MuDTTrackAssParam.cc.

References T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, T34, and relativeConstraints::value.

Referenced by L1MuDTTrackAssembler::runAddressAssignment1(), and L1MuDTTrackAssembler::runAddressAssignment2().

                                                  {

  unsigned int value = 0;

  switch ( tc ) {
    case T1234: { value = 15; break; }
    case T123:  { value =  7; break; }
    case T124:  { value = 11; break; } 
    case T134:  { value = 13; break; }
    case T234:  { value = 14; break; }
    case T12:   { value =  3; break; }
    case T14:   { value =  9; break; }
    case T13:   { value =  5; break; }
    case T24:   { value = 10; break; }
    case T23:   { value =  6; break; } 
    case T34:   { value = 12; break; }
    default:    { value =  0; break; }
  }

  return value;

}
const std::string tc2string ( const TrackClass  tc)

Definition at line 72 of file L1MuDTTrackAssParam.cc.

References T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, and T34.

                                            {

  string str = "####";

  switch ( tc ) {
    case T1234: { str = "****"; break; }
    case T123:  { str = "***-"; break; }
    case T124:  { str = "**-*"; break; } 
    case T134:  { str = "*-**"; break; }
    case T234:  { str = "-***"; break; }
    case T12:   { str = "**--"; break; }
    case T14:   { str = "*--*"; break; }
    case T13:   { str = "*-*-"; break; }
    case T24:   { str = "-*-*"; break; }
    case T23:   { str = "-**-"; break; } 
    case T34:   { str = "--**"; break; }
    default:    { str = "UNDEF"; break; }
  }

  return str;

}

Variable Documentation

const int MAX_TC = 11

Definition at line 20 of file L1MuDTTrackAssParam.h.