StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjeParticleCollector.h
1 // -*- mode: c++;-*-
2 // $Id: StjeParticleCollector.h,v 1.3 2010/04/24 04:15:35 pibero Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STPARTICLECOLLECTOR_H
5 #define STPARTICLECOLLECTOR_H
6 
7 #include "StppAnaPars.h"
8 
9 #include <list>
10 
11 class AbstractFourVec;
12 class StFourPMaker;
13 class StMuTrackFourVec;
14 
16 
17 public:
18 
19  typedef std::vector<const AbstractFourVec*> ParticleList;
20 
21  StjeParticleCollector(const StppAnaPars* ap, StFourPMaker* fp, ParticleList& particleList);
22 
23  virtual ~StjeParticleCollector() {}
24 
25  void Do(int iVertex);
26  size_t numberOfVertices() const;
27 
28 private:
29 
30  bool shoudNotPassToJetFinder(const AbstractFourVec* particle) const;
31 
32  bool isChargedTrack(const StMuTrackFourVec* p) const;
33 
34  StFourPMaker* _fourPMaker;
35  ParticleList& _particleList;
36 
37  StppAnaPars _anaPar;
38 
39 };
40 
41 #endif // STPARTICLECOLLECTOR_H