StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyCutTowerId.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyCutTowerId.h,v 1.1 2008/11/27 07:35:30 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTOWERENERGYCUTTOWERID_H
5 #define STJTOWERENERGYCUTTOWERID_H
6 
7 #include "StjTowerEnergyCut.h"
8 
10 
11 public:
12  StjTowerEnergyCutTowerId(int towerId = 0)
13  :_towerId(towerId) { }
14  virtual ~StjTowerEnergyCutTowerId() { }
15 
16  bool operator()(const StjTowerEnergy& tower)
17  {
18  if(tower.detectorId != 9) return true;
19 
20  if(tower.towerId == _towerId) return true;
21 
22  return false;
23  }
24 
25 private:
26 
27  int _towerId;
28 
29  ClassDef(StjTowerEnergyCutTowerId, 1)
30 
31 };
32 
33 #endif // STJTOWERENERGYCUTTOWERID_H