Jpp
|
Auxiliary class to set-up Trk. More...
#include <JTrk_t.hh>
Public Member Functions | |
JTrk_t (const int id, const int type, const int origin, 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... | |
double | distance_to (const Trk &t) const |
Get distance of closes approach to another track. More... | |
double | distance_to (const Vec &p=Vec()) const |
Get distance to given position. 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 (i.e. More... | |
bool | is_neutrino () const |
Check if this is a netrino. More... | |
bool | is_lepton () const |
Check if this is a charged lepton. More... | |
bool | is_muon () const |
Check if this is a muon. More... | |
bool | is_orphan () const |
Check if this is an orphan. 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... | |
const char * | __str__ () const |
Get class name. More... | |
Public Attributes | |
int | id |
track identifier More... | |
Vec | pos |
postion of the track at time t [m] 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 |
identifyer for the overall fitting algorithm/chain/strategy More... | |
std::vector< int > | rec_stages |
list of identifyers of succesfull fitting stages resulting in this track More... | |
int | status |
MC status code. More... | |
int | mother_id |
MC id of the parent particle. More... | |
std::vector< double > | fitinf |
place to store additional fit info, for jgandalf, see JFitParameters.hh 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... | |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get distance of closes approach to another track.
t | track |
Definition at line 63 of file Trk.hh.
|
inlineinherited |
Get the name of the MC particle type.
Definition at line 89 of file Trk.hh.
|
inlineinherited |
|
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 |
Check if this is a charged lepton.
Note that its is checked if the PDG type is a (anti-)electron, (anti-)muon or (anti-)tua.
|
inlineinherited |
|
inlineinherited |
|
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 159 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 |
|
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.
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
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 177 of file AAObject.hh.