CMS 3D CMS Logo

HcalPedestalWidth.cc File Reference

#include <math.h>
#include <iostream>
#include "CondFormats/HcalObjects/interface/HcalPedestalWidth.h"

Go to the source code of this file.

Functions

int offset (int fCapId1, int fCapId2)


Function Documentation

int @2638::offset ( int  fCapId1,
int  fCapId2 
) [static]

Definition at line 16 of file HcalPedestalWidth.cc.

References tmp.

00016                                         {
00017     static int offsets [4] = {0, 1, 3, 6};
00018     if (fCapId1 < fCapId2) { // swap
00019       int tmp = fCapId1; fCapId1 = fCapId2; fCapId2 = tmp;
00020     }
00021     return offsets [fCapId1] + fCapId2;
00022   }


Generated on Tue Jun 9 17:51:42 2009 for CMSSW by  doxygen 1.5.4