|
Jpp
16.0.0-rc.2
the software that should make you happy
|
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. More...
#include <Trk.hh>
Public Member Functions | |
| Trk () | |
| Default 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 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, see km3net-dataformat/definitions/trkmembers.csv for values. 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... | |
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
|
inline |
Default constructor.
Definition at line 39 of file Trk.hh.
|
inline |
|
inline |
|
inline |
Get the name of the MC particle type.
Definition at line 64 of file Trk.hh.
|
inline |
Check if this is a primary particle.
Definition at line 76 of file Trk.hh.
|
inline |
Test whether given particle is a final state inside the detector.
| track | track |
Definition at line 87 of file Trk.hh.
|
inline |
Check if this is a netrino.
Note that its is checked if the PDG type is a nu-e, nu-mu or nu-tau.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check if this is an orphan (i.e.
no mother).
Definition at line 155 of file Trk.hh.
|
inline |
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.
|
inline |
|
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.
| double Trk::lik |
| int Trk::rec_type |
| std::vector<int> Trk::rec_stages |
| int Trk::status |
| std::vector<double> Trk::fitinf |
place to store additional fit info, for jgandalf, see JFitParameters.hh
| std::vector<int> Trk::hit_ids |
| std::vector<double> Trk::error_matrix |
|
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.
1.8.5