/*
$Log$
+Revision 1.1 2000/11/01 16:01:22 kowal2
+Classes for handling the new hits structures
+
*/
#include "TROOT.h"
#include "AliArrayBranch.h"
char *cpointer =(char*)pointer;
char **ppointer =(char**)cpointer;
TClonesArray *list = (TClonesArray*)(*ppointer);
- if (splitlevel != 2) {
+ if (splitlevel != 100) {
if (isDot) branch1 = new TBranchClones(&branchname[0],pointer,bufsize);
else branch1 = new TBranchClones(&branchname[1],pointer,bufsize);
blist->Add(branch1);
char *cpointer =(char*)pointer;
char **ppointer =(char**)cpointer;
TClonesArray *list = (TClonesArray*)(*ppointer);
- if (splitlevel != 2) {
+ if (splitlevel != 100) {
if (isDot) branch1 = new AliArrayBranch(&branchname[0],pointer,fTree,bufsize,compress);
else branch1 = new AliArrayBranch(&branchname[1],pointer,fTree,bufsize,compress);
blist->Add(branch1);
AliTree():TTree(){;}
AliTree(const char *name,const char *title, Int_t maxvirtualsize=0);
TBranch* AliBranch(const char *name, void *clonesaddress, Int_t bufsize =32000,
- Int_t splitlevel=1,Int_t compres=1);
+ Int_t splitlevel=99,Int_t compres=1);
TBranch* AliBranch(const char *name, const char *classname, void *addobj,
- Int_t bufsize=32000, Int_t splitlevel=1);
+ Int_t bufsize=32000, Int_t splitlevel=99);
ClassDef(AliTree,1)
};
/*
$Log$
+Revision 1.4 2001/06/07 18:23:52 buncic
+TPC branches now correctly diverted into Digits.TPS.root file
+
Revision 1.3 2001/02/05 14:34:54 hristov
Avoid deleting of Root class dictionary (R.Brun, M.Ivanov)
AliSegmentID * psegment = NewSegment();
if (fTree) delete fTree;
fTree = new TTree("Segment Tree","Tree with segments");
- fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000,1);
+ fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000);
if (file) {
TString outFile = gAlice->GetBaseFile();
outFile = outFile + "/" + file;
/*
$Log$
+Revision 1.26 2001/05/03 08:11:31 hristov
+stdlib.h included to define exit()
+
Revision 1.25 2001/04/25 14:50:42 gosset
Corrections to violations of coding conventions
if (fRecoEvent->MakeDumpTracks(fRecTracksPtr)) {
if (fPrintLevel > 1) fRecoEvent->EventInfo();
TBranch *branch = fEventTree->GetBranch("Event");
- if (!branch) branch = fEventTree->Branch("Event", "AliMUONRecoEvent", &fRecoEvent, 64000,1);
+ if (!branch) branch = fEventTree->Branch("Event", "AliMUONRecoEvent", &fRecoEvent, 64000);
branch->SetAutoDelete();
fTreeFile->cd();
fEventTree->Fill();
/*
$Log$
+Revision 1.21 2001/06/27 16:06:59 hristov
+Rotation matrix in BuildGeometry has been changed to rotx999
+
Revision 1.20.2.1 2001/06/27 10:51:15 alla
Rotation matrix in BuildGeometry has benn changed to rotx999
AliSTARThit *startHit;
Int_t buffersize=256;
- Int_t split=1;
digits= new AliSTARTdigit();
TBranch *bDig=0;
sprintf(nameTD,"TreeD%d",evnum);
TTree *td = new TTree(nameTD,"START");
- bDig = td->Branch("START","AliSTARTdigit",&digits,buffersize,split);
+ bDig = td->Branch("START","AliSTARTdigit",&digits,buffersize);
besttimeright=9999.;
besttimeleft=9999.;
**************************************************************************/
/*
$Log$
+Revision 1.4 2000/12/22 16:17:15 hristov
+Updated START code from Alla
+
Revision 1.3 2000/10/02 21:28:13 fca
Removal of useless dependecies via forward declarations
AliSTARTvertex *vertex;
Int_t buffersize=256;
- Int_t split=1;
// TParticle *particle;
digits = new AliSTARTdigit();
bd->GetEvent(0);
sprintf(nameTR,"TreeR%d",evNumber);
TTree *tr = new TTree(nameTR,"START");
- bRec = tr->Branch("START","AliSTARTvertex",&vertex,buffersize,split);
+ bRec = tr->Branch("START","AliSTARTvertex",&vertex,buffersize);
if(digits->GetTime()!=999999)
{
timediff=digits->GetTime(); //time in number of channels
/*
$Log$
+Revision 1.14 2001/05/21 17:22:51 buncic
+Fixed problem with missing AliConfig while reading galice.root
+
Revision 1.13 2001/05/16 14:57:22 alibrary
New files for folders and Stack
//_____________________________________________________________________________
TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name, void* address, Int_t size,const char *file)
{
- return(MakeBranchInTree(tree,name,0,address,size,1,file));
+ return(MakeBranchInTree(tree,name,0,address,size,99,file));
}
//_____________________________________________________________________________
virtual AliHit* NextHit();
virtual void SetBufferSize(Int_t bufsize=8000) {fBufferSize = bufsize;}
virtual TBranch* MakeBranchInTree(TTree *tree, const char* cname, void* address, Int_t size=32000, const char *file=0);
- virtual TBranch* MakeBranchInTree(TTree *tree, const char* cname, const char* name, void* address, Int_t size=32000, Int_t splitlevel=1, const char *file=0);
+ virtual TBranch* MakeBranchInTree(TTree *tree, const char* cname, const char* name, void* address, Int_t size=32000, Int_t splitlevel=99, const char *file=0);
// Data members
protected:
/*
$Log$
+Revision 1.11 2001/07/27 12:34:20 jchudoba
+remove the dummy argument in GetEvent method
+
Revision 1.10 2001/07/20 10:13:54 morsch
In Particle(Int_t) use GetEntriesFast to speed up the procedure.
sprintf(hname,"TreeK%d",event);
fTreeK = new TTree(hname,"Kinematics");
// Create a branch for particles
- branch = fTreeK->Branch("Particles", "TParticle", &fParticleBuffer, 4000, 1);
+ branch = fTreeK->Branch("Particles", "TParticle", &fParticleBuffer, 4000);
fTreeK->Write(0,TObject::kOverwrite);
}
}
/*
$Log$
+Revision 1.39 2001/07/26 09:09:34 kowal2
+Hits2Reco method added
+
Revision 1.38 2001/07/20 14:32:43 kowal2
Processing of many events possible now
//
if (fTrackHits && gAlice->TreeH() && cH) {
AliObjectBranch * branch = new AliObjectBranch(branchname,"AliTPCTrackHits",&fTrackHits,
- gAlice->TreeH(),fBufferSize,1);
+ gAlice->TreeH(),fBufferSize);
gAlice->TreeH()->GetListOfBranches()->Add(branch);
if (GetDebug()>1)
printf("* AliDetector::MakeBranch * Making Branch %s for trackhits\n",branchname);
/*
$Log$
+Revision 1.3 2000/11/02 10:22:50 kowal2
+Logs added
+
*/
/*
TFile f3("treehcl.root","recreate");
f3.SetCompressionLevel(2);
TTree * treeh3 = new TTree("TreeTPCH","TreeTPCH");
- treeh3->Branch("TPC", &arr,64000,2);
+ treeh3->Branch("TPC", &arr,64000,100);
gBenchmark->Start(benchmark);
Int_t trsize = (Int_t)treeCl->GetEntries();
f3.SetCompressionLevel(2);
TTree * treeh3 = new TTree("DelataH","DeltaH");
TClonesArray *arrd = new TClonesArray("AliTPChitD",100);
- treeh3->Branch("TPC", &arrd,64000,2);
+ treeh3->Branch("TPC", &arrd,64000,100);
cout<<"Lets go!\n";
gBenchmark->Start(benchmark);
/*
$Log$
+Revision 1.8 2001/01/26 19:56:57 hristov
+Major upgrade of AliRoot code
+
Revision 1.7 2000/11/20 08:56:07 cblume
Cleanup of data arrays
if (fTree) delete fTree;
fTree = new TTree("Segment Tree","Tree with segments");
- fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000,1);
+ fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000);
if (file)
fBranch->SetFile(file);