From ce4b42552642b79f93a1453e98786c6b3c527372 Mon Sep 17 00:00:00 2001 From: marian Date: Fri, 18 Sep 2009 09:13:25 +0000 Subject: [PATCH] Using custom streamer to guarantie back compatibility (Peter Christiansen) --- TPC/AliTPCdataQA.cxx | 36 ++++++++++++++++++++++++++++++++++++ TPC/TPCbaseLinkDef.h | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/TPC/AliTPCdataQA.cxx b/TPC/AliTPCdataQA.cxx index 498a13a6a76..b9f61b5415e 100644 --- a/TPC/AliTPCdataQA.cxx +++ b/TPC/AliTPCdataQA.cxx @@ -978,3 +978,39 @@ Float_t AliTPCdataQA::GetQ(const Float_t* adcArray, const Int_t time, } return charge; } + +//______________________________________________________________________________ +void AliTPCdataQA::Streamer(TBuffer &R__b) +{ + // Automatic schema evolution was first used from revision 4 + // Code based on: + // http://root.cern.ch/root/roottalk/roottalk02/3207.html + + UInt_t R__s, R__c; + if (R__b.IsReading()) { + Version_t R__v = R__b.ReadVersion(&R__s, &R__c); + //we use the automatic algorithm for class version > 3 + if (R__v > 3) { + AliTPCdataQA::Class()->ReadBuffer(R__b, this, R__v, R__s, + R__c); + return; + } + TH1F::Streamer(R__b); + R__b >> fFirstTimeBin; + R__b >> fLastTimeBin; + R__b >> fAdcMin; + R__b >> fAdcMax; + R__b >> fNLocalMaxima; + R__b >> fMaxCharge; + R__b >> fMeanCharge; + R__b >> fNoThreshold; + R__b >> fNTimeBins; + R__b >> fNPads; + R__b >> fTimePosition; + R__b >> fEventCounter; + R__b >> fIsAnalysed; + R__b.CheckByteCount(R__s, R__c, AliTPCdataQA::IsA()); + } else { + AliTPCdataQA::Class()->WriteBuffer(R__b,this); + } +} diff --git a/TPC/TPCbaseLinkDef.h b/TPC/TPCbaseLinkDef.h index b5ea2c4cd5f..11e3c68cb9d 100644 --- a/TPC/TPCbaseLinkDef.h +++ b/TPC/TPCbaseLinkDef.h @@ -79,7 +79,7 @@ #pragma link C++ class AliTPCAlign; -#pragma link C++ class AliTPCdataQA+; +#pragma link C++ class AliTPCdataQA-; #pragma link C++ class AliTPCQAChecker+; #pragma link C++ class AliExternalComparison+; #pragma link C++ class AliTPCkalmanTime+; -- 2.43.0