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.

References M_PI.

Referenced by makeBinnedScale().

92 { return deg * M_PI / 180.0; }
#define M_PI

◆ makeBinnedScale()

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

Definition at line 75 of file L1MuTriggerScalesOnlineProducer.cc.

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

Referenced by L1MuTriggerScalesOnlineProducer::newObject().

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  }
static const string LowMarkColumn
static const string StepColumn
static double deg2rad(double deg)
static const string BinsColumn
step
Definition: StallMonitor.cc:83

◆ pushColumnNames()

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

Definition at line 86 of file L1MuTriggerScalesOnlineProducer.cc.

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

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

◆ rad2deg()

static double PhiScaleHelper::rad2deg ( double  rad)
inlinestatic

Definition at line 93 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

93 { return rad / M_PI * 180.0; }
#define 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().