20 #include "StateOnPlane.h"
21 #include "AbsTrackRep.h"
30 void StateOnPlane::Print(Option_t*)
const {
32 printOut <<
" state vector: "; state_.Print();
33 if (sharedPlane_ !=
nullptr) {
34 printOut <<
" defined in plane "; sharedPlane_->Print();
35 TVector3 pos(0,0,0), mom(0,0,0);
37 printOut <<
" 3D position: "; pos.Print();
38 printOut <<
" 3D momentum: "; mom.Print();
45 void StateOnPlane::Streamer(TBuffer &R__b)
50 typedef ::genfit::StateOnPlane thisClass;
52 if (R__b.IsReading()) {
53 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
if (R__v) { }
54 state_.Streamer(R__b);
55 auxInfo_.Streamer(R__b);
58 R__b.CheckByteCount(R__s, R__c, thisClass::IsA());
60 R__c = R__b.WriteVersion(thisClass::IsA(), kTRUE);
61 state_.Streamer(R__b);
62 auxInfo_.Streamer(R__b);
63 R__b.SetByteCount(R__c, kTRUE);
virtual void getPosMom(const StateOnPlane &state, TVector3 &pos, TVector3 &mom) const =0
Get cartesian position and momentum vector of a state.
const AbsTrackRep * rep_
Shared ownership. '!' in order to silence ROOT, custom streamer writes and reads this.
Defines for I/O streams used for error and debug printing.
std::ostream printOut
Default stream for output of Print calls.