本文整理汇总了C++中AliAnalysisManager::RunLocalInit方法的典型用法代码示例。如果您正苦于以下问题:C++ AliAnalysisManager::RunLocalInit方法的具体用法?C++ AliAnalysisManager::RunLocalInit怎么用?C++ AliAnalysisManager::RunLocalInit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AliAnalysisManager
的用法示例。
在下文中一共展示了AliAnalysisManager::RunLocalInit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintManager
void PrintManager(TObject *mgrObj) {
AliAnalysisManager *mgr = (AliAnalysisManager *)mgrObj;
if (!mgr->InitAnalysis()) return;
mgr->RunLocalInit();
mgr->PrintStatus();
Printf("Analysis Manager : %s '%s'",mgr->GetName(),mgr->GetTitle() );
TObjArray *a = mgr->GetTasks();
if (a) Printf("Tasks total : %d",a->GetEntries());
TIter next(mgr->GetTasks());
AliAnalysisTask *task;
while ((task = (AliAnalysisTask *) next())) {
if (task->IsA() == AliRsnMiniAnalysisTask::Class()) {
Printf(" Task [RSN-MINI] : %s '%s'",task->GetName(),task->GetTitle());
AliRsnMiniAnalysisTask *rsnMiniTask = (AliRsnMiniAnalysisTask *)task;
rsnMiniTask->Print();
} else if (task->IsA() == AliRsnAnalysisTask::Class()) {
Printf(" Task [RSN-----] : %s '%s'",task->GetName(),task->GetTitle());
AliRsnAnalysisTask *rsnTask = (AliRsnAnalysisTask *)task;
rsnTask->Print();
AliVEventHandler *ih = mgr->GetInputEventHandler();
if (ih == AliMultiInputEventHandler::Class()) {
AliMultiInputEventHandler *ihMulti = (AliMultiInputEventHandler *) ih;
TIter nextIH(ihMulti->InputEventHandlers());
AliRsnInputHandler *rsnIH = 0;
while ((ih = (AliVEventHandler *) nextIH())) {
if (ih->IsA() == AliRsnInputHandler::Class()) {
rsnIH = ih;
AliRsnDaughterSelector *ds = rsnIH->GetSelector();
ds->Print();
}
}
}
} else {
Printf(" Task [--------] : %s '%s'",task->GetName(),task->GetTitle());
}
}
}