CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
MuonIdProducer::ICTypes Struct Reference

Public Types

enum  ICTypeKey {
  INNER_TRACKS, OUTER_TRACKS, LINKS, MUONS,
  TEV_FIRSTHIT, TEV_PICKY, TEV_DYT, NONE
}
 

Static Public Member Functions

static ICTypeKey toKey (const std::string &s)
 
static std::string toStr (const ICTypeKey k)
 

Detailed Description

Definition at line 141 of file MuonIdProducer.h.

Member Enumeration Documentation

Member Function Documentation

static ICTypeKey MuonIdProducer::ICTypes::toKey ( const std::string &  s)
inlinestatic

Definition at line 150 of file MuonIdProducer.h.

References Exception, INNER_TRACKS, LINKS, MUONS, OUTER_TRACKS, alignCSCRings::s, TEV_DYT, TEV_FIRSTHIT, and TEV_PICKY.

Referenced by MuonIdProducer::MuonIdProducer().

150  {
151  if ( s == "inner tracks" ) return INNER_TRACKS;
152  else if ( s == "outer tracks" ) return OUTER_TRACKS;
153  else if ( s == "links" ) return LINKS;
154  else if ( s == "muons" ) return MUONS;
155  else if ( s == "tev firstHit" ) return TEV_FIRSTHIT;
156  else if ( s == "tev picky" ) return TEV_PICKY ;
157  else if ( s == "tev dyt" ) return TEV_DYT ;
158 
159  throw cms::Exception("FatalError") << "Unknown input collection type: " << s;
160  }
static std::string MuonIdProducer::ICTypes::toStr ( const ICTypeKey  k)
inlinestatic

Definition at line 162 of file MuonIdProducer.h.

References Exception, INNER_TRACKS, LINKS, MUONS, OUTER_TRACKS, TEV_DYT, TEV_FIRSTHIT, and TEV_PICKY.

Referenced by MuonIdProducer::init().

162  {
163  switch ( k ) {
164  case INNER_TRACKS: return "inner tracks";
165  case OUTER_TRACKS: return "outer tracks";
166  case LINKS : return "links" ;
167  case MUONS : return "muons" ;
168  case TEV_FIRSTHIT: return "tev firstHit";
169  case TEV_PICKY : return "tev picky" ;
170  case TEV_DYT : return "tev dyt" ;
171  default: throw cms::Exception("FatalError") << "Unknown input collection type";
172  }
173  return "";
174  }
int k[5][pyjets_maxn]