LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
LArRawInputDriverJP250L.h
Go to the documentation of this file.
1
8
#include "
fhiclcpp/ParameterSet.h
"
9
#include "
art/Framework/Core/ProductRegistryHelper.h
"
10
#include "
art/Framework/IO/Sources/SourceHelper.h
"
11
#include "
art/Framework/Core/FileBlock.h
"
12
#include "
art/Framework/Principal/RunPrincipal.h
"
13
#include "
art/Framework/Principal/SubRunPrincipal.h
"
14
#include "
art/Framework/Principal/EventPrincipal.h
"
15
#include "
canvas/Persistency/Provenance/SubRunID.h
"
16
17
#include <fstream>
18
#include <string>
19
#include <vector>
20
21
#include "TFile.h"
22
#include "TTree.h"
23
25
namespace
lris
{
26
class
LArRawInputDriverJP250L;
27
}
28
29
class
lris::LArRawInputDriverJP250L
{
32
public
:
33
// Required constructor
34
LArRawInputDriverJP250L
(
fhicl::ParameterSet
const
&pset,
35
art::ProductRegistryHelper
&helper,
36
art::SourceHelper
const
&pm);
37
38
// Required by FileReaderSource:
39
void
closeCurrentFile
();
40
void
readFile
(std::string
const
&name,
41
art::FileBlock
* &
fb
);
42
bool
readNext
(
art::RunPrincipal
*
const
&inR,
43
art::SubRunPrincipal
*
const
&inSR,
44
art::RunPrincipal
* &outR,
45
art::SubRunPrincipal
* &outSR,
46
art::EventPrincipal
* &outE);
47
48
private
:
49
50
// --- data members:
51
art::SourceHelper
const
&
principalMaker_
;
52
53
// added by E.Iwai
54
TTree*
m_eventTree
;
55
unsigned
int
m_nEvent
;
56
unsigned
int
m_current
;
57
unsigned
short
m_runID
;
58
unsigned
int
m_unixtime
;
59
unsigned
short
m_nChannels
;
60
unsigned
short
m_nSamples
;
61
unsigned
short
*
m_data
;
62
63
};
// LArRawInputDriverJP250L
lris::LArRawInputDriverJP250L::m_unixtime
unsigned int m_unixtime
unix timestamp of the start of the run
Definition:
LArRawInputDriverJP250L.h:58
SubRunID.h
art::RunPrincipal
Definition:
RunPrincipal.h:28
lris::LArRawInputDriverJP250L::m_nEvent
unsigned int m_nEvent
number of triggers in the TTree
Definition:
LArRawInputDriverJP250L.h:55
lris::LArRawInputDriverJP250L::closeCurrentFile
void closeCurrentFile()
Definition:
LArRawInputDriverJP250L.cxx:42
lris::LArRawInputDriverJP250L::readFile
void readFile(std::string const &name, art::FileBlock *&fb)
Definition:
LArRawInputDriverJP250L.cxx:48
lris::LArRawInputDriverJP250L::m_runID
unsigned short m_runID
run ID, has to start from 1
Definition:
LArRawInputDriverJP250L.h:57
RunPrincipal.h
lris::LArRawInputDriverJP250L::LArRawInputDriverJP250L
LArRawInputDriverJP250L(fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm)
Definition:
LArRawInputDriverJP250L.cxx:29
art::ProductRegistryHelper
Definition:
ProductRegistryHelper.h:81
lris::LArRawInputDriverJP250L::m_eventTree
TTree * m_eventTree
TTree containing information from each trigger.
Definition:
LArRawInputDriverJP250L.h:54
ParameterSet.h
EventPrincipal.h
fb
TFile fb("Li6.root")
art::SubRunPrincipal
Definition:
SubRunPrincipal.h:28
lris::LArRawInputDriverJP250L::m_data
unsigned short * m_data
the ADC of each time sample for each channel
Definition:
LArRawInputDriverJP250L.h:61
lris::LArRawInputDriverJP250L
Definition:
LArRawInputDriverJP250L.h:29
lris::LArRawInputDriverJP250L::readNext
bool readNext(art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)
Definition:
LArRawInputDriverJP250L.cxx:83
SourceHelper.h
SubRunPrincipal.h
lris::LArRawInputDriverJP250L::m_nChannels
unsigned short m_nChannels
number of channels in the detector
Definition:
LArRawInputDriverJP250L.h:59
lris::LArRawInputDriverJP250L::m_nSamples
unsigned short m_nSamples
number of time samples per channel
Definition:
LArRawInputDriverJP250L.h:60
lris
Conversion of binary data to root files.
Definition:
LArRawInputDriver.cxx:209
art::EventPrincipal
Definition:
EventPrincipal.h:30
lris::LArRawInputDriverJP250L::principalMaker_
art::SourceHelper const & principalMaker_
Definition:
LArRawInputDriverJP250L.h:51
art::FileBlock
Definition:
FileBlock.h:17
lris::LArRawInputDriverJP250L::m_current
unsigned int m_current
current entry in the TTree
Definition:
LArRawInputDriverJP250L.h:56
ProductRegistryHelper.h
art::SourceHelper
Definition:
SourceHelper.h:37
FileBlock.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
lardata
v06_47_03
source
lardata
RawData
utils
LArRawInputDriverJP250L.h
Generated on Thu Jul 26 2018 13:09:54 for LArSoft by
1.8.11