StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyListCut.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyListCut.h,v 1.1 2008/11/27 07:35:31 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTOWERENERGYLISTCUT_H
5 #define STJTOWERENERGYLISTCUT_H
6 
7 #include <TObject.h>
8 
9 #include "StjTowerEnergyList.h"
10 #include "StjTowerEnergyCut.h"
11 
12 #include <vector>
13 
14 class StjTowerEnergyListCut : public TObject {
15 
16 public:
18  virtual ~StjTowerEnergyListCut() { }
19 
20  StjTowerEnergyList operator()(const StjTowerEnergyList& energyList);
21 
22  void addCut(StjTowerEnergyCut* cut) {
23  _cutList.push_back(cut);
24  }
25 
26  typedef std::vector<StjTowerEnergyCut*> CutList;
27  CutList getCutList() { return _cutList; }
28 
29 private:
30 
31  bool shouldNotKeep(const StjTowerEnergy& deposit);
32 
33  CutList _cutList;
34 
35  ClassDef(StjTowerEnergyListCut, 1)
36 
37 };
38 
39 #endif // STJTOWERENERGYLISTCUT_H