CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 78 of file L1MuTriggerScalesOnlineProducer.cc.

Member Function Documentation

static double PhiScaleHelper::deg2rad ( double  deg)
inlinestatic

Definition at line 101 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

Referenced by makeBinnedScale().

101 { 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 81 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, deg2rad(), l1t::OMDSReader::QueryResults::fillVariable(), LowMarkColumn, pileupCalc::nbins, relval_parameters_module::step, and StepColumn.

81  {
82  short nbins=0;
83  record.fillVariable(BinsColumn, nbins);
84  float lowMark=0.;
85  record.fillVariable(LowMarkColumn, lowMark);
86  float step=0.;
87  record.fillVariable(StepColumn, step);
88 
89  return new L1MuBinnedScale(nBits, signedPacking,
90  nbins, deg2rad(lowMark),
91  deg2rad(lowMark + nbins*step));
92 
93  }
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:311
static const string LowMarkColumn
static double deg2rad(double deg)
static void PhiScaleHelper::pushColumnNames ( vector< string > &  columns)
inlinestatic

Definition at line 95 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, LowMarkColumn, and StepColumn.

95  {
96  columns.push_back(BinsColumn);
97  columns.push_back(LowMarkColumn);
98  columns.push_back(StepColumn);
99  }
static const string LowMarkColumn
static double PhiScaleHelper::rad2deg ( double  rad)
inlinestatic

Definition at line 102 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

102 { return rad/M_PI*180.0; }
#define M_PI

Member Data Documentation

const string PhiScaleHelper::BinsColumn = "PHI_BINS"
static

Definition at line 104 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::LowMarkColumn = "PHI_DEG_BIN_LOW_0"
static

Definition at line 105 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::StepColumn = "PHI_DEG_BIN_STEP"
static

Definition at line 106 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().