ProtoDUNEBeamCuts.h
Go to the documentation of this file.
1 #ifndef ProtoDUNEBeamCuts_h
2 #define ProtoDUNEBeamCuts_h
3 
8 
9 #include <map>
10 
11 namespace protoana{
12 
13  struct BeamVals{
14  double X;
15  double Y;
16  double DirX;
17  double DirY;
18  double DirZ;
19  bool Valid;
20  };
21 
23 
24  public:
27  bool IsBeamlike( const recob::Track &, const art::Event &, std::string );
28  bool IsBeamlike( const recob::Shower &, const art::Event &, std::string );
29 
30  private:
31 
32  BeamVals GetMCBeam( const art::Event & );
33  BeamVals GetDataBeam( const art::Event & );
34 
35  std::map< std::string, fhicl::ParameterSet > DataCuts;
36  std::map< std::string, fhicl::ParameterSet > MCCuts;
37 
38  std::vector< std::string > valid_momenta = {
39  ".3", ".5", "1", "2", "3", "6", "7"
40  };
41 
42  };
43 }
44 
45 #endif
std::string string
Definition: nybbler.cc:12
std::map< std::string, fhicl::ParameterSet > DataCuts
std::map< std::string, fhicl::ParameterSet > MCCuts
Provides recob::Track data product.
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
Definition: Track.h:49