CMS 3D CMS Logo

Static Public Member Functions | Static Public Attributes

PhiScaleHelper Class Reference

List of all members.

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) [inline, static]

Definition at line 103 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

Referenced by makeBinnedScale().

{ return deg*M_PI/180.0; }
static L1MuBinnedScale* PhiScaleHelper::makeBinnedScale ( l1t::OMDSReader::QueryResults record,
int  nBits,
bool  signedPacking 
) [inline, static]

Definition at line 83 of file L1MuTriggerScalesOnlineProducer.cc.

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

                                                                                                            {
    short nbins;
    record.fillVariable(BinsColumn, nbins);
    float lowMark;
    record.fillVariable(LowMarkColumn, lowMark);
    float step;
    record.fillVariable(StepColumn, step);

    return new L1MuBinnedScale(nBits, signedPacking, 
                               nbins, deg2rad(lowMark), 
                               deg2rad(lowMark + nbins*step));

  }
void ScaleRecordHelper::pushColumnNames ( vector< string > &  columns) [inline, static]

Definition at line 97 of file L1MuTriggerScalesOnlineProducer.cc.

References BinsColumn, LowMarkColumn, and StepColumn.

                                                       { 
    columns.push_back(BinsColumn);
    columns.push_back(LowMarkColumn);
    columns.push_back(StepColumn);
  }
static double PhiScaleHelper::rad2deg ( double  rad) [inline, static]

Definition at line 104 of file L1MuTriggerScalesOnlineProducer.cc.

References M_PI.

{ return rad/M_PI*180.0; }

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().