All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Flatten.h
Go to the documentation of this file.
1 #ifndef __sbnanalysis_ana_SBNOsc_Flatten__
2 #define __sbnanalysis_ana_SBNOsc_Flatten__
3 
4 /**
5  * \file Flatten.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 <TNtuple.h>
20 
21 #include "Cuts.h"
22 
23 #include "core/Event.hh"
24 #include "../Data/FlatInteraction.h"
25 #include "../Data/RecoEvent.h"
26 
27 namespace ana {
28  namespace SBNOsc {
29 
31 public:
32  // implementing PostProcessor
33  //void FileCleanup(TTree *eventTree) {}
34  void FileSetup(TFile *f, TTree *eventTree);
35  void Initialize(fhicl::ParameterSet *config);
36  void ProcessEvent(const event::Event *event);
37  void InitializeThread();
38  void ProcessSubRun(const SubRun *subrun);
39  void ProcessFileMeta(const FileMeta *meta);
40  void Finalize();
41 
42 private:
44  std::vector<TFile *> fOutputFiles;
45  std::vector<TNtuple *> fNtuples;
46  std::vector<numu::flat::FlatInteraction> fInteractions;
47  std::vector<numu::MCType> fMCTypes;
48  std::vector<numu::RecoEvent *> fRecoEvents;
49 };
50 
51  } // namespace SBNOsc
52 } // namespace ana
53 
54 #endif// __sbnanalysis_ana_SBNOsc_Flatten__
void ProcessSubRun(const SubRun *subrun)
Definition: Flatten.cc:188
void ProcessEvent(const event::Event *event)
Definition: Flatten.cc:119
std::vector< numu::flat::FlatInteraction > fInteractions
Definition: Flatten.h:46
process_name opflashCryoW ana
std::vector< TFile * > fOutputFiles
Definition: Flatten.h:44
std::vector< numu::RecoEvent * > fRecoEvents
Definition: Flatten.h:48
std::vector< numu::MCType > fMCTypes
Definition: Flatten.h:47
The standard subrun data definition.
Definition: SubRun.hh:23
void ProcessFileMeta(const FileMeta *meta)
Definition: Flatten.cc:193
The standard event data definition.
Definition: Event.hh:228
void Initialize(fhicl::ParameterSet *config)
Definition: Flatten.cc:82
std::vector< TNtuple * > fNtuples
Definition: Flatten.h:45
void InitializeThread()
Definition: Flatten.cc:102
A generic tree-reading event-by-event processor.
Metadata for each input file.
Definition: FileMeta.hh:16
void FileSetup(TFile *f, TTree *eventTree)
Definition: Flatten.cc:107