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