CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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
static L1MuBinnedScale* PhiScaleHelper::makeBinnedScale ( l1t::OMDSReader::QueryResults record,
int  nBits,
bool  signedPacking 
)
inlinestatic

Definition at line 75 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, deg2rad(), l1t::OMDSReader::QueryResults::fillVariable(), LowMarkColumn, hlt_dqm_clientPB-live_cfg::nbins, 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  }
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
static const string LowMarkColumn
static const string StepColumn
static double deg2rad(double deg)
static const string BinsColumn
step
Definition: StallMonitor.cc:98
static void PhiScaleHelper::pushColumnNames ( vector< string > &  columns)
inlinestatic

Definition at line 86 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, 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
tuple columns
Definition: mps_check.py:244
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

const string PhiScaleHelper::BinsColumn = "PHI_BINS"
static

Definition at line 95 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::LowMarkColumn = "PHI_DEG_BIN_LOW_0"
static

Definition at line 96 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::StepColumn = "PHI_DEG_BIN_STEP"
static

Definition at line 97 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().