CMS 3D CMS Logo

List of all members | Static Public Member Functions | Static Public Attributes
PhiScaleHelper Class Reference

Static Public Member Functions

static double deg2rad (double deg)
 
static L1MuBinnedScalemakeBinnedScale (l1t::OMDSReader::QueryResults &record, int nBits, bool signedPacking)
 
static void pushColumnNames (vector< string > &columns)
 
static double rad2deg (double rad)
 

Static Public Attributes

static const string BinsColumn = "PHI_BINS"
 
static const string LowMarkColumn = "PHI_DEG_BIN_LOW_0"
 
static const string StepColumn = "PHI_DEG_BIN_STEP"
 

Detailed Description

Definition at line 73 of file L1MuTriggerScalesOnlineProducer.cc.

Member Function Documentation

◆ deg2rad()

static double PhiScaleHelper::deg2rad ( double  deg)
inlinestatic

Definition at line 92 of file L1MuTriggerScalesOnlineProducer.cc.

92 { return deg * M_PI / 180.0; }

References M_PI.

Referenced by makeBinnedScale().

◆ makeBinnedScale()

static L1MuBinnedScale* PhiScaleHelper::makeBinnedScale ( l1t::OMDSReader::QueryResults record,
int  nBits,
bool  signedPacking 
)
inlinestatic

Definition at line 75 of file L1MuTriggerScalesOnlineProducer.cc.

75  {
76  short nbins = 0;
77  record.fillVariable(BinsColumn, nbins);
78  float lowMark = 0.;
79  record.fillVariable(LowMarkColumn, lowMark);
80  float step = 0.;
81  record.fillVariable(StepColumn, step);
82 
83  return new L1MuBinnedScale(nBits, signedPacking, nbins, deg2rad(lowMark), deg2rad(lowMark + nbins * step));
84  }

References BinsColumn, deg2rad(), LowMarkColumn, LaserClient_cfi::nbins, GlobalPosition_Frontier_DevDB_cff::record, and StepColumn.

Referenced by L1MuTriggerScalesOnlineProducer::newObject().

◆ pushColumnNames()

static void PhiScaleHelper::pushColumnNames ( vector< string > &  columns)
inlinestatic

Definition at line 86 of file L1MuTriggerScalesOnlineProducer.cc.

86  {
87  columns.push_back(BinsColumn);
88  columns.push_back(LowMarkColumn);
89  columns.push_back(StepColumn);
90  }

References BinsColumn, mps_check::columns, LowMarkColumn, and StepColumn.

◆ rad2deg()

static double PhiScaleHelper::rad2deg ( double  rad)
inlinestatic

Definition at line 93 of file L1MuTriggerScalesOnlineProducer.cc.

93 { return rad / M_PI * 180.0; }

References M_PI.

Member Data Documentation

◆ BinsColumn

const string PhiScaleHelper::BinsColumn = "PHI_BINS"
static

Definition at line 95 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

◆ LowMarkColumn

const string PhiScaleHelper::LowMarkColumn = "PHI_DEG_BIN_LOW_0"
static

Definition at line 96 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

◆ StepColumn

const string PhiScaleHelper::StepColumn = "PHI_DEG_BIN_STEP"
static

Definition at line 97 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

step
step
Definition: StallMonitor.cc:94
PhiScaleHelper::LowMarkColumn
static const string LowMarkColumn
Definition: L1MuTriggerScalesOnlineProducer.cc:96
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
PhiScaleHelper::BinsColumn
static const string BinsColumn
Definition: L1MuTriggerScalesOnlineProducer.cc:95
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:50
L1MuBinnedScale
Definition: L1MuScale.h:93
mps_check.columns
columns
Definition: mps_check.py:244
PhiScaleHelper::StepColumn
static const string StepColumn
Definition: L1MuTriggerScalesOnlineProducer.cc:97
PhiScaleHelper::deg2rad
static double deg2rad(double deg)
Definition: L1MuTriggerScalesOnlineProducer.cc:92