Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
sbnana
sbnanalysis
ana
SBNOscReco
PostProcess
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"
9
#include "
core/PostProcessorBase.hh
"
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
30
class
Flatten
:
public
core::PostProcessorBase
{
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
:
43
Cuts
fCuts
;
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__
PostProcessorBase.hh
Event.hh
ana::SBNOsc::Flatten::Finalize
void Finalize()
Definition:
Flatten.cc:198
ana::SBNOsc::Flatten::ProcessSubRun
void ProcessSubRun(const SubRun *subrun)
Definition:
Flatten.cc:188
ana::SBNOsc::Flatten::ProcessEvent
void ProcessEvent(const event::Event *event)
Definition:
Flatten.cc:119
ana::SBNOsc::Flatten::fInteractions
std::vector< numu::flat::FlatInteraction > fInteractions
Definition:
Flatten.h:46
ana
process_name opflashCryoW ana
Definition:
stage0_icarus_light_only.fcl:60
ana::SBNOsc::Flatten::fCuts
Cuts fCuts
Definition:
Flatten.h:43
ana::SBNOsc::Flatten::fOutputFiles
std::vector< TFile * > fOutputFiles
Definition:
Flatten.h:44
ana::SBNOsc::Flatten::fRecoEvents
std::vector< numu::RecoEvent * > fRecoEvents
Definition:
Flatten.h:48
Cuts.h
ana::SBNOsc::Flatten::fMCTypes
std::vector< numu::MCType > fMCTypes
Definition:
Flatten.h:47
ana::SBNOsc::Cuts
Definition:
ysis/ana/SBNOscReco/PostProcess/Cuts.h:18
SubRun
The standard subrun data definition.
Definition:
SubRun.hh:23
ana::SBNOsc::Flatten::ProcessFileMeta
void ProcessFileMeta(const FileMeta *meta)
Definition:
Flatten.cc:193
event::Event
The standard event data definition.
Definition:
Event.hh:228
ana::SBNOsc::Flatten::Initialize
void Initialize(fhicl::ParameterSet *config)
Definition:
Flatten.cc:82
ana::SBNOsc::Flatten::fNtuples
std::vector< TNtuple * > fNtuples
Definition:
Flatten.h:45
ana::SBNOsc::Flatten::InitializeThread
void InitializeThread()
Definition:
Flatten.cc:102
core::PostProcessorBase
A generic tree-reading event-by-event processor.
Definition:
PostProcessorBase.hh:43
ana::SBNOsc::Flatten
Definition:
Flatten.h:30
FileMeta
Metadata for each input file.
Definition:
FileMeta.hh:16
ana::SBNOsc::Flatten::FileSetup
void FileSetup(TFile *f, TTree *eventTree)
Definition:
Flatten.cc:107
Generated by
1.8.5