StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgBEMCJetPatchTowerIdMap2006.cxx
1 // $Id: StjTrgBEMCJetPatchTowerIdMap2006.cxx,v 1.1 2008/10/16 19:47:49 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjTrgBEMCJetPatchTowerIdMap2006.h"
4 
6 
7 int StjTrgBEMCJetPatchTowerIdMap2006::getJetPatchIdForTower(int towerId)
8 {
9  if( 1 <= towerId && towerId <= 100) return 1;
10  if( 101 <= towerId && towerId <= 500) return 2;
11  if( 501 <= towerId && towerId <= 900) return 3;
12  if( 901 <= towerId && towerId <= 1300) return 4;
13  if(1301 <= towerId && towerId <= 1700) return 5;
14  if(1701 <= towerId && towerId <= 2100) return 0;
15  if(2101 <= towerId && towerId <= 2400) return 1;
16  if(2401 <= towerId && towerId <= 2500) return 7;
17  if(2501 <= towerId && towerId <= 2900) return 6;
18  if(2901 <= towerId && towerId <= 3300) return 11;
19  if(3301 <= towerId && towerId <= 3700) return 10;
20  if(3701 <= towerId && towerId <= 4100) return 9;
21  if(4101 <= towerId && towerId <= 4500) return 8;
22  if(4501 <= towerId && towerId <= 4800) return 7;
23  return -1;
24 }
25