StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgBEMCJetPatchTowerIdMap2005.cxx
1 // $Id: StjTrgBEMCJetPatchTowerIdMap2005.cxx,v 1.1 2008/08/12 04:07:01 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjTrgBEMCJetPatchTowerIdMap2005.h"
4 
6 
7 int StjTrgBEMCJetPatchTowerIdMap2005::getJetPatchIdForTower(int towerId)
8 {
9  if(2101 <= towerId && towerId <= 2400) return 0;
10  if( 1 <= towerId && towerId <= 100) return 0;
11  if( 101 <= towerId && towerId <= 500) return 1;
12  if( 501 <= towerId && towerId <= 900) return 2;
13  if( 901 <= towerId && towerId <= 1300) return 3;
14  if(1301 <= towerId && towerId <= 1700) return 4;
15  if(1701 <= towerId && towerId <= 2100) return 5;
16  return -1;
17 }
18