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 & | trgTrack (const TrgTrack &track, std::ostream &os=std::cout) |
write track information | |
std::ostream & | trgTrackHeader (const TrgTrack >rack, std::ostream &os=std::cout) |
write track header information | |
std::ostream & | trgStates (const std::vector< TrgState > &states, std::ostream &os=std::cout) |
write states | |
std::ostream & | trgState (const TrgState &state, std::ostream &os=std::cout) |
write state | |
std::ostream & | trgTrackReferences (const TrgTrack >rack, std::ostream &os=std::cout) |
write track references | |
std::ostream & | trgTrackFields (const TrgTrack >rack, std::ostream &os=std::cout) |
write track fields (flags) |
|
write a LHCbID
Definition at line 53 of file TrackStreamer.cpp. Referenced by 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 lhcbID(). Referenced by Track2TrFitTrackCnv::execute(), and 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 }
|
|
write state data into the ostream
Definition at line 37 of file TrackStreamer.cpp. References state(), and stateFields(). Referenced by operator<<(), state(), stateFields(), states(), and trgState(). 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.stateVector(); 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 state(). Referenced by state(). 00073 { 00074 00075 if (state.checkLocation(StateKeys::LocationUnknown)) os <<"L:Unknown, "; 00076 if (state.checkLocation(StateKeys::ClosestToBeam)) 00077 os <<"L:ClosestToBeam, "; 00078 if (state.checkLocation(StateKeys::FirstMeasurement)) 00079 os <<"L:FirstMeasurement, "; 00080 if (state.checkLocation(StateKeys::EndVelo)) os <<"L:EndVelo, "; 00081 if (state.checkLocation(StateKeys::AtTT)) os <<"L:AtTT, "; 00082 if (state.checkLocation(StateKeys::AtT)) os <<"L:AtT, "; 00083 if (state.checkLocation(StateKeys::BegRich1)) os <<"L:BegRich1, "; 00084 if (state.checkLocation(StateKeys::EndRich1)) os <<"L:EndRich1, "; 00085 if (state.checkLocation(StateKeys::BegRich2)) os <<"L:BegRich2, "; 00086 if (state.checkLocation(StateKeys::EndRich2)) os <<"L:EndRich2, "; 00087 if (state.checkLocation(StateKeys::Calo)) os <<"L:Calo, "; 00088 if (state.checkLocation(StateKeys::Muon)) os <<"L:Muon, "; 00089 00090 return os; 00091 }
|
|
write track states into the ostream
Definition at line 26 of file TrackStreamer.cpp. References state(), and states(). Referenced by TrackSelector::select(), states(), track(), and trgStates(). 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 5 of file TrackStreamer.cpp. References lhcbIDs(), states(), track(), trackFields(), and trackHeader(). Referenced by TrgTrackToTrack::execute(), operator<<(), track(), trackFields(), and trackHeader(). 00005 { 00006 00007 os << str::trackHeader(track,os) << std::endl; 00008 os << str::trackFields(track,os) << std::endl; 00009 os << str::states(track.states(),os) << std::endl; 00010 os << str::lhcbIDs(track.lhcbIDs(),os); 00011 return os; 00012 }
|
|
write track fiels (type and flags) into the ostream
Definition at line 62 of file TrackStreamer.cpp. References track(). Referenced by 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 14 of file TrackStreamer.cpp. References track(). Referenced by track(). 00014 { 00015 00016 os << " chi2 \t" << track.chi2() << std::endl; 00017 os << " ndof \t" << track.nDoF() << std::endl; 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 }
|
|
write state
Definition at line 88 of file TrgTrackStreamer.cpp. References state(). Referenced by trgStates(), and trgTrackHeader(). 00088 { 00089 os << " z " << state.z() << std::endl; 00090 os << " state " << state.stateVector(); 00091 // os << " cov " << state.covariance() << std::endl; 00092 return os; 00093 }
|
|
write states
Definition at line 23 of file TrgTrackStreamer.cpp. References states(), and trgState(). Referenced by trgTrack(). 00025 { 00026 os << " states \t " << states.size() << std::endl; 00027 for (std::vector<TrgState>::const_iterator it = states.begin(); 00028 it != states.end(); it++) { 00029 const TrgState& gstate = *it; 00030 os << str::trgState(gstate,os) << std::endl; 00031 } 00032 return os; 00033 }
|
|
write track information
Definition at line 3 of file TrgTrackStreamer.cpp. References trgStates(), trgTrackFields(), trgTrackHeader(), and trgTrackReferences(). Referenced by TrgTrackToTrack::execute(). 00003 { 00004 00005 os << str::trgTrackHeader(gtrack,os) << std::endl; 00006 os << str::trgTrackFields(gtrack,os) << std::endl; 00007 os << str::trgStates(gtrack.otherStates(),os) <<std::endl; 00008 os << str::trgTrackReferences(gtrack,os); 00009 return os; 00010 }
|
|
write track fields (flags)
Definition at line 67 of file TrgTrackStreamer.cpp. Referenced by trgTrack(). 00067 {
00068
00069
00070 TrgTrack::TrgTrackType gtype = (TrgTrack::TrgTrackType) gtrack.type();
00071
00072 if (gtype == TrgTrack::TypeVeloR) os << "T:VeloR, ";
00073 if (gtype == TrgTrack::TypeVelo3D) os << "T:Velo3D, ";
00074 if (gtype == TrgTrack::TypeVeloTT) os << "T:VeloTT, ";
00075 if (gtype == TrgTrack::TypeLong) os << "T:Long, ";
00076 if (gtype == TrgTrack::TypeDownstream) os << "T:Downstream, ";
00077 if (gtype == TrgTrack::TypeKShort) os << "T:KShort, ";
00078
00079 if (gtrack.badTrack()) os << "F:BadTrack, ";
00080 if (gtrack.alreadyUsed()) os << "F:AlreadyUsed, ";
00081 if (gtrack.backward()) os << "F:Backward, ";
00082 if (gtrack.selectedIP2D()) os << "F:SelectedIP2D, ";
00083 if (gtrack.selectedMuon2D()) os << "F:SelectedMuon2D, ";
00084
00085 return os;
00086 }
|
|
write track header information
Definition at line 12 of file TrgTrackStreamer.cpp. References trgState(). Referenced by trgTrack(). 00013 { 00014 os << " chi2 \t" << gtrack.chiSquared() << std::endl; 00015 os << " ndof \t" << gtrack.degreeOfFreedom() << std::endl; 00016 os << " first state \t" 00017 << str::trgState(gtrack.firstState(),os) << std::endl; 00018 os << " flags \t " << gtrack.flags() << std::endl; 00019 os << " nStates \t" << gtrack.otherStates().size(); 00020 return os; 00021 }
|
|
write track references
Definition at line 35 of file TrgTrackStreamer.cpp. Referenced by trgTrack(). 00037 { 00038 os << " references :" << std::endl; 00039 const std::vector< std::pair<VeloChannelID,int> >& vref 00040 = gtrack.veloReference(); 00041 for (std::vector< std::pair<VeloChannelID,int> >::const_iterator 00042 it = vref.begin(); it != vref.end(); it++) { 00043 const std::pair<VeloChannelID,int>& velo = *it; 00044 os << " \t velo id "<<velo.first.channelID() 00045 << " size " << velo.second << std::endl; 00046 } 00047 const std::vector< std::pair<ITChannelID,int> >& itref 00048 = gtrack.itReference(); 00049 for (std::vector< std::pair<ITChannelID,int> >::const_iterator 00050 it = itref.begin(); it != itref.end(); it++) { 00051 const std::pair<ITChannelID,int>& si = *it; 00052 os << " \t si id "<< si.first.channelID() 00053 << " size " << si.second << std::endl; 00054 } 00055 const std::vector< std::pair<OTChannelID,int> >& otref 00056 = gtrack.otReference(); 00057 for (std::vector< std::pair<OTChannelID,int> >::const_iterator 00058 it = otref.begin(); it != otref.end(); it++) { 00059 const std::pair<VeloChannelID,int>& ot = *it; 00060 os << " \t ot id "<< ot.first.channelID() 00061 << " size " << ot.second << std::endl; 00062 } 00063 return os; 00064 }
|