All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Selection.h
Go to the documentation of this file.
1 #ifndef __sbnanalysis_ana_SBNOsc_Selection__
2 #define __sbnanalysis_ana_SBNOsc_Selection__
3 
4 /**
5  * \file Selection.h
6  */
7 
8 #include "fhiclcpp/ParameterSet.h"
10 
11 #include <string>
12 #include <vector>
13 #include <map>
14 #include <string>
15 #include <iostream>
16 #include <cassert>
17 
18 #include <TFile.h>
19 #include <TTree.h>
20 #include <TH1D.h>
21 #include <TH2D.h>
22 #include <TH3D.h>
23 #include <TMatrixDSym.h>
24 
26 
27 #include "Histograms.h"
28 #include "Cuts.h"
29 #include "Normalize.h"
30 #include "ROC.h"
31 
32 #include "../Histograms/CRTHisto.h"
33 #include "../Histograms/DynamicSelector.h"
34 #include "../Data/RecoEvent.h"
35 #include "../Data/MCType.h"
36 
37 class TTree;
38 
39 namespace ana {
40  namespace SBNOsc {
41 
43 public:
44  // implementing PostProcessor
45  void FileCleanup(TTree *eventTree) {}
46  void FileSetup(TFile *f, TTree *eventTree);
47  void Initialize(fhicl::ParameterSet *config);
48  void ProcessEvent(const event::Event *event);
49  void ProcessSubRun(const SubRun *subrun);
50  void ProcessFileMeta(const FileMeta *meta);
51  void Finalize();
52 
53 private:
60 
63 
65  fhicl::ParameterSet fCutConfig;
69  double fGoalPOT;
70  double fNCosmicData;
71 
72  std::vector<numu::TrackSelector> fTrackSelectors;
73  std::vector<std::string> fTrackSelectorNames;
74 
75  std::vector<numu::TrackFunction> fTrackProfileValues;
76 
78  TFile *fOutputFile;
79 
80  std::string fHistogramPostfix;
84 
85 };
86 
87  } // namespace SBNOsc
88 } // namespace ana
89 
90 #endif// __sbnanalysis_ana_SBNOsc_Selection__
void ProcessFileMeta(const FileMeta *meta)
Definition: Selection.cc:124
CRTHistos fCRTCosmicHistos
Definition: Selection.h:61
std::vector< numu::TrackSelector > fTrackSelectors
Definition: Selection.h:72
Histograms fCosmicHistograms
Definition: Selection.h:58
Histograms fHistograms
Definition: Selection.h:57
Histograms * fHistsToFill
Definition: Selection.h:59
CRTHistos fCRTNeutrinoHistos
Definition: Selection.h:62
process_name opflashCryoW ana
Normalize fNormalize
Definition: Selection.h:64
void ProcessEvent(const event::Event *event)
Definition: Selection.cc:130
std::vector< std::string > fTrackSelectorNames
Definition: Selection.h:73
numu::MCType fFileType
Definition: Selection.h:83
The standard subrun data definition.
Definition: SubRun.hh:23
fhicl::ParameterSet fCutConfig
Definition: Selection.h:65
The standard event data definition.
Definition: Event.hh:228
sbnd::CRTGeoAlg * fCRTGeo
Definition: Selection.h:54
std::string fHistogramPostfix
Definition: Selection.h:80
void FileCleanup(TTree *eventTree)
Definition: Selection.h:45
MCType
Definition: MCType.h:5
void FileSetup(TFile *f, TTree *eventTree)
Definition: Selection.cc:88
void ProcessSubRun(const SubRun *subrun)
Definition: Selection.cc:118
void Initialize(fhicl::ParameterSet *config)
Definition: Selection.cc:32
A generic tree-reading event-by-event processor.
numu::RecoEvent * fRecoEvent
Definition: Selection.h:77
std::vector< numu::TrackFunction > fTrackProfileValues
Definition: Selection.h:75
Metadata for each input file.
Definition: FileMeta.hh:16