CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BaseRawParticleFilter.cc
Go to the documentation of this file.
2 
4 {
5  return this->accept(&p);
6 }
7 
9 {
10  // cout << "test a particle pointer" << endl;
11  bool acceptThis = false;
12 
13  acceptThis = this->isOKForMe(p) ;
14 
15  std::vector<BaseRawParticleFilter*>::const_iterator myFilterItr;
16  myFilterItr = myFilter.begin();
17 
18  while ( acceptThis &&
19  ( myFilterItr != myFilter.end() ) ) {
20  acceptThis = acceptThis && (*myFilterItr)->accept(p);
21  myFilterItr++;
22  }
23  return acceptThis;
24 }
25 
27 {
28  myFilter.push_back(f);
29 }
void addFilter(BaseRawParticleFilter *f)
Add a BaseRawParticleFilter to be run after executing this one.
double f[11][100]
bool accept(const RawParticle &p) const
virtual bool isOKForMe(const RawParticle *p) const =0
Here the specific filtering is to be done.