|
bool | isSubset (std::vector< int > const &a, std::vector< int > const &b) const |
|
filt::FinalStateParticleFilter::FinalStateParticleFilter |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
void filt::FinalStateParticleFilter::beginJob |
( |
| ) |
|
Definition at line 65 of file FinalStateParticleFilter_module.cc.
67 art::ServiceHandle<art::TFileService const>
tfs;
68 fSelectedEvents = tfs->make<TH1D>(
"fSelectedEvents",
"Number of Selected Events", 3, 0, 3);
69 fTotalEvents = tfs->make<TH1D>(
"fTotalEvents",
"Total Events", 3, 0, 3);
art::ServiceHandle< art::TFileService > tfs
bool filt::FinalStateParticleFilter::filter |
( |
art::Event & |
evt | ) |
|
Definition at line 73 of file FinalStateParticleFilter_module.cc.
78 art::Handle< std::vector<simb::MCTruth> > mclist;
80 art::Ptr<simb::MCTruth> mc(mclist,0);
84 std::vector<int> finalstateparticles;
87 for(
int i = 0; i < mc->NParticles(); ++i){
88 simb::MCParticle part(mc->GetParticle(i));
89 if(part.StatusCode()== 1)
90 finalstateparticles.push_back(part.PdgCode());
95 std::cout <<
"this is a selected event" << std::endl;
std::string fGenieModuleLabel
bool isSubset(std::vector< int > const &a, std::vector< int > const &b) const
BEGIN_PROLOG could also be cout
bool filt::FinalStateParticleFilter::isSubset |
( |
std::vector< int > const & |
a, |
|
|
std::vector< int > const & |
b |
|
) |
| const |
|
private |
std::string filt::FinalStateParticleFilter::fGenieModuleLabel |
|
private |
std::vector<int> filt::FinalStateParticleFilter::fPDG |
|
private |
TH1D* filt::FinalStateParticleFilter::fSelectedEvents |
|
private |
std::vector<int> filt::FinalStateParticleFilter::fStatusCode |
|
private |
TH1D* filt::FinalStateParticleFilter::fTotalEvents |
|
private |
The documentation for this class was generated from the following file: