CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/L1Trigger/DTTrackFinder/src/L1MuDTTrackAssParam.cc File Reference

#include "L1Trigger/DTTrackFinder/src/L1MuDTTrackAssParam.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

ostream& operator<< ( ostream &  s,
TrackClass  tc 
)

Definition at line 22 of file L1MuDTTrackAssParam.cc.

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

                                                {

  switch ( tc ) {
    case T1234: return s << "T1234 ";
    case T123:  return s << "T123  ";
    case T124:  return s << "T124  ";
    case T134:  return s << "T134  ";
    case T234:  return s << "T234  ";
    case T12:   return s << "T12   ";
    case T14:   return s << "T14   ";
    case T13:   return s << "T13   ";
    case T24:   return s << "T24   ";
    case T23:   return s << "T23   ";
    case T34:   return s << "T34   ";
    default: return s << "UNDEF ";
  }

}
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 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;

}