Dear Rooters,
I'm "simply" trying to save some tobjects in a tree, in particular a TClonesArray and a TObjArray. The code I'm using is:
TClonesArray* SpectrometerHits = new TClonesArray(); tAcceptances->Branch( "SpectrometerHits", &SpectrometerHits, 256000, 0 );
TObjArray* SpectrometerTrackMomentum = new TObjArray(); tAcceptances->Branch("SpectrometerTrackMomentum", &SpectrometerTrackMomentum, 256000, 0 );
My problem is different these two cases:
TClonesArray gives the error message:
Error in <TTree::Bronch>: TClonesArray with no class defined in branch: SpectrometerHits
TObjArray, instead, have segmentation violation problems...
Do you have idea concerning that?
Thank you in advance for any suggestion.
Vito Received on Sun May 02 2010 - 08:46:39 CEST
This archive was generated by hypermail 2.2.0 : Mon May 03 2010 - 11:50:01 CEST