Putting output ntuples as SpecialOuput (needed to run on CAF)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Aug 2009 13:33:48 +0000 (13:33 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Aug 2009 13:33:48 +0000 (13:33 +0000)
PWG3/vertexingHF/AddTaskCompareHF.C
PWG3/vertexingHF/AddTaskDplus.C
PWG3/vertexingHF/AliAnalysisTaskSECompareHF.cxx
PWG3/vertexingHF/AliAnalysisTaskSEDplus.cxx

index fc21f87cae50af1e616f7a887517359a255141d2..152e91ba164dabd32ff81c7aeead77a62a60515e 100644 (file)
@@ -30,7 +30,8 @@ AliAnalysisTaskSECompareHF *AddTaskCompareHF()
                                                           "CmpHF.root");\r
   AliAnalysisDataContainer *coutputCmp2 = mgr->CreateContainer("coutputCmp2",TNtuple::Class(),\r
                                                           AliAnalysisManager::kOutputContainer, \r
-                                                          "CmpHF.root");\r
+                                                          "CmpHFnt.root");\r
+  coutputCmp2->SetSpecialOutput();\r
 \r
   mgr->ConnectInput(hfTask,0,mgr->GetCommonInputContainer());\r
 \r
index f494264ba869bd6e16e6ecbd973e1ce736baa3f0..8c82e8300505678465e8541059831c4f2eb4539f 100644 (file)
@@ -30,10 +30,13 @@ AliAnalysisTaskSEDplus *AddTaskDplus()
                                                            "InvMassDplus.root");
   AliAnalysisDataContainer *coutputDplus2 = mgr->CreateContainer("coutputDplus2",TNtuple::Class(),
                                                            AliAnalysisManager::kOutputContainer,
-                                                                "InvMassDplus.root");
+                                                                "InvMassDplus_nt1.root");
   AliAnalysisDataContainer *coutputDplus3 = mgr->CreateContainer("coutputDplus3",TNtuple::Class(),
                                                            AliAnalysisManager::kOutputContainer,
-                                                                "InvMassDplus.root");
+                                                                "InvMassDplus_nt2.root");
+  coutputDplus2->SetSpecialOutput();
+  coutputDplus3->SetSpecialOutput();
+
   mgr->ConnectInput(dplusTask,0,mgr->GetCommonInputContainer());
 
   mgr->ConnectOutput(dplusTask,1,coutputDplus);
index 2601aca43cc59cc025e810b21c3c912101a2b951..49ac038822f9301018c632b3a37a168cddfd5721 100644 (file)
@@ -122,6 +122,7 @@ void AliAnalysisTaskSECompareHF::UserCreateOutputObjects()
   fHistNEvents->SetMinimum(0);
   fOutput->Add(fHistNEvents);
 
+  OpenFile(2); // 2 is the slot number of the ntuple
   fNtupleCmp = new TNtuple("fNtupleCmp","Charm comparison","pdg:nprongs:VxRec:VxTrue:ErrVx:VyRec:VyTrue:ErrVy:VzRec:VzTrue:ErrVz:Chi2toNDF:PtRec:Mrec:CPta:Prodd0");
 
   return;
index 694d966bc244c021bc44fde29649a427a36cafd3..584336f86f8884f9bba436febb8c75cb12b3f640 100644 (file)
@@ -131,8 +131,9 @@ void AliAnalysisTaskSEDplus::UserCreateOutputObjects()
   fOutput->Add(fHistSignal);
   fOutput->Add(fHistBackground);
   
-
+  OpenFile(2); // 2 is the slot number of the ntuple
   fNtupleDplus = new TNtuple("fNtupleDplus","D +","pdg:Px:Py:Pz:Ptpi:PtK:Ptpi2:PtRec:PtTrue:PointingAngle:DecLeng:VxTrue:VxRec:VyRec,VzRec,InvMass:sigvert:d0Pi:d0K:d0Pi2");
+  OpenFile(3); // 3 is the slot number of the ntuple
   fNtupleDplusbackg = new TNtuple("fNtupleDplusbackg","D + backg","Ptpibkg:Ptkbkg:Ptpi2bkg:PtRecbkg:PointingAnglebkg:DLbkg:VxRecbkg:VyRecbkg:VzRecbkg:InvMassbkg:sigvertbkg:d0Pibkg:d0Kbkg:d0Pi2bkg");
   
   return;