Go to the source code of this file.
◆ randomize() [1/7]
void randomize |
( |
Vec * |
p | ) |
|
|
inline |
Randomize 3D vector.
- Parameters
-
Definition at line 30 of file JAAnetTestkit.hh.
32 p->
x = getRandom<double>();
33 p->
y = getRandom<double>();
34 p->
z = getRandom<double>();
◆ randomize() [2/7]
Randomize position.
- Parameters
-
Definition at line 49 of file JAAnetTestkit.hh.
51 p->
x = getRandom<double>(-1.0e4, +1.0e4, 1.0);
52 p->
y = getRandom<double>(-1.0e4, +1.0e4, 1.0);
53 p->
z = getRandom<double>(-1.0e4, +1.0e4, 1.0);
◆ randomize() [3/7]
Randomize direction.
- Parameters
-
Definition at line 68 of file JAAnetTestkit.hh.
70 p->
x = getRandom<double>(-1.0, +1.0, 1.0e-3);
71 p->
y = getRandom<double>(-1.0, +1.0, 1.0e-3);
72 p->
z = getRandom<double>(-1.0, +1.0, 1.0e-3);
◆ randomize() [4/7]
void randomize |
( |
Hit * |
p | ) |
|
|
inline |
Randomize hit.
- Parameters
-
Definition at line 81 of file JAAnetTestkit.hh.
83 p->
id = getRandom<int>(0, 1000);
85 p->
dom_id = getRandom<int>(0, 1000);
86 p->
channel_id = getRandom<unsigned int>(0, 31);
87 p->
tdc = getRandom<unsigned int>();
88 p->
tot = getRandom<unsigned int>(0, 256);
89 p->
trig = getRandom<int>(0, 1000);
91 p->
pmt_id = getRandom<int>(0, 1000);
92 p->
pure_t = getRandom<double>(0.0, 100.0e6, 0.1);
93 p->
pure_a = getRandom<double>(0.0, 100.0e0, 0.1);
95 p->
pos = getRandom<pos_type>();
96 p->
dir = getRandom<dir_type>();
98 p->
type = getRandom<int>(0, 1000);
99 p->
origin = getRandom<int>(0, 1000);
◆ randomize() [5/7]
Randomize PDG particle type.
- Parameters
-
Definition at line 119 of file JAAnetTestkit.hh.
127 const JParticle& particle = pdb[getRandom<int>(0, pdb.size())];
◆ randomize() [6/7]
void randomize |
( |
Trk * |
p | ) |
|
|
inline |
Randomize track.
- Parameters
-
Definition at line 144 of file JAAnetTestkit.hh.
146 p->
id = getRandom<int>(0, 1000);
147 p->
pos = getRandom<pos_type>();
148 p->
dir = getRandom<dir_type>();
149 p->
t = getRandom<double>(0.0, 1.0e6, 1.0);
150 p->
E = getRandom<double>(1.0, 1.0e6, 1.0);
152 p->
len = getRandom<double>();
153 p->
lik = getRandom<double>();
155 p->
type = getRandom<pdg_type>();
◆ randomize() [7/7]
void randomize |
( |
Evt * |
p | ) |
|
|
inline |
Randomize event.
- Parameters
-
Definition at line 166 of file JAAnetTestkit.hh.
171 p->
id = getRandom<int>(0, 1000);
172 p->
det_id = getRandom<int>(0, 1000);
174 p->
mc_id = getRandom<int>(0, 1000);
176 p->
run_id = getRandom<int>(0, 1000);
183 for (
int i = getRandom<int>(1, 1000); i != 0; --i) {
184 p->
mc_hits.push_back(getRandom<Hit>());
187 for (
int i = getRandom<int>(1, 100); i != 0; --i) {
188 p->
mc_trks.push_back(getRandom<Trk>());
193 for (
int i = getRandom<int>(1, 1000); i != 0; --i) {
194 p->
hits.push_back(getRandom<Hit>());
197 for (
int i = getRandom<int>(1, 100); i != 0; --i) {
198 p->
trks.push_back(getRandom<Trk>());
◆ operator==() [1/3]
bool operator== |
( |
const Hit & |
first, |
|
|
const Hit & |
second |
|
) |
| |
|
inline |
Equal operator hit.
- Parameters
-
first | first hit |
second | second hit |
- Returns
- true if hits are equal; else false
Definition at line 211 of file JAAnetTestkit.hh.
213 return (first.
id == second.
id &&
215 first.
tdc == second.
tdc &&
216 first.
tot == second.
tot &&
219 first.
t == second.
t &&
220 first.
a == second.
a &&
221 first.
pos == second.
pos &&
222 first.
dir == second.
dir &&
◆ operator==() [2/3]
bool operator== |
( |
const Trk & |
first, |
|
|
const Trk & |
second |
|
) |
| |
|
inline |
Equal operator track.
- Parameters
-
first | first track |
second | second track |
- Returns
- true if tracks are equal; else false
Definition at line 235 of file JAAnetTestkit.hh.
237 return (first.
id == second.
id &&
238 first.
pos == second.
pos &&
239 first.
dir == second.
dir &&
240 first.
t == second.
t &&
241 first.
E == second.
E &&
242 first.
len == second.
len &&
243 first.
lik == second.
lik &&
◆ operator==() [3/3]
bool operator== |
( |
const Evt & |
first, |
|
|
const Evt & |
second |
|
) |
| |
|
inline |
Equal operator event.
- Parameters
-
first | first event |
second | second event |
- Returns
- true if events are equal; else false
Definition at line 260 of file JAAnetTestkit.hh.
262 return (first.
id == second.
id &&
◆ use_root
std::vector< Hit > hits
list of hits
double pure_t
photon time before pmt simultion (MC only)
unsigned int tdc
hit tdc (=time in ns)
int origin
track id of the track that created this hit
std::vector< Trk > mc_trks
MC: list of MC truth tracks
int mc_run_id
MC run identifier.
static bool use_root
Global file format parameter.
int rec_type
identifyer for the overall fitting algorithm/chain/strategy
static const JPDB & getInstance()
Get particle data book.
int pmt_id
global PMT identifier as found in evt files
int run_id
DAQ run identifier.
double E
Energy (either MC truth or reconstructed)
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::string comment
use as you like
double t
track time (when the particle is at pos )
int mc_id
identifier of the MC event (as found in ascii or antcc file).
double a
hit amplitude (in p.e.)
double len
length, if applicable
double t
hit time (from calibration or MC truth)
unsigned int tot
tot value as stored in raw data (int for pyroot)
std::vector< int > hit_ids
list of associated hit-ids (corresponds to Hit::id).
int dom_id
module identifier from the data (unique in the detector).
Vec dir
hit direction; i.e. direction of the PMT
double pure_a
amptitude before pmt simution (MC only)
int trig
non-zero if the hit is a trigger hit.
int geant
GEANT code of particle.
int type
MC: particle type in PDG encoding.
Vec pos
postion of the track at time t
Extensions to AAnet data format.
Auxiliary class to handle particle name, codes and mass.
std::vector< double > fitinf
place to store additional fit info, for jgandalf, see JFitParameters.hh
int pdg
PDG code of particle.
int id
offline event identifier
std::vector< int > rec_stages
list of identifyers of succesfull fitting stages resulting in this track
int frame_index
from the raw data
double lik
likelihood or lambda value (for aafit, lambda)
ULong64_t trigger_mask
trigger mask from raw data (i.e. the trigger bits)
std::vector< Trk > trks
list of reconstructed tracks (can be several because of prefits,showers, etc).
std::vector< Hit > mc_hits
MC: list of MC truth hits.
int det_id
detector identifier from DAQ
std::vector< double > error_matrix
(5x5) error covariance matrix (stored as linear vector)
unsigned int channel_id
PMT channel id {0,1, .., 31} local to moduke.
int type
particle type or parametrisation used for hit (mc only)
ULong64_t trigger_counter
trigger counter