CMS 3D CMS Logo

CastorPedestalWidth.cc File Reference

#include <math.h>
#include <iostream>
#include "CondFormats/CastorObjects/interface/CastorPedestalWidth.h"

Go to the source code of this file.

Functions

int offset (int fCapId1, int fCapId2)


Function Documentation

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

Definition at line 13 of file CastorPedestalWidth.cc.

References tmp.

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


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