Classes | Enumerations | Functions | Variables
filter Namespace Reference

Module that kips a configurable number of events between each that it allows through. Note that this module really skips (N-1) events, it uses a simple modular division as its critera. This module will cut down the data sample to 1/N of its original size. More...

Classes

class  Filter
 Filter events based on simple expressions. More...
 
class  FLSFilter
 
class  SkipNEvents
 
class  TruthContain
 
class  TruthFilter
 A class for filtering Truth hits and truth interactions. More...
 

Enumerations

enum  kPars {
  kNEvts, kPdg, kCcNc, kIact,
  kEnu, kX, kY, kZ,
  kEdge, kInsideFiducialVolume, kNhit, kTotAdc,
  kNSlice, kSliceNXHit, kSliceNYHit, kVertexInFiducial,
  kNFLShit, kNumPars
}
 

Functions

bool compareBySecondLength (const std::pair< int, std::string > &a, const std::pair< int, std::string > &b)
 

Variables

const TString kParNames [kNumPars]
 

Detailed Description

Module that kips a configurable number of events between each that it allows through. Note that this module really skips (N-1) events, it uses a simple modular division as its critera. This module will cut down the data sample to 1/N of its original size.

Class to filter truth information.

Author
rocco.nosp@m.@fna.nosp@m.l.gov
Date
August 2011
Author
shana.nosp@m.han@.nosp@m.fnal..nosp@m.gov
Date

Enumeration Type Documentation

Enumerator
kNEvts 

Number of true neutrino interactions.

kPdg 

PDG code of the neutrino.

kCcNc 

Value of Nu().CCNC()

kIact 

Value of Nu().InteractionType()

kEnu 

True neutrino energy (GeV)

kX 

True vertex x position (cm)

kY 

True vertex y position (cm)

kZ 

True vertex z position (cm)

kEdge 

Distance to detector edge (cm)

kInsideFiducialVolume 

Is event inside fiducial volume? (fiducial volume is defined in Geometry.fcl)

kNhit 

Total number of hits in the event.

kTotAdc 

Total ADC in the event.

kNSlice 

Total number of slices in the event (including noise slice)

kSliceNXHit 

Number of hits in X view of the biggest physics slice.

kSliceNYHit 

Number of hits in X view of the biggest physics slice.

kVertexInFiducial 

Is track vertex (start position) inside the fiducial volume defined in filter.

kNFLShit 
kNumPars 

Definition at line 28 of file Filter_module.cc.

28  {
29  kNEvts, ///< Number of true neutrino interactions
30  kPdg, ///< PDG code of the neutrino
31  kCcNc, ///< Value of Nu().CCNC()
32  kIact, ///< Value of Nu().InteractionType()
33  kEnu, ///< True neutrino energy (GeV)
34  kX, ///< True vertex x position (cm)
35  kY, ///< True vertex y position (cm)
36  kZ, ///< True vertex z position (cm)
37  kEdge, ///< Distance to detector edge (cm)
38  kInsideFiducialVolume, ///< Is event inside fiducial volume? (fiducial volume is defined in Geometry.fcl)
39  kNhit, ///< Total number of hits in the event
40  kTotAdc, ///< Total ADC in the event
41  kNSlice, ///< Total number of slices in the event (including noise slice)
42  kSliceNXHit, ///< Number of hits in X view of the biggest physics slice
43  kSliceNYHit, ///< Number of hits in X view of the biggest physics slice
44  kVertexInFiducial, ///< Is track vertex (start position) inside the fiducial volume defined in filter
45  kNFLShit,
46  kNumPars
47  };
Is event inside fiducial volume? (fiducial volume is defined in Geometry.fcl)
Number of true neutrino interactions.
Total ADC in the event.
Value of Nu().CCNC()
True neutrino energy (GeV)
Total number of hits in the event.
Total number of slices in the event (including noise slice)
Distance to detector edge (cm)
Number of hits in X view of the biggest physics slice.
True vertex y position (cm)
Value of Nu().InteractionType()
Definition: geo.h:1
True vertex z position (cm)
PDG code of the neutrino.
Is track vertex (start position) inside the fiducial volume defined in filter.
Number of hits in X view of the biggest physics slice.

Function Documentation

bool filter::compareBySecondLength ( const std::pair< int, std::string > &  a,
const std::pair< int, std::string > &  b 
)

Definition at line 100 of file Filter_module.cc.

Referenced by filter::Filter::reconfigure().

102  {
103  return a.second.size() < b.second.size();
104  }
const double a
const hit & b
Definition: hits.cxx:21

Variable Documentation

const TString filter::kParNames[kNumPars]
Initial value:
= {"nevts", "pdg", "ccnc", "iact", "enu",
"x", "y", "z", "edge", "is_inside_fiducial_volume",
"nhit", "totadc",
"nslice", "slicenxhit", "slicenyhit","vertex_in_fiducial","nFLShit"}

Definition at line 51 of file Filter_module.cc.