-
Notifications
You must be signed in to change notification settings - Fork 14
Development Loader
Andrea Marini edited this page Jun 3, 2016
·
1 revision
the interface that reads the ntuples and populate the events is separated from the Looper. This will eventually allow to re-use the structure on different ntuples, once a way to read them is provided.
The Looper needs to be init with the wanted Loader through the command:
loop -> InitLoader( name );
WARNING The Loader uses the IsRealData() in FillEvent
so this is one of the first values that needs to be populated.
The FillEventInfo is stripped out for this scope. The pre-fetching further allow to load the mc weights before the MC is processed.
A Factory is provided for the loader, so it can be constructed from a string.
The call of functions is specified in the Loop::FillEvents
:
loader_->FillEventInfo();
if ( tree_ -> GetTreeNumber() != fNumber)
{
NewFile();
}
loader_->FillEvent();
// fead the dumper before clearing the collections
dump_->Fill();
loader_->Clear();
Look at the existing LoadNero to see an actual working configuration.