#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) |
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 }