Macro demonstrating the merging of containers.
{
#ifndef ClingWorkAroundMissingDynamicScope
# define ClingWorkAroundMissingDynamicScope
#endif
#ifdef ClingWorkAroundMissingDynamicScope
#else
#endif
}
printf(
"Adding hpx: %d entries\n", (
int)
hpx->GetEntries());
}
{
for (
Int_t i=0; i<10; i++) {
inputs->AddAt(GetCollection(),0);
}
printf(
"============================================\n");
printf(
"Total hpx: %d entries\n", (
int)
hpx->GetEntries());
delete list1;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
1-D histogram with a float per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
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.
- Author
- The Root Team
Definition in file testMergeCont.C.