CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawParticleTypeFilter.h
Go to the documentation of this file.
1 #ifndef RAWPARTTICLETYPEFILTER_H
2 #define RAWPARTTICLETYPEFILTER_H
3 
6 
14 public:
15 
17 
19  RawParticleTypeFilter(const std::string& particleName);
20 
22  RawParticleTypeFilter(const std::string& particleName1,
23  const std::string& particleName2);
24 
26  RawParticleTypeFilter(const int pid);
27 
29  RawParticleTypeFilter(const int pid1, const int pid2);
30 
31  virtual ~RawParticleTypeFilter(){;};
32 
33 public:
34 
37  void addAccept(const int id);
38 
41  void addAccept(const std::string& name);
42 
45  void addReject(const int id);
46 
49  void addReject(const std::string& name);
50 
51 private:
52 
54  bool isOKForMe(const RawParticle *p) const;
55 
57  bool isAcceptable(const int id) const;
58 
60  bool isRejectable(const int id) const;
61 
62 private:
63  std::vector<int> myAcceptIDs, myRejectIDs;
64 };
65 
66 #endif
bool isOKForMe(const RawParticle *p) const
implemented as required by class BaseRawParticleFilter
std::vector< int > myRejectIDs
void addAccept(const int id)
bool isRejectable(const int id) const
is this particle id in the list of rejectable particles?
std::vector< int > myAcceptIDs
bool isAcceptable(const int id) const
is this particle id in the list of acceptable particles?
void addReject(const int id)