{
#ifndef ClingWorkAroundMissingDynamicScope
# define ClingWorkAroundMissingDynamicScope
#endif
#ifdef ClingWorkAroundMissingDynamicScope
#else
#endif
}
printf(
"Adding hpx: %d entries\n", (
int)hpx->
GetEntries());
TH1 *hpxpy = (
TH1*)
f->Get(
"hpxpy");
TH1 *hprof = (
TH1*)
f->Get(
"hprof");
return l0;
}
void testMergeCont()
{
gROOT->LoadMacro(tutdir+
"/hsimple.C");
for (
Int_t i=0; i<10; i++) {
inputs->
AddAt(GetCollection(),0);
}
delete inputs;
printf("============================================\n");
printf(
"Total hpx: %d entries\n", (
int)hpx->
GetEntries());
delete list1;
}
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
1-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t GetEntries() const
Return the current number of entries.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void Add(TObject *obj)
virtual void AddAt(TObject *obj, Int_t idx)
Insert object at position idx in the list.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
Mother of all ROOT objects.
Sequenceable collection abstract base class.
Long64_t Merge(TCollection *list)
Merge this collection with all collections coming in the input list.