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 80 of file L1MuTriggerScalesOnlineProducer.cc.

Member Function Documentation

static double PhiScaleHelper::deg2rad ( double  deg)
inlinestatic

Definition at line 103 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

Referenced by makeBinnedScale().

103 { return deg*M_PI/180.0; }
#define M_PI
Definition: BFit3D.cc:3
static L1MuBinnedScale* PhiScaleHelper::makeBinnedScale ( l1t::OMDSReader::QueryResults record,
int  nBits,
bool  signedPacking 
)
inlinestatic

Definition at line 83 of file L1MuTriggerScalesOnlineProducer.cc.

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

83  {
84  short nbins=0;
85  record.fillVariable(BinsColumn, nbins);
86  float lowMark=0.;
87  record.fillVariable(LowMarkColumn, lowMark);
88  float step=0.;
89  record.fillVariable(StepColumn, step);
90 
91  return new L1MuBinnedScale(nBits, signedPacking,
92  nbins, deg2rad(lowMark),
93  deg2rad(lowMark + nbins*step));
94 
95  }
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 97 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, LowMarkColumn, and StepColumn.

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

Definition at line 104 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

104 { return rad/M_PI*180.0; }
#define M_PI
Definition: BFit3D.cc:3

Member Data Documentation

const string PhiScaleHelper::BinsColumn = "PHI_BINS"
static

Definition at line 106 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::LowMarkColumn = "PHI_DEG_BIN_LOW_0"
static

Definition at line 107 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().

const string PhiScaleHelper::StepColumn = "PHI_DEG_BIN_STEP"
static

Definition at line 108 of file L1MuTriggerScalesOnlineProducer.cc.

Referenced by makeBinnedScale(), and pushColumnNames().