LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PPFXFluxReader.h
Go to the documentation of this file.
1
#include "
art/Framework/Core/FileBlock.h
"
2
#include "
art/Framework/Core/ProductRegistryHelper.h
"
3
#include "
art/Framework/IO/Sources/SourceHelper.h
"
4
#include "
art/Framework/Principal/fwd.h
"
5
#include "
fhiclcpp/ParameterSet.h
"
6
7
#include <fstream>
8
#include <map>
9
#include <vector>
10
11
#include "
FluxInterface.h
"
12
13
class
TH1D;
14
class
TTree;
15
class
TFile;
16
17
namespace
fluxr
{
18
class
PPFXFluxReader
{
19
public
:
20
// Required constructor
21
PPFXFluxReader
(
fhicl::ParameterSet
const
& pset,
22
art::ProductRegistryHelper
& helper,
23
art::SourceHelper
const
& pm);
24
25
// Required by FileReaderSource:
26
void
closeCurrentFile
();
27
void
readFile
(std::string
const
& name,
art::FileBlock
*&
fb
);
28
bool
readNext
(
art::RunPrincipal
*
const
& inR,
29
art::SubRunPrincipal
*
const
& inSR,
30
art::RunPrincipal
*& outR,
31
art::SubRunPrincipal
*& outSR,
32
art::EventPrincipal
*& outE);
33
34
private
:
35
art::SourceHelper
const
&
fSourceHelper
;
36
art::SubRunID
fSubRunID
;
37
38
uint32_t
fEventCounter
;
39
uint32_t
fEntry
;
40
int
fMaxEvents
;
//fhicl parameter. Maximum number of events.
41
uint32_t
fSkipEvents
;
// fhicl parameter. Number of events to skip.
42
std::string
fInputType
;
//fhicl parameter. Maximum number of events.
43
float
fPOT
;
44
45
FluxInterface
*
fFluxDriver
;
46
TFile*
fFluxInputFile
;
47
//int fNuPdgCode[4];
48
TH1D*
fHFlux
[4];
49
TH1D*
fHFluxParent
[4][4];
50
TH1D*
fHFluxSec
[4][5];
51
52
fhicl::ParameterSet
fConfigPS
;
53
54
art::TypeLabel
fTLmctruth
;
55
art::TypeLabel
fTLmcflux
;
56
art::TypeLabel
fTLdk2nu
;
57
art::TypeLabel
fTLnuchoice
;
58
};
// PPFXFluxReader
59
}
fluxr::PPFXFluxReader::fConfigPS
fhicl::ParameterSet fConfigPS
Definition:
PPFXFluxReader.h:52
fluxr
Definition:
DK2NuInterface.cxx:15
fluxr::PPFXFluxReader::fTLdk2nu
art::TypeLabel fTLdk2nu
Definition:
PPFXFluxReader.h:56
art::RunPrincipal
Definition:
RunPrincipal.h:16
fluxr::PPFXFluxReader::fEventCounter
uint32_t fEventCounter
Definition:
PPFXFluxReader.h:38
fluxr::PPFXFluxReader::fTLmcflux
art::TypeLabel fTLmcflux
Definition:
PPFXFluxReader.h:55
art::SubRunID
Definition:
SubRunID.h:19
fluxr::PPFXFluxReader::fHFluxParent
TH1D * fHFluxParent[4][4]
Definition:
PPFXFluxReader.h:49
fwd.h
art::ProductRegistryHelper
Definition:
ProductRegistryHelper.h:39
fluxr::PPFXFluxReader::readNext
bool readNext(art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)
Definition:
PPFXFluxReader.cxx:167
ParameterSet.h
fluxr::FluxInterface
Definition:
FluxInterface.h:9
fluxr::PPFXFluxReader::fFluxDriver
FluxInterface * fFluxDriver
Definition:
PPFXFluxReader.h:45
fluxr::PPFXFluxReader::fMaxEvents
int fMaxEvents
Definition:
PPFXFluxReader.h:40
fluxr::PPFXFluxReader::fHFlux
TH1D * fHFlux[4]
Definition:
PPFXFluxReader.h:48
fluxr::PPFXFluxReader::fPOT
float fPOT
Definition:
PPFXFluxReader.h:43
art::SubRunPrincipal
Definition:
SubRunPrincipal.h:16
fluxr::PPFXFluxReader::PPFXFluxReader
PPFXFluxReader(fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm)
Definition:
PPFXFluxReader.cxx:39
fluxr::PPFXFluxReader::fInputType
std::string fInputType
Definition:
PPFXFluxReader.h:42
fluxr::PPFXFluxReader::fFluxInputFile
TFile * fFluxInputFile
Definition:
PPFXFluxReader.h:46
fluxr::PPFXFluxReader
Definition:
PPFXFluxReader.h:18
fluxr::PPFXFluxReader::closeCurrentFile
void closeCurrentFile()
Definition:
PPFXFluxReader.cxx:127
fb
TFile fb("Li6.root")
fluxr::PPFXFluxReader::fSourceHelper
art::SourceHelper const & fSourceHelper
Definition:
PPFXFluxReader.h:35
SourceHelper.h
fluxr::PPFXFluxReader::fTLnuchoice
art::TypeLabel fTLnuchoice
Definition:
PPFXFluxReader.h:57
fluxr::PPFXFluxReader::fHFluxSec
TH1D * fHFluxSec[4][5]
Definition:
PPFXFluxReader.h:50
fluxr::PPFXFluxReader::fSkipEvents
uint32_t fSkipEvents
Definition:
PPFXFluxReader.h:41
fluxr::PPFXFluxReader::fSubRunID
art::SubRunID fSubRunID
Definition:
PPFXFluxReader.h:36
art::EventPrincipal
Definition:
EventPrincipal.h:17
fluxr::PPFXFluxReader::fTLmctruth
art::TypeLabel fTLmctruth
Definition:
PPFXFluxReader.h:54
FluxInterface.h
fluxr::PPFXFluxReader::fEntry
uint32_t fEntry
Definition:
PPFXFluxReader.h:39
art::FileBlock
Definition:
FileBlock.h:17
ProductRegistryHelper.h
art::SourceHelper
Definition:
SourceHelper.h:30
fluxr::PPFXFluxReader::readFile
void readFile(std::string const &name, art::FileBlock *&fb)
Definition:
PPFXFluxReader.cxx:137
FileBlock.h
art::TypeLabel
Definition:
TypeLabel.h:22
fhicl::ParameterSet
Definition:
ParameterSet.h:36
larsim
v09_43_00
source
larsim
PPFXFluxReader
PPFXFluxReader.h
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11