37 #include "StRichPidTraits.h"
39 static const char rcsid[] =
"$Id: StRichPidTraits.cxx,v 2.7 2002/02/19 23:21:30 ullrich Exp $";
50 StRichPidTraits::~StRichPidTraits() {
delete mRichSpectra;}
62 mThePids = t.mThePids;
63 mProductionVersion = t.mProductionVersion;
65 mProbability = t.mProbability;
66 mAssociatedMip = t.mAssociatedMip;
67 mMipResidual = t.mMipResidual;
68 mRefitResidual = t.mRefitResidual;
69 mSigned3dDca = t.mSigned3dDca;
70 mSigned2dDca = t.mSigned2dDca;
71 if (mRichSpectra)
delete mRichSpectra;
84 for (
size_t index=0;index<mThePids.size();index++) {
86 if ( (mThePids[index]->getRingType()==part) ||
87 (mThePids[index]->getParticleNumber() == part->pdgEncoding()) ) {
88 return mThePids[index];
99 for (
size_t index=0;index<mThePids.size();index++) {
101 if ( (mThePids[index]->getRingType()==part) ||
102 (mThePids[index]->getParticleNumber() == part->pdgEncoding()) ) {
103 return mThePids[index];
113 return (os <<
"StrichPidTraits::> #Pids= " << t.getAllPids().size()
114 <<
"\n\tProduction Version: " << t.productionVersion()
115 <<
"\n\tAssociated Mip: " << t.associatedMip()
116 <<
"\n\tMip Residual: " << t.mipResidual()
117 <<
"\n\tRefit Residual: " << t.refitResidual()
118 <<
"\n\tid " << t.id()
119 <<
"\n\tprobability " << t.probability());
123 StRichPidTraits::Streamer(TBuffer &R__b)
127 if (R__b.IsReading()) {
129 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
131 Class()->ReadBuffer(R__b,
this, R__v, R__s, R__c);
135 StTrackPidTraits::Streamer(R__b);
136 mThePids.Streamer(R__b);
137 R__b >> mProductionVersion;
139 R__b >> mProbability;
144 mMipResidual.Streamer(R__b);
145 mRefitResidual.Streamer(R__b);
146 R__b >> mSigned3dDca;
147 R__b >> mSigned2dDca;
150 R__b.CheckByteCount(R__s, R__c, Class());
154 Class()->WriteBuffer(R__b,
this);