Jpp
master_rocky
the software that should make you happy
|
Auxiliary class to set-up Trk. More...
#include <JSirene.hh>
Public Member Functions | |
JTrk_t (const int id, const int type, const int mother_id, const Vec &pos, const Vec &dir, const double t, const double E) | |
Constructor. More... | |
void | read (const Trk &t) |
Read track (useful in python). More... | |
void | write (Trk &t) const |
Write track (useful in python). More... | |
std::string | name () const |
Get the name of the MC particle type. More... | |
bool | is_primary () const |
Check if this is a primary particle. More... | |
bool | is_finalstate () const |
Test whether given particle is a final state inside the detector. More... | |
bool | is_neutrino () const |
Check if this is a netrino. More... | |
bool | is_e () const |
Check if this is an electron or positron. More... | |
bool | is_muon () const |
Check if this is a muon. More... | |
bool | is_tau () const |
Check if this is a tau. More... | |
bool | is_lepton () const |
Check if this is a charged lepton. More... | |
bool | is_orphan () const |
Check if this is an orphan (i.e. More... | |
std::vector< Trk * > | get_daughters (std::vector< Trk > &mctrks) |
Get list of of pointers to tracks, all of which have their mother identifier set to identifier of this track. More... | |
void | print (std::ostream &out=std::cout) const |
Print track. More... | |
int | idx (const std::string &key) const |
Get index in user data of the item with given key. More... | |
bool | haveusr (const std::string &key) const |
Check availability of user data of the item with given key. More... | |
int | idxusr_checked (const std::string &key) const |
Get index in user data of the item with given key. More... | |
double | getusr (const std::string &key) const |
Get user data item with given key. More... | |
void | setusr (const std::string &key, double value) |
Set user data item with given key. More... | |
bool | delusr (const std::string &key) |
Remove (first) user data item with given key. More... | |
void | clearusr () |
Clear user data. More... | |
void | printusr (std::ostream &out=std::cout) |
Print user data (i.e. More... | |
Public Attributes | |
int | id |
track identifier More... | |
Vec | pos |
postion [m] of the track at time t More... | |
Vec | dir |
track direction More... | |
double | t |
track time [ns] (when the particle is at pos ) More... | |
double | E |
Energy [GeV] (either MC truth or reconstructed) More... | |
double | len |
length, if applicable [m] More... | |
double | lik |
likelihood or lambda value (for aafit, lambda) More... | |
int | type |
MC: particle type in PDG encoding. More... | |
int | rec_type |
identifier of the fitting algorithm/chain/strategy, see km3net-dataformat/definitions/reconstruction.csv More... | |
std::vector< int > | rec_stages |
list of identifyers of succesfull fitting stages resulting in this track More... | |
int | status |
MC status code, see km3net-dataformat/definitions/trkmembers.csv for values. More... | |
int | mother_id |
MC id of the parent particle. More... | |
int | counter |
used by CORSIKA7 MC generation to store interaction counters, see CORSIKA Userguide More... | |
std::vector< double > | fitinf |
place to store additional fit info, see km3net-dataformat/definitions/fitparameters.csv More... | |
std::vector< int > | hit_ids |
list of associated hit-ids (corresponds to Hit::id). More... | |
std::vector< double > | error_matrix |
(NxN) error covariance matrix for fit parameters (stored as linear vector) More... | |
std::string | comment |
use as you like More... | |
std::vector< double > | usr |
user data More... | |
std::vector< std::string > | usr_names |
user keys More... | |
TObject * | any |
Pointer to "any" user data. More... | |
Auxiliary class to set-up Trk.
Definition at line 188 of file JSirene.hh.
|
inline |
Constructor.
id | identifier |
type | type |
mother_id | mother identifier |
pos | position |
dir | direction |
t | time [ns] |
E | energy [GeV] |
Definition at line 202 of file JSirene.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get the name of the MC particle type.
Definition at line 65 of file Trk.hh.
|
inlineinherited |
Check if this is a primary particle.
Definition at line 77 of file Trk.hh.
|
inlineinherited |
Test whether given particle is a final state inside the detector.
Definition at line 87 of file Trk.hh.
|
inlineinherited |
Check if this is a netrino.
Note that its is checked if the PDG type is a nu-e, nu-mu or nu-tau.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Check if this is an orphan (i.e.
no mother).
Definition at line 155 of file Trk.hh.
|
inlineinherited |
Get list of of pointers to tracks, all of which have their mother identifier set to identifier of this track.
mctrks | list of input tracks |
Definition at line 166 of file Trk.hh.
|
inlineinherited |
|
inlineinherited |
Get index in user data of the item with given key.
key | key |
Definition at line 29 of file AAObject.hh.
|
inlineinherited |
Check availability of user data of the item with given key.
key | key |
Definition at line 42 of file AAObject.hh.
|
inlineinherited |
Get index in user data of the item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 54 of file AAObject.hh.
|
inlineinherited |
Get user data item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 72 of file AAObject.hh.
|
inlineinherited |
Set user data item with given key.
key | key |
value | value |
Definition at line 95 of file AAObject.hh.
|
inlineinherited |
Remove (first) user data item with given key.
key | key |
Definition at line 126 of file AAObject.hh.
|
inlineinherited |
Clear user data.
Definition at line 139 of file AAObject.hh.
|
inlineinherited |
Print user data (i.e.
list of all pairs of keys and values).
out | output stream |
Definition at line 150 of file AAObject.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
used by CORSIKA7 MC generation to store interaction counters, see CORSIKA Userguide
|
inherited |
|
inherited |
|
inherited |
|
inherited |
user data
Definition at line 20 of file AAObject.hh.
|
inherited |
user keys
Definition at line 21 of file AAObject.hh.
|
inherited |
Pointer to "any" user data.
Definition at line 171 of file AAObject.hh.