All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NueSelection.h
Go to the documentation of this file.
1 #ifndef __sbnanalysis_ana_SBNOsc_NueSelection__
2 #define __sbnanalysis_ana_SBNOsc_NueSelection__
3 
4 /**
5  * \file NueSelection.h
6  *
7  * SBN nue selection.
8  *
9  * Author:
10  */
11 
12 #include <iostream>
13 #include "canvas/Utilities/InputTag.h"
14 #include "core/SelectionBase.hh"
15 #include "core/Event.hh"
16 
17 class TH2D;
18 
19 namespace ana {
20  namespace SBNOsc {
21 
22 /**
23  * \class NueSelection
24  * \brief Electron neutrino event selection
25  */
27 public:
28  /** Constructor. */
29  NueSelection();
30 
31  /**
32  * Initialization.
33  *
34  * \param config A configuration, as a FHiCL ParameterSet object
35  */
36  void Initialize(fhicl::ParameterSet* config=NULL);
37 
38  /** Finalize and write objects to the output file. */
39  void Finalize();
40 
41  /**
42  * Process one event.
43  *
44  * \param ev A single event, as a gallery::Event
45  * \param Reconstructed interactions
46  * \return True to keep event
47  */
48  bool ProcessEvent(const gallery::Event& ev, const std::vector<event::Interaction> &truth, std::vector<event::RecoInteraction>& reco);
49 
50 protected:
51  unsigned fEventCounter; //!< Count processed events
52  unsigned fNuCount; //!< Count selected events
53 
54  /** Configuration parameters */
55  art::InputTag fTruthTag; //!< art tag for MCTruth information
56 };
57 
58  } // namespace SBNOsc
59 } // namespace ana
60 
61 #endif // __sbnanalysis_ana_SBNOsc_NueSelection__
62 
void Initialize(fhicl::ParameterSet *config=NULL)
unsigned fNuCount
Count selected events.
Definition: NueSelection.h:52
process_name opflashCryoW ana
process_name standard_reco_uboone reco
unsigned fEventCounter
Count processed events.
Definition: NueSelection.h:51
Base class for event selections.
Electron neutrino event selection.
Definition: NueSelection.h:26
bool ProcessEvent(const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)
art::InputTag fTruthTag
art tag for MCTruth information
Definition: NueSelection.h:55