> Hi pawel > > I had already looked into this before, It was not quite as simple as to > remove the //! in the > hitlist, since we do not always want to write this out (filesize +15%) The > changes described > below to brat should make this work. I tested it on a newly generated > ltr-file, and both reading of old and new files seems fine. > > I will rerun the pp data from 11880 and 11882 (the last two runs with hits > kept) so you can invertigate > later we can of course run other specific runs with the hits stored, but > would not like to do it for all. > > flemming > > > > There has been discussion on how to check the t2,t1 position using t3 > tracks. > This was almost possible with the current brat classes and the hit > information used locally > in BrTpcTrackCandidate. Since we do though not always want to write this > information to disk > methods had to be added to deal with this properly. > Another complication was that the hist are owned by the brannch that has > all hits in a TPC. > > Changes was made to the various dataclasses such this would be simple. > Essentially if you add the statement to the local tracking it works. > > // trackPackage->SetHitsInOutput(kTRUE); > > and the results can be inspected e.g. b > > frtpc = inEvent ->GetDataTable(Form("TpcTrack %s", frname.Data())); > // front TPC tracks > if(frtpc){ > > int mk=0; > for (Int_t t = 0; t < frtpc->GetEntries(); t++) > { > BrTpcTrackCandidate* tptrk = (BrTpcTrackCandidate*) frtpc->At(t); > const Int_t nhit = tptrk->GetNhit(); > cout << nhit << endl; > for(int k = 0;k<nhit;k++){ > BrTpcHit* hit = tptrk->GetHitAt(k); > if(hit){ > BrVector3D ent = hit->GetPos(); > ... > > etc > > BrTrackCandidate > > //____________________________________________________________________ > // > // During normal usage the hits associated with tracks are kept during > // the localtracking part but removed at the end but the > TpcTrackFollowModule. > // At times it can be usefull to keep the tracks, this can be done by > // setting the following flag in the BrTpcTrackPackage > // > // BrTpcTrackPackage* trackPackage = > // new BrTpcTrackPackage(tpcNames[i], "tracking Module"); > // > // trackPackage->SetHitsInOutput(kTRUE); > // The container of hits are kepr in a TRefArray since the hits are usual > // contained in anoter BrDataTable (TObjArray) and in order to be written > out > // effeciently the TRef mechanism is just perfect. > // > > The classdef was updated to 2. > > BrTpcTrackPackage > > // During normal usage the hits associated with tracks are kept during > // the localtracking part but removed at the end but the > TpcTrackFollowModule. > // At times it can be usefull to keep the tracks, this can be done by > // setting the following flag in the BrTpcTrackPackage > // > // BrTpcTrackPackage* trackPackage = > // new BrTpcTrackPackage(tpcNames[i], "tracking Module"); > // > // trackPackage->SetHitsInOutput(kTRUE); _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l@lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
This archive was generated by hypermail 2.1.8 : Tue Jul 13 2004 - 16:51:22 EDT