CMS 3D CMS Logo

List of all members | Static Public Member Functions
CSCUpgradeMotherboardLUTGenerator::Helpers Class Reference

#include <CSCUpgradeMotherboardLUTGenerator.h>

Static Public Member Functions

static RPCDetId getRPCfromCSC (const CSCDetId &csc_id)
 

Detailed Description

Definition at line 16 of file CSCUpgradeMotherboardLUTGenerator.h.

Member Function Documentation

RPCDetId CSCUpgradeMotherboardLUTGenerator::Helpers::getRPCfromCSC ( const CSCDetId csc_id)
static

Definition at line 8 of file CSCUpgradeMotherboardLUTGenerator.cc.

References CSCDetId::station(), CSCTriggerNumbering::triggerCscIdFromLabels(), CSCTriggerNumbering::triggerSectorFromLabels(), and CSCDetId::zendcap().

Referenced by CSCUpgradeMotherboardLUTGenerator::generateLUTsME3141().

9 {
10  const int region(csc_id.zendcap());
11  const int csc_trig_sect(CSCTriggerNumbering::triggerSectorFromLabels(csc_id));
12  const int csc_trig_id( CSCTriggerNumbering::triggerCscIdFromLabels(csc_id));
13  const int csc_trig_chid((3*(csc_trig_sect-1)+csc_trig_id)%18 +1);
14  const int rpc_trig_sect((csc_trig_chid-1)/3+1);
15  const int rpc_trig_subsect((csc_trig_chid-1)%3+1);
16  return RPCDetId(region,1,csc_id.station(),rpc_trig_sect,1,rpc_trig_subsect,0);
17 }
static int triggerCscIdFromLabels(int station, int ring, int chamber)
short int zendcap() const
Definition: CSCDetId.h:100
static int triggerSectorFromLabels(int station, int ring, int chamber)
int station() const
Definition: CSCDetId.h:86