36 Long_t i_this = (Long_t)
this;
49 Long_t i_this = (Long_t)
this;
53 fRootFileStatus =
"READ";
73 fRootFileStatus =
"READ";
81 if( fCnaIndivResult != 0 ){
delete fCnaIndivResult;}
89 fRootFileName = sEmpty.Data();
90 fRootFileStatus = sEmpty.Data();
93 fCounterBytesCnaResults = 0;
96 fCnaResultsBranch = 0;
105 fRootFileName =
name;
106 fRootFileStatus =
"READ";
114 fRootFileName =
name;
123 delete fRootFile; fRootFile = 0;
125 fCounterBytesCnaResults = 0;
127 fCnaResultsBranch = 0;
134 if( name != sEmpty ){fRootFileName =
name;}
136 if( fRootFile == 0 ){fRootFile =
new TFile(fRootFileName.Data(),
"READ");}
138 ok = fRootFile->IsOpen();
140 fCnaResultsTree = (TTree *)fRootFile->Get(
"CNAResults");
141 if (fCnaResultsTree) {
143 fCnaResultsBranch = fCnaResultsTree->GetBranch(
"Results");
144 fCnaResultsBranch->SetAddress(&fCnaIndivResult);
145 fNbEntries = (Int_t)fCnaResultsTree->GetEntries();
156 if( name != sEmpty ){fRootFileName =
name;}
158 if( fRootFile == 0 ){fRootFile =
new TFile(fRootFileName.Data(),
"RECREATE");}
160 fCnaResultsTree =
new TTree(
"CNAResults",
"CNAResults");
162 fCnaResultsBranch = fCnaResultsTree->
163 Branch(
"Results",
"TEcnaResultType", &fCnaIndivResult, 64000, 0);
172 fCounterBytesCnaResults += fCnaResultsTree->GetEntry(i);
181 fCounterBytesCnaResults += fCnaResultsTree->GetEntry(i);
182 ok = ( ( fCnaIndivResult->fIthElement ==
k ) &&
183 ( fCnaIndivResult->fTypOfCnaResult == typ ));
185 }
while ((i<fNbEntries) && (!
ok));
195 fCounterBytesCnaResults += fCnaResultsTree->GetEntry(i);
196 ok = ( ( fCnaIndivResult->fIthElement ==
k ) &&
197 ( fCnaIndivResult->fTypOfCnaResult == typ ));
199 }
while ((i<fNbEntries) && (!
ok));
201 if( ok == kFALSE ){i = -1;}
Bool_t OpenR(const Text_t *="")
R__EXTERN TEcnaRootFile * gCnaRootFile
Bool_t RegisterPointer(const TString &, const Long_t &)
Int_t ReadElementNextEntryNumber(CnaResultTyp, Int_t)
void ReStart(const Text_t *)
Bool_t ReadElement(Int_t)
Bool_t OpenW(const Text_t *="")