-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22334 from aortizve/master
task to produce MC gen plots
- Loading branch information
Showing
5 changed files
with
1,010 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/////////////////////////////////////////////////////////////////// | ||
// // | ||
// AddTaskFlatenicityMCpred macro // | ||
// // | ||
/////////////////////////////////////////////////////////////////// | ||
class AliAnalysisDataContainer; | ||
|
||
AliAnalysisTaskFlatenicityMCpred * | ||
AddTaskFlatenicityMCpred(const char *taskname = "Flat") | ||
|
||
{ | ||
// get the manager via the static access member. since it's static, you don't | ||
// need an instance of the class to call the function | ||
|
||
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | ||
if (!mgr) { | ||
return 0x0; | ||
} | ||
// get the input event handler this handler is part of the managing system and | ||
// feeds events to your task | ||
if (!mgr->GetInputEventHandler()) { | ||
return 0x0; | ||
} | ||
|
||
// now you create an instance of your task | ||
AliAnalysisTaskFlatenicityMCpred *taskFlat = | ||
new AliAnalysisTaskFlatenicityMCpred("taskFlat"); | ||
if (!taskFlat) | ||
return 0x0; | ||
mgr->AddTask(taskFlat); | ||
|
||
mgr->ConnectInput(taskFlat, 0, mgr->GetCommonInputContainer()); | ||
mgr->ConnectOutput( | ||
taskFlat, 1, | ||
mgr->CreateContainer( | ||
Form("cList%s", taskname), TList::Class(), | ||
AliAnalysisManager::kOutputContainer, | ||
Form("%s:%s", AliAnalysisManager::GetCommonFileName(), taskname))); | ||
|
||
return taskFlat; | ||
} |
Oops, something went wrong.