11 ::Error(
"AddTaskVertexingHF",
"No analysis manager to connect to.");
18 TString type = mgr->GetInputEventHandler()->GetDataType();
19 if (!type.Contains(
"ESD") && !type.Contains(
"AOD")) {
20 ::Error(
"AddTaskVertexingHF",
"HF vertexing task needs the manager to have an ESD or AOD input handler.");
24 AliAODHandler *aodh = (AliAODHandler*)mgr->GetOutputEventHandler();
26 ::Error(
"AddTaskVertexingHF",
"HF vertexing task needs the manager to have an AOD output handler.");
30 if(configfilename.IsNull()){
31 TString configPWG3d2h=
"$ALICE_PHYSICS/PWGHF/vertexingHF/ConfigVertexingHF.C";
32 if(collisionSystem==1){
33 configPWG3d2h=
"$ALICE_PHYSICS/PWGHF/vertexingHF/ConfigVertexingHF_Pb_AllCent_NoLS_PIDLc_PtDepSel_LooseIP.C";
35 else if(collisionSystem!=0){
36 ::Error(
"AddTaskVertexingHF",
"Value of collision system not valid");
38 TFile::Cp(
gSystem->ExpandPathName(configPWG3d2h.Data()), Form(
"%s/ConfigVertexingHF.C", localdir.Data()));
41 TFile::Cp(
gSystem->ExpandPathName(configfilename.Data()), Form(
"%s/ConfigVertexingHF.C", localdir.Data()));
52 AliAnalysisDataContainer *coutputListOfCuts = mgr->CreateContainer(
"ListOfCuts",TList::Class(),AliAnalysisManager::kOutputContainer,hfTask->
GetDeltaAODFileName());
54 mgr->ConnectInput(hfTask,0,mgr->GetCommonInputContainer());
55 mgr->ConnectOutput(hfTask,0,mgr->GetCommonOutputContainer());
56 mgr->ConnectOutput(hfTask,1,coutputListOfCuts);
AliAnalysisTaskSEVertexingHF * AddTaskVertexingHF(Int_t collisionSystem, TString localdir="", TString configfilename="", Int_t runnumber=-1, TString strPeriod="", const char *fname="AliAOD.VertexingHF.root")
void SetDeltaAODFileName(const char *name)
const char * GetDeltaAODFileName() const