X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PWGCF%2FFEMTOSCOPY%2Fmacros%2FTrain%2FKchHBT086%2FAddTaskFemtoKchHBT086.C;fp=PWGCF%2FFEMTOSCOPY%2Fmacros%2FTrain%2FKchHBT086%2FAddTaskFemtoKchHBT086.C;h=0000000000000000000000000000000000000000;hp=1f8c680888fbbf46761a5b999fe6ba2f27ffbbe9;hb=c627660e3ea095ed462f5ce4ad36a184f40e0dd7;hpb=d85f6819269447083582dbf4349395fe419ff1f5 diff --git a/PWGCF/FEMTOSCOPY/macros/Train/KchHBT086/AddTaskFemtoKchHBT086.C b/PWGCF/FEMTOSCOPY/macros/Train/KchHBT086/AddTaskFemtoKchHBT086.C deleted file mode 100644 index 1f8c680888f..00000000000 --- a/PWGCF/FEMTOSCOPY/macros/Train/KchHBT086/AddTaskFemtoKchHBT086.C +++ /dev/null @@ -1,85 +0,0 @@ -//============================================================================= -// -// *** AddTaskFemto.C *** -// ---train version --- -// This macro initialize a complete AnalysisTask object for femtoscopy. -// from: -// alicepc100/cern/users/erogocha/PbPb2.76/2011/AOD115_0-10_newPID/to_alien_newtag/AddTaskFemto.C -// ---modified to train--- -// KM: March 25, 2013 -//============================================================================= - -//this line for local: AliAnalysisTaskFemto *AddTaskFemtoKchHBT(const char *configMacroName="ConfigFemtoAnalysis.C", const char *configMacroParameters="" ) - -AliAnalysisTaskFemto *AddTaskFemtoKchHBT086(TString configMacroName, const char *containerName="femtolist", const char *configMacroParameters="" ) -{ -// Creates a proton analysis task and adds it to the analysis manager. - - // A. Get the pointer to the existing analysis manager via the static access method. - //============================================================================== - AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); - if (!mgr) { - Error("AddTaskFemto", "No analysis manager to connect to."); - return NULL; - } - - // B. Check the analysis type using the event handlers connected to the analysis - // manager. The availability of MC handler cann also be checked here. - //============================================================================== - if (!mgr->GetInputEventHandler()) { - ::Error("AddTaskFemto", "This task requires an input event handler"); - return NULL; - } - TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD" - cout << "Found " <SetIncludePath("-I$ROOTSYS/include -I./PWG2AOD/AOD -I./PWG2femtoscopy/FEMTOSCOPY/AliFemto -I./PWG2femtoscopyUser/FEMTOSCOPY/AliFemtoUser -I$ALICE_ROOT/include"); - - if (TProofMgr::GetListOfManagers()->GetEntries()) { -// if (dynamic_cast gProof) { -// char *macrocommand[10000]; -// sprintf(macrocommand, ".L %s", configMacroName); -// gProof->Exec(macrocommand); -// } -// else - gProof->Load(configMacroName); - } - // gROOT->LoadMacro("ConfigFemtoAnalysis.C++"); - - //was before aliroot 5.04.33: AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto",configMacroName); - // AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto",configMacroName,kFALSE); - //--------------------------------------------------------------------------------- - //April 2013: - //to check localy before new tag I did symbolic link on my laplot - //in $ALICE_ROOT/PWGCF/FEMTOSCOPY/macros/Train/ - //$ su- - //# cd $ALICE_ROOT/PWGCF/FEMTOSCOPY/macros/Train/ - //# pwd - // /opt/cern/alice/aliroot-an/5.04.47/PWGCF/FEMTOSCOPY/macros/Train - //[root@alicethinks Train]# ln -s /scratch/AliWork/PbPb2.76/Train2013_AOD086/KchHBT086 KchHBT086 - //--------------------------------------------------------------------------------- - AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto","$ALICE_ROOT/"+configMacroName,configMacroParameters,kFALSE); - taskfemto->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral);// Keep this line to AOD086 despite MB trigger for the MB was in AOD086 only. - mgr->AddTask(taskfemto); - - // D. Configure the analysis task. Extra parameters can be used via optional - // arguments of the AddTaskXXX() function. - //=========================================================================== - - // E. Create ONLY the output containers for the data produced by the task. - // Get and connect other common input/output containers via the manager as below - //============================================================================== - TString outputfile = AliAnalysisManager::GetCommonFileName(); - outputfile += ":PWG2FEMTO"; - AliAnalysisDataContainer *cout_femto = mgr->CreateContainer("femtolist", TList::Class(), - AliAnalysisManager::kOutputContainer,outputfile); - - - mgr->ConnectInput(taskfemto, 0, mgr->GetCommonInputContainer()); - mgr->ConnectOutput(taskfemto, 0, cout_femto); - - // Return task pointer at the end - return taskfemto; -}