X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PWGLF%2FSTRANGENESS%2FLambdaK0%2Fmacros%2FAddTaskExtractPerformanceV0.C;fp=PWGLF%2FSTRANGENESS%2FLambdaK0%2Fmacros%2FAddTaskExtractPerformanceV0.C;h=0000000000000000000000000000000000000000;hb=c627660e3ea095ed462f5ce4ad36a184f40e0dd7;hp=1a8651e20c299783f4ef316c3459ca4fde75f94a;hpb=d85f6819269447083582dbf4349395fe419ff1f5;p=u%2Fmrichter%2FAliRoot.git diff --git a/PWGLF/STRANGENESS/LambdaK0/macros/AddTaskExtractPerformanceV0.C b/PWGLF/STRANGENESS/LambdaK0/macros/AddTaskExtractPerformanceV0.C deleted file mode 100644 index 1a8651e20c2..00000000000 --- a/PWGLF/STRANGENESS/LambdaK0/macros/AddTaskExtractPerformanceV0.C +++ /dev/null @@ -1,63 +0,0 @@ -AliAnalysisTaskExtractPerformanceV0 *AddTaskExtractPerformanceV0( Bool_t lSwitchIsNuclear = kFALSE, - Bool_t lSwitchINT7 = kFALSE, - Bool_t lSwitchUseOnTheFly = kFALSE, - Bool_t lSwitchTakeAllTracks = kFALSE, - const TString lMasterJobSessionFlag = "") -{ -// Creates, configures and attaches to the train a cascades check task. - // Get the pointer to the existing analysis manager via the static access method. - //============================================================================== - AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); - if (!mgr) { - ::Error("AddTaskExtractPerformanceV0", "No analysis manager to connect to."); - return NULL; - } - - // Check the analysis type using the event handlers connected to the analysis manager. - //============================================================================== - if (!mgr->GetInputEventHandler()) { - ::Error("AddTaskExtractPerformanceV0", "This task requires an input event handler"); - return NULL; - } - TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD" - - // Create and configure the task - AliAnalysisTaskExtractPerformanceV0 *taskv0extractperformance = new AliAnalysisTaskExtractPerformanceV0("taskv0extractperformance"); - - //Configuration - taskv0extractperformance -> SetIsNuclear ( lSwitchIsNuclear ); - taskv0extractperformance -> SetINT7Trigger ( lSwitchINT7 ); - taskv0extractperformance -> SetUseOnTheFly ( lSwitchUseOnTheFly ); - taskv0extractperformance -> SetTakeAllTracks ( lSwitchTakeAllTracks ); - - mgr->AddTask(taskv0extractperformance); - - TString outputFileName = AliAnalysisManager::GetCommonFileName(); - - outputFileName += ":PWGLFExtractPerformanceV0"; - //if (lSwitchIsNuclear) outputFileName += "_AA"; - outputFileName += "_PP"; - if (mgr->GetMCtruthEventHandler()) outputFileName += "_MC"; - //if(lMasterJobSessionFlag.Length()) outputFileName += lMasterJobSessionFlag.Data(); - - Printf("Set OutputFileName : \n %s\n", outputFileName.Data() ); - - AliAnalysisDataContainer *coutputList = mgr->CreateContainer("clistV0MC", - TList::Class(), - AliAnalysisManager::kOutputContainer, - outputFileName ); - AliAnalysisDataContainer *coutputTree = mgr->CreateContainer("cTreeMC", - TTree::Class(), - AliAnalysisManager::kOutputContainer, - outputFileName ); - - //This one you should merge in file-resident ways... - coutputTree->SetSpecialOutput(); - - //Recommendation: Tree as a single output slot - mgr->ConnectInput( taskv0extractperformance, 0, mgr->GetCommonInputContainer()); - mgr->ConnectOutput(taskv0extractperformance, 1, coutputList); - mgr->ConnectOutput(taskv0extractperformance, 2, coutputTree); - - return taskv0extractperformance; -}