File indexing completed on 2025-08-05 08:18:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include "StateOnPlane.h"
0021 #include "AbsTrackRep.h"
0022 #include "IO.h"
0023
0024 #include <cassert>
0025 #include <TBuffer.h>
0026
0027 namespace genfit {
0028
0029
0030 void StateOnPlane::Print(Option_t*) const {
0031 printOut << "genfit::StateOnPlane ";
0032 printOut << " state vector: "; state_.Print();
0033 if (sharedPlane_ != nullptr) {
0034 printOut << " defined in plane "; sharedPlane_->Print();
0035 TVector3 pos(0,0,0), mom(0,0,0);
0036 getRep()->getPosMom(*this, pos, mom);
0037 printOut << " 3D position: "; pos.Print();
0038 printOut << " 3D momentum: "; mom.Print();
0039 }
0040 }
0041
0042
0043
0044
0045 void StateOnPlane::Streamer(TBuffer &R__b)
0046 {
0047
0048
0049
0050 typedef ::genfit::StateOnPlane thisClass;
0051 UInt_t R__s, R__c;
0052 if (R__b.IsReading()) {
0053 Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
0054 state_.Streamer(R__b);
0055 auxInfo_.Streamer(R__b);
0056 sharedPlane_.reset();
0057 rep_ = nullptr;
0058 R__b.CheckByteCount(R__s, R__c, thisClass::IsA());
0059 } else {
0060 R__c = R__b.WriteVersion(thisClass::IsA(), kTRUE);
0061 state_.Streamer(R__b);
0062 auxInfo_.Streamer(R__b);
0063 R__b.SetByteCount(R__c, kTRUE);
0064 }
0065 }
0066
0067
0068 }