#include "Event/Track.h"
Go to the source code of this file.
Namespaces | |
namespace | str |
Defines | |
#define | TrackStreamer_H 1 |
Functions | |
std::ostream & | track (const Track &track, std::ostream &os=std::cout) |
write track data into the ostream | |
std::ostream & | trackHeader (const Track &track, std::ostream &os=std::cout) |
write track header (chi2 and physics state) | |
std::ostream & | trackFields (const Track &track, std::ostream &os=std::cout) |
write track fiels (type and flags) into the ostream | |
std::ostream & | states (const std::vector< State * > &states, std::ostream &os=std::cout) |
write track states into the ostream | |
std::ostream & | state (const State &state, std::ostream &os=std::cout) |
write state data into the ostream | |
std::ostream & | stateFields (const State &state, std::ostream &os=std::cout) |
write state fiels (type and locations) into the ostream | |
std::ostream & | lhcbIDs (const std::vector< LHCbID > &ids, std::ostream &os=std::cout) |
write the list of LHCbIDs | |
std::ostream & | lhcbID (const LHCbID &id, std::ostream &os=std::cout) |
write a LHCbID | |
std::ostream & | operator<< (std::ostream &os, const Track &track) |
std::ostream & | operator<< (std::ostream &os, const State &state) |
|
Definition at line 2 of file TrackStreamer.h. |
|
write a LHCbID
Definition at line 53 of file TrackStreamer.cpp. Referenced by str::lhcbIDs(). 00053 { 00054 os << " ID detector " << id.detectorType() 00055 << " channel " << id.channelID() 00056 << " size " << (int) id.spareBits(); 00057 os << std::endl; 00058 return os; 00059 }
|
|
write the list of LHCbIDs
Definition at line 46 of file TrackStreamer.cpp. References str::lhcbID(). Referenced by str::track(). 00046 { 00047 for (std::vector<LHCbID>::const_iterator it = ids.begin(); 00048 it != ids.end(); it++) 00049 str::lhcbID(*it,os); os << std::endl; 00050 return os; 00051 }
|
|
Definition at line 42 of file TrackStreamer.h. References str::state(). 00042 { 00043 return str::state(state,os); 00044 }
|
|
Definition at line 38 of file TrackStreamer.h. References str::track(). 00038 { 00039 return str::track(track,os); 00040 }
|
|
write state data into the ostream
Definition at line 37 of file TrackStreamer.cpp. References str::state(), and str::stateFields(). Referenced by operator<<(), str::state(), str::stateFields(), str::states(), and str::trackHeader(). 00037 { 00038 os << " flags \t" << state.flags() << std::endl; 00039 str::stateFields(state,os); os << std::endl; 00040 os << " z \t" << state.z() << std::endl; 00041 os << " state \t" << state.state(); 00042 // os << " cov " << state.covariance() << std::endl; 00043 return os; 00044 }
|
|
write state fiels (type and locations) into the ostream
Definition at line 73 of file TrackStreamer.cpp. References str::state(). Referenced by str::state(). 00073 { 00074 00075 if (state.checkType(State::HasMomentum)) os <<"T:HasMomentum, "; 00076 if (state.checkType(State::StraightLine)) os <<"T:StraightLine, "; 00077 00078 if (state.checkLocation(State::Unknown)) os <<"L:Unknown, "; 00079 if (state.checkLocation(State::ClosestToBeam)) 00080 os <<"L:ClosestToBeam, "; 00081 if (state.checkLocation(State::FirstMeasurement)) 00082 os <<"L:FirstMeasurement, "; 00083 if (state.checkLocation(State::EndVelo)) os <<"L:EndVelo, "; 00084 if (state.checkLocation(State::AtTT)) os <<"L:AtTT, "; 00085 if (state.checkLocation(State::AtT)) os <<"L:AtT, "; 00086 if (state.checkLocation(State::BegRich1)) os <<"L:BegRich1, "; 00087 if (state.checkLocation(State::EndRich1)) os <<"L:EndRich1, "; 00088 if (state.checkLocation(State::BegRich2)) os <<"L:BegRich2, "; 00089 if (state.checkLocation(State::EndRich2)) os <<"L:EndRich2, "; 00090 if (state.checkLocation(State::Calo)) os <<"L:Calo, "; 00091 if (state.checkLocation(State::Muon)) os <<"L:Muon, "; 00092 00093 return os; 00094 }
|
|
write track states into the ostream
Definition at line 26 of file TrackStreamer.cpp. References str::state(), and str::states(). Referenced by str::states(), and str::track(). 00027 { 00028 for (std::vector<State*>::const_iterator it = states.begin(); 00029 it != states.end(); it++) { 00030 const State& state = *(*it); 00031 str::state(state,os); os << std::endl; 00032 } 00033 return os; 00034 }
|
|
write track data into the ostream
Definition at line 4 of file TrackStreamer.cpp. References str::lhcbIDs(), str::states(), str::track(), str::trackFields(), and str::trackHeader(). Referenced by operator<<(), str::track(), str::trackFields(), and str::trackHeader(). 00004 { 00005 00006 os << str::trackHeader(track,os) << std::endl; 00007 os << str::trackFields(track,os) << std::endl; 00008 os << str::states(track.states(),os) << std::endl; 00009 os << str::lhcbIDs(track.lhcbIDs(),os); 00010 return os; 00011 }
|
|
write track fiels (type and flags) into the ostream
Definition at line 62 of file TrackStreamer.cpp. References str::track(). Referenced by str::track(). 00062 { 00063 00064 os << " type : \t" << track.type() << std::endl; 00065 os << " status: \t" <<track.status() << std::endl; 00066 os << " history: \t" << track.history() << std::endl; 00067 os << " history Fit: \t" << track.historyFit() << std::endl; 00068 // os << " flags: \t"; 00069 os << std::endl; 00070 return os; 00071 }
|
|
write track header (chi2 and physics state)
Definition at line 13 of file TrackStreamer.cpp. References str::state(), and str::track(). Referenced by str::track(). 00013 { 00014 00015 os << " chi2 \t" << track.chi2() << std::endl; 00016 os << " ndof \t" << track.nDoF() << std::endl; 00017 os << " physics state \t"; str::state(track.physicsState(),os); 00018 os << std::endl; 00019 os << " flags \t " << track.flags() << std::endl; 00020 os << " nstates \t " << track.states().size() << std::endl; 00021 os << " nIDs \t " << track.lhcbIDs().size(); 00022 return os; 00023 }
|