Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneObj
CalibTreeRecord.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// File: CalibTreeRecord.h
4
// Author: Jason Stock (jason.stock@mines.sdsmt.edu)
5
// This file is a set of classes for writeout of data relative to calibration sources.
6
// The main purpose of this class is to allow easy fast analysis of calibration
7
// simulations.
8
//
9
////////////////////////////////////////////////////////////////////////
10
11
//includes
12
#ifndef DUNE_DUNEOBJ_CALIBTREERECORD_H
13
#define DUNE_DUNEOBJ_CALIBTREERECORD_H
14
#include <vector>
15
#include <TObject.h>
16
#include <iostream>
17
18
namespace
CalibTreeRecord
{
19
// typedef int64_t eve_number_t ;
20
// typedef int64_t particle_number_t ;
21
typedef
Long64_t
eve_number_t
;
22
typedef
Long64_t
particle_number_t
;
23
//class OpHit : public TObject{
24
25
class
HCRec
{
26
/*ClassDef(CalibTreeRecord::HCRec,10);*/
27
public
:
28
int
eve_index
;
29
int
part_index
;
30
int
hit_index
;
31
HCRec
(
int
e
,
int
p
,
int
h
)
32
:eve_index(e),part_index(p),hit_index(h)
33
{}
34
HCRec
()
35
:eve_index(0), part_index(0), hit_index(0)
36
{}
37
};
38
39
class
HitContributor
{
40
/*ClassDef(CalibTreeRecord::HitContributor,10);*/
41
public
:
42
int
index
;
//The internal hit index of the hit this record is describing.
43
std::vector<HCRec>
locations
;
//eve index, part index, hits index (vector position).
44
HitContributor
(
int
i)
45
:index(i), locations()
46
{}
47
HitContributor
()
48
:index(), locations()
49
{}
50
};
51
52
class
PartialPDOpHit
{
53
public
:
54
Double_t
pes
;
55
Double_t
num_photons
;
56
Double_t
time
;
57
Double_t
width
;
58
Double_t
energy
;
59
Double_t
split
;
//fraction of hit energy in this partial.
60
UInt_t
opdet
;
61
Long64_t
index
;
62
//int64_t index;
63
};
64
65
class
PartialOpHit
:
public
PartialPDOpHit
{
66
/*ClassDef(CalibTreeRecord::PartialOpHit,10);*/
67
public
:
68
UInt_t
opchan
;
69
};
70
71
//class Hit : public TObject{
72
class
PartialHit
{
73
/*ClassDef(CalibTreeRecord::PartialHit,10);*/
74
public
:
75
Double_t
charge
;
76
Double_t
num_electrons
;
77
Double_t
energy
;
78
Double_t
time
;
79
Double_t
width
;
80
Double_t
split
;
//fraction of track energy in this hit.
81
UInt_t
wire
;
82
Long64_t
index
;
83
//int64_t index;
84
Bool_t
is_collection_wire
;
85
};
86
87
/* class TrackRecord {
88
bool isEve;
89
Int_t trackId;
90
Double_t x_pos;
91
Double_t y_pos;
92
Double_t z_pos;
93
std::vector<PartialHit> partial_hits;
94
std::vector<PartialOpHit> partial_ophits;
95
}*/
//without useful rescattering information this is not possible.
96
97
//class ParticleRecord :public TObject {
98
class
ParticleRecord
{
99
/*ClassDef(CalibTreeRecord::ParticleRecord,10);*/
100
public
:
101
bool
isEve
;
102
//particle_number_t number;
103
Int_t
trackId
;
104
UInt_t
pdgid
;
105
Double_t
dP
;
106
Double_t
dE
;
107
Double_t
x_pos
;
108
Double_t
y_pos
;
109
Double_t
z_pos
;
110
Double_t
t_pos
;
111
std::vector<PartialHit>
partial_hits
;
112
std::vector<PartialOpHit>
partial_ophits
;
113
};
114
115
class
EveRecord
{
116
/*ClassDef(CalibTreeRecord::EveRecord,10);*/
117
public
:
118
//eve_number_t number;
119
Int_t
trackId
;
120
UInt_t
pdgid
;
121
Double_t
x_pos
;
122
Double_t
y_pos
;
123
Double_t
z_pos
;
124
Double_t
t_pos
;
125
std::vector<ParticleRecord>
particles
;
126
std::string
generator
=
""
;
127
128
};
129
130
//class CalibTreeRecord :public TObject {
131
class
CalibTreeRecord
{
132
/*ClassDef(CalibTreeRecord::CalibTreeRecord,10);*/
133
public
:
134
bool
bunch_hits
;
135
UInt_t
run
;
136
UInt_t
subrun
;
137
UInt_t
event
;
138
std::vector<EveRecord>
eves
;
139
std::vector<HitContributor>
hits
;
140
std::vector<HitContributor>
ophits
;
141
142
void
Clear();
143
void
stdout_dump();
144
};
145
146
147
148
}
149
150
#endif
CalibTreeRecord::PartialPDOpHit::time
Double_t time
Definition:
CalibTreeRecord.h:56
CalibTreeRecord::HCRec::hit_index
int hit_index
Definition:
CalibTreeRecord.h:30
CalibTreeRecord::PartialHit
Definition:
CalibTreeRecord.h:72
CalibTreeRecord::CalibTreeRecord::hits
std::vector< HitContributor > hits
Definition:
CalibTreeRecord.h:139
CalibTreeRecord::PartialOpHit::opchan
UInt_t opchan
Definition:
CalibTreeRecord.h:68
CalibTreeRecord::PartialPDOpHit
Definition:
CalibTreeRecord.h:52
CalibTreeRecord::HCRec
Definition:
CalibTreeRecord.h:25
string
std::string string
Definition:
nybbler.cc:12
CalibTreeRecord::PartialHit::width
Double_t width
Definition:
CalibTreeRecord.h:79
CalibTreeRecord::HitContributor::locations
std::vector< HCRec > locations
Definition:
CalibTreeRecord.h:43
CalibTreeRecord::CalibTreeRecord::run
UInt_t run
Definition:
CalibTreeRecord.h:135
CalibTreeRecord::PartialHit::num_electrons
Double_t num_electrons
Definition:
CalibTreeRecord.h:76
CalibTreeRecord::particle_number_t
Long64_t particle_number_t
Definition:
CalibTreeRecord.h:22
CalibTreeRecord::ParticleRecord::isEve
bool isEve
Definition:
CalibTreeRecord.h:101
CalibTreeRecord::PartialHit::is_collection_wire
Bool_t is_collection_wire
Definition:
CalibTreeRecord.h:84
CalibTreeRecord::EveRecord::pdgid
UInt_t pdgid
Definition:
CalibTreeRecord.h:120
CalibTreeRecord::ParticleRecord::dE
Double_t dE
Definition:
CalibTreeRecord.h:106
CalibTreeRecord::CalibTreeRecord::event
UInt_t event
Definition:
CalibTreeRecord.h:137
CalibTreeRecord::HitContributor::HitContributor
HitContributor()
Definition:
CalibTreeRecord.h:47
CalibTreeRecord::ParticleRecord::t_pos
Double_t t_pos
Definition:
CalibTreeRecord.h:110
CalibTreeRecord::EveRecord::y_pos
Double_t y_pos
Definition:
CalibTreeRecord.h:122
CalibTreeRecord::PartialOpHit
Definition:
CalibTreeRecord.h:65
CalibTreeRecord::EveRecord::trackId
Int_t trackId
Definition:
CalibTreeRecord.h:119
CalibTreeRecord::EveRecord::t_pos
Double_t t_pos
Definition:
CalibTreeRecord.h:124
CalibTreeRecord
Definition:
CalibTreeRecord.cxx:3
reco_momentum_tuples.h
h
Definition:
reco_momentum_tuples.py:66
CalibTreeRecord::PartialPDOpHit::index
Long64_t index
Definition:
CalibTreeRecord.h:61
e
const double e
Definition:
gUpMuFluxGen.cxx:165
CalibTreeRecord::ParticleRecord
Definition:
CalibTreeRecord.h:98
CalibTreeRecord::PartialPDOpHit::energy
Double_t energy
Definition:
CalibTreeRecord.h:58
CalibTreeRecord::HCRec::HCRec
HCRec()
Definition:
CalibTreeRecord.h:34
CalibTreeRecord::EveRecord
Definition:
CalibTreeRecord.h:115
CalibTreeRecord::HCRec::eve_index
int eve_index
Definition:
CalibTreeRecord.h:28
CalibTreeRecord::ParticleRecord::y_pos
Double_t y_pos
Definition:
CalibTreeRecord.h:108
CalibTreeRecord::HCRec::HCRec
HCRec(int e, int p, int h)
Definition:
CalibTreeRecord.h:31
test.p
p
Definition:
test.py:223
CalibTreeRecord::HitContributor::index
int index
Definition:
CalibTreeRecord.h:42
CalibTreeRecord::CalibTreeRecord::bunch_hits
bool bunch_hits
Definition:
CalibTreeRecord.h:134
CalibTreeRecord::CalibTreeRecord::subrun
UInt_t subrun
Definition:
CalibTreeRecord.h:136
CalibTreeRecord::ParticleRecord::x_pos
Double_t x_pos
Definition:
CalibTreeRecord.h:107
CalibTreeRecord::PartialPDOpHit::pes
Double_t pes
Definition:
CalibTreeRecord.h:54
train.generator
generator
Definition:
train.py:468
CalibTreeRecord::PartialHit::energy
Double_t energy
Definition:
CalibTreeRecord.h:77
CalibTreeRecord::PartialHit::wire
UInt_t wire
Definition:
CalibTreeRecord.h:81
CalibTreeRecord::CalibTreeRecord::ophits
std::vector< HitContributor > ophits
Definition:
CalibTreeRecord.h:140
CalibTreeRecord::PartialHit::time
Double_t time
Definition:
CalibTreeRecord.h:78
CalibTreeRecord::PartialHit::index
Long64_t index
Definition:
CalibTreeRecord.h:82
CalibTreeRecord::ParticleRecord::partial_hits
std::vector< PartialHit > partial_hits
Definition:
CalibTreeRecord.h:111
CalibTreeRecord::ParticleRecord::pdgid
UInt_t pdgid
Definition:
CalibTreeRecord.h:104
CalibTreeRecord::PartialPDOpHit::split
Double_t split
Definition:
CalibTreeRecord.h:59
CalibTreeRecord::PartialHit::split
Double_t split
Definition:
CalibTreeRecord.h:80
CalibTreeRecord::PartialPDOpHit::num_photons
Double_t num_photons
Definition:
CalibTreeRecord.h:55
CalibTreeRecord::HCRec::part_index
int part_index
Definition:
CalibTreeRecord.h:29
CalibTreeRecord::ParticleRecord::partial_ophits
std::vector< PartialOpHit > partial_ophits
Definition:
CalibTreeRecord.h:112
CalibTreeRecord::CalibTreeRecord::eves
std::vector< EveRecord > eves
Definition:
CalibTreeRecord.h:138
CalibTreeRecord::EveRecord::z_pos
Double_t z_pos
Definition:
CalibTreeRecord.h:123
CalibTreeRecord::ParticleRecord::z_pos
Double_t z_pos
Definition:
CalibTreeRecord.h:109
CalibTreeRecord::PartialHit::charge
Double_t charge
Definition:
CalibTreeRecord.h:75
CalibTreeRecord::HitContributor::HitContributor
HitContributor(int i)
Definition:
CalibTreeRecord.h:44
CalibTreeRecord::HitContributor
Definition:
CalibTreeRecord.h:39
CalibTreeRecord::ParticleRecord::dP
Double_t dP
Definition:
CalibTreeRecord.h:105
CalibTreeRecord::EveRecord::particles
std::vector< ParticleRecord > particles
Definition:
CalibTreeRecord.h:125
CalibTreeRecord::EveRecord::x_pos
Double_t x_pos
Definition:
CalibTreeRecord.h:121
CalibTreeRecord::eve_number_t
Long64_t eve_number_t
Definition:
CalibTreeRecord.h:21
CalibTreeRecord::PartialPDOpHit::width
Double_t width
Definition:
CalibTreeRecord.h:57
CalibTreeRecord::PartialPDOpHit::opdet
UInt_t opdet
Definition:
CalibTreeRecord.h:60
CalibTreeRecord::ParticleRecord::trackId
Int_t trackId
Definition:
CalibTreeRecord.h:103
Generated by
1.8.11