Skip to content

Commit

Permalink
Merge pull request #22334 from aortizve/master
Browse files Browse the repository at this point in the history
task to produce MC gen plots
  • Loading branch information
alibuild authored Jun 2, 2023
2 parents 8967945 + 6ff41fe commit 0155883
Show file tree
Hide file tree
Showing 5 changed files with 1,010 additions and 0 deletions.
1 change: 1 addition & 0 deletions PWGMM/UE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ set(SRCS
UeKNO/AliAnalysisTaskGenMcKno.cxx
UeKNO/AliAnalysisTaskGenUeNchTS.cxx
UeKNO/AliAnalysisTaskFlatenicity.cxx
UeKNO/AliAnalysisTaskFlatenicityMCpred.cxx
UeMpi/AliAnalysisTaskMpiUE.cxx
Flatenicity/AliAnalysisTaskSpectraFlatenicity.cxx
FlatenicityPiKp/AliAnalysisTaskFlatenicityPiKp.cxx
Expand Down
1 change: 1 addition & 0 deletions PWGMM/UE/PWGMMueLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#pragma link C++ class AliAnalysisTaskGenMcKno+;
#pragma link C++ class AliAnalysisTaskGenUeNchTS+;
#pragma link C++ class AliAnalysisTaskFlatenicity+;
#pragma link C++ class AliAnalysisTaskFlatenicityMCpred+;
#pragma link C++ class AliAnalysisTaskMpiUE+;
#pragma link C++ class AliAnalysisTaskSpectraFlatenicity+;
#pragma link C++ class AliAnalysisTaskFlatenicityPiKp+;
Expand Down
41 changes: 41 additions & 0 deletions PWGMM/UE/UeKNO/AddTaskFlatenicityMCpred.C
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;
}
Loading

0 comments on commit 0155883

Please sign in to comment.