Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FastSimulation
Particle
src
BaseRawParticleFilter.cc
Go to the documentation of this file.
1
#include "
FastSimulation/Particle/interface/BaseRawParticleFilter.h
"
2
3
bool
BaseRawParticleFilter::accept
(
const
RawParticle
&
p
)
const
4
{
5
return
this->
accept
(&p);
6
}
7
8
bool
BaseRawParticleFilter::accept
(
const
RawParticle
*
p
)
const
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
26
void
BaseRawParticleFilter::addFilter
(
BaseRawParticleFilter
*
f
)
27
{
28
myFilter
.push_back(f);
29
}
BaseRawParticleFilter::addFilter
void addFilter(BaseRawParticleFilter *f)
Add a BaseRawParticleFilter to be run after executing this one.
Definition:
BaseRawParticleFilter.cc:26
myFilter
Definition:
myFilter.h:12
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
RawParticle
Definition:
RawParticle.h:32
BaseRawParticleFilter.h
BaseRawParticleFilter::accept
bool accept(const RawParticle &p) const
Definition:
BaseRawParticleFilter.cc:3
BaseRawParticleFilter
Definition:
BaseRawParticleFilter.h:12
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
BaseRawParticleFilter::isOKForMe
virtual bool isOKForMe(const RawParticle *p) const =0
Here the specific filtering is to be done.
Generated for CMSSW Reference Manual by
1.8.5