Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #22071

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions PWGLF/RESONANCES/extra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(SRCS
AliAnalysisTaskEffMatrix.cxx
RESOSA/AliAnalysisTaskPhiSA.cxx
RESOSA/AliAnalysisTaskPhiSAR.cxx
RESOSA/Aliresonance.cxx
AliAnalysisTaskPhiCount.cxx
AliAnalysisTask_Phi_MC.cxx
AliAnalysisTaskAODTrackPairUtils.cxx
Expand Down
3 changes: 2 additions & 1 deletion PWGLF/RESONANCES/extra/PWGLFrsnextraLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#pragma link C++ class AliAnalysisTaskAODTrackPair+;
#pragma link C++ class AliAnalysisTaskAODTrackPairMC+;
#pragma link C++ class AliAnalysisTaskResonanceDP+;

#pragma link C++ class AliAnalysisTaskPhiSAR.cxx;
#pragma link C++ class Aliresonance.cxx

#endif
49 changes: 49 additions & 0 deletions PWGLF/RESONANCES/extra/RESOSA/AddTaskAliresonance.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

void AddTaskAliresonance(const char *suffix = "Resochrg")

{
// standard with task
printf("===================================================================================\n");
printf("\n PID: Initialising AliAnalysisTaskResoPU \n");
printf("===================================================================================\n");

TGrid::Connect("alien://");

AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
TString outfileName = AliAnalysisManager::GetCommonFileName();
AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer(); // AOD event


TString list1OutName = outfileName; // common outfile filename
list1OutName += ":Results"; // This directory contains result histograms

Int_t gCentMin = 0;
Int_t gCentMax = 100;

TString TaskResoPID;
TaskResoPID.Form("gTaskResoCent%d_%d_%s", gCentMin, gCentMax, suffix);

Aliresonance *task_Reso = new Aliresonance(TaskResoPID);

//task_Reso->SelectCollisionCandidates(AliVEvent::kINT7); // default is kINT7
//printf("\n =========> AddTaskReso::Info() Trigger = kINT7 \n");


///---> Now Pass data and containers to Analysis Object ----

mgr->AddTask(task_Reso); // connect the task to the analysis manager
mgr->ConnectInput(task_Reso, 0, cinput); // give AOD event to my Task..!!


AliAnalysisDataContainer *cOutPut1;
TString sMyOutName;
sMyOutName.Form("SimpleTask_%s",suffix);

cOutPut1 = (AliAnalysisDataContainer *) mgr->CreateContainer(sMyOutName,TList::Class(),AliAnalysisManager::kOutputContainer,list1OutName.Data());
mgr->ConnectOutput(task_Reso, 1, cOutPut1);


printf("\n\n ================> AddTaskReso() Configured properly <==================\n\n");


}
Loading