29 fMap =
new THashList();
36 fMap =
new THashList();
37 fTree =
new TTree ( name,title );
38 fTree->SetDirectory ( 0 );
205 const TVector& vector,
227 const TVector& vector,
384 cerr <<
"TTuple::Column: Column "<< label <<
" does not exist" << endl;
393 for ( Int_t
i=0;
i<
fMap->GetSize();
i++ ) {
405 for ( Int_t
i=0;
i<
fMap->GetSize();
i++ ) {
417 return fTree->GetTitle();
423 return fMap->GetSize();
430 if ( i >= 0 && i < fMap->GetSize() ) { str = ( (
RhoColumn* )
fMap->At ( i ) )->GetLabel(); }
431 else { str =
"unknown Column index"; }
439 cout <<
"TTuple: ntuple " <<
Title() <<
" has " <<
NColumns()
440 <<
" Columns." << endl;
441 cout <<
"Complete printout follows: " << endl;
447 TFile*
f=
new TFile ( fname,opt );
455 TFile*
f=
new TFile ( fname,
"UPDATE" );
virtual void SetDefValue()=0
TTree * fTree
Do not stream.
virtual void SetValue(const void *, RhoColumn *cp=0)=0
void WriteToFile(TString fname="ntpdata.root", TString opt="RECREATE")
void AddToFile(TString fname="ntpdata.root")
void SetUseDefValue(Int_t b)
const char * Title() const
void Column(const char *label, Bool_t value, Bool_t defval=0, const char *block=0)
ClassImp(RhoTuple) using namespace std
const Int_t & GetUseDefValue() const
const char * Label(Int_t) const
virtual void PrintOn(std::ostream &) const