HI ,
I am writing an Object (MTMuSRAnalysis) which contains a 2-dim array of
TH1F to a file.
When I read this object back from disk I get the error :
Error in <TBuffer::ReadObject>: got object of wrong class
Error in <TBuffer::ReadObject>: got object of wrong class
This problem does not exist in the case of one dimensional arrays of
histograms.
Do I have to write a custum streamer function ?
Cheers,
Norbert
class MTMuSRAnalysis: public MTAnalysis
{
private:
Float_t FoilZ; // Z Position of the Foil
TH1F* hSpinAngleCut[256][16]; //!
TH1F* hSpinAnglePhi;
TH1F* hSpinAngleDiv[256][16]; //
public:
MTMuSRAnalysis(){;}
MTMuSRAnalysis(Text_t* Name, Text_t* Title, TTree* tree);
~MTMuSRAnalysis(){;}
ClassDef(MTMuSRAnalysis,1) // Muon Spin Rotation Analysis
};
--
Norbert Danneberg
ETH Zurich - Institute for Particle Physics
Laboratory for Nuclear Physics Phone.: +41-1-633-2034
Hoenggerberg Fax.: +41-1-633-1067
CH-8093 Zurich
ETH Zurich - Institute for Particle Physics
Paul Scherrer Institute Phone.: +41-56-310-3284
CH-5232 Villigen PSI Fax.: +41-56-310-4362
email: Norbert.Danneberg@psi.ch
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:16 MET