- classes for pT spectra charged hadrons analysis added
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 19 Feb 2012 13:13:29 +0000 (13:13 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 19 Feb 2012 13:13:29 +0000 (13:13 +0000)
A    PWGLF/PWGLFspectraLinkDef.h
A    PWGLF/CMakelibPWGLFspectra.pkg

- modification related to the new AliRoot stucture
M    PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTask.cxx
M    PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtHelper.cxx
M    PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTask.h

- name of the file and event number in the file streamed
M    PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.h
M    PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.cxx

PWGLF/CMakelibPWGLFspectra.pkg [new file with mode: 0644]
PWGLF/PWGLFspectraLinkDef.h [new file with mode: 0644]
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtHelper.cxx
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTask.cxx
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTask.h
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.cxx
PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.h

diff --git a/PWGLF/CMakelibPWGLFspectra.pkg b/PWGLF/CMakelibPWGLFspectra.pkg
new file mode 100644 (file)
index 0000000..2527a43
--- /dev/null
@@ -0,0 +1,52 @@
+# -*- mode: CMake -*-
+#--------------------------------------------------------------------------------#
+# Package File for PWGLFresonances                                                #
+# Author : Johny Jose (johny.jose@cern.ch)                                       #
+# Variables Defined :                                                            #
+#                                                                                #
+# SRCS - C++ source files                                                        #
+# HDRS - C++ header files                                                        #
+# DHDR - ROOT Dictionary Linkdef header file                                     #
+# CSRCS - C source files                                                         #
+# CHDRS - C header files                                                         #
+# EINCLUDE - Include directories                                                 #
+# EDEFINE - Compiler definitions                                                 #
+# ELIBS - Extra libraries to link                                                #
+# ELIBSDIR - Extra library directories                                           #
+# PACKFFLAGS - Fortran compiler flags for package                                #
+# PACKCXXFLAGS - C++ compiler flags for package                                  #
+# PACKCFLAGS - C compiler flags for package                                      #
+# PACKSOFLAGS - Shared library linking flags                                     #
+# PACKLDFLAGS - Module linker flags                                              #
+# PACKBLIBS - Libraries to link (Executables only)                               #
+# EXPORT - Header files to be exported                                           #
+# CINTHDRS - Dictionary header files                                             #
+# CINTAUTOLINK - Set automatic dictionary generation                             #
+# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
+# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
+#--------------------------------------------------------------------------------#
+
+set ( SRCS SPECTRA/ChargedHadrons/dNdPt/AlidNdPtAcceptanceCuts.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtAnalysis.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtAnalysisPbPb.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtBackgroundCuts.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtCorrection.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtCutAnalysis.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtCutAnalysisPbPb.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPt.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtEfficiency.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtEventCuts.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtHelper.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTask.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AliPtResolAnalysis.cxx
+       SPECTRA/ChargedHadrons/dNdPt/AliPtResolAnalysisPbPb.cxx
+ )
+
+string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
+
+set ( DHDR PWGLFspectraLinkDef.h)
+
+set ( EXPORT )
+
+set ( EINCLUDE  PWGLF/SPECTRA/ChargedHadrons/dNdPt TPC PWGUD/base STEER/STEER STEER/ESD STEER/STEERBase)
diff --git a/PWGLF/PWGLFspectraLinkDef.h b/PWGLF/PWGLFspectraLinkDef.h
new file mode 100644 (file)
index 0000000..d3cb24f
--- /dev/null
@@ -0,0 +1,19 @@
+#ifdef __CINT__
+
+#pragma link C++ class AlidNdPtAcceptanceCuts+;
+#pragma link C++ class AlidNdPtAnalysis+;
+#pragma link C++ class AlidNdPtAnalysisPbPb+;
+#pragma link C++ class AlidNdPtBackgroundCuts+;
+#pragma link C++ class AlidNdPtCorrection+;
+#pragma link C++ class AlidNdPtCutAnalysis+;
+#pragma link C++ class AlidNdPtCutAnalysisPbPb+;
+#pragma link C++ class AlidNdPt+;
+#pragma link C++ class AlidNdPtEfficiency+;
+#pragma link C++ class AlidNdPtEventCuts+;
+#pragma link C++ class AlidNdPtHelper+;
+#pragma link C++ class AlidNdPtTask+;
+#pragma link C++ class AlidNdPtTrackDumpTask+;
+#pragma link C++ class AliPtResolAnalysis+;
+#pragma link C++ class AliPtResolAnalysisPbPb+;
+
+#endif
index 88e3a2c..5db5333 100644 (file)
@@ -41,9 +41,9 @@
 #include <AliMathBase.h>
 #include <AliESDtrackCuts.h>
 #include <AliTracker.h>
-#include "dNdPt/AlidNdPtEventCuts.h"
-#include "dNdPt/AlidNdPtAcceptanceCuts.h"
-#include "dNdPt/AlidNdPtHelper.h"
+#include "AlidNdPtEventCuts.h"
+#include "AlidNdPtAcceptanceCuts.h"
+#include "AlidNdPtHelper.h"
 
 //____________________________________________________________________
 ClassImp(AlidNdPtHelper)
index bbf58a8..af919f4 100644 (file)
 \r
 #include "AliESDtrackCuts.h"\r
 #include "AliMCEventHandler.h"\r
-#include "dNdPt/AlidNdPt.h"\r
-#include "dNdPt/AlidNdPtEventCuts.h"\r
-#include "dNdPt/AlidNdPtAcceptanceCuts.h"\r
+#include "AlidNdPt.h"\r
+#include "AlidNdPtEventCuts.h"\r
+#include "AlidNdPtAcceptanceCuts.h"\r
 \r
-#include "dNdPt/AlidNdPtTask.h"\r
+#include "AlidNdPtTask.h"\r
 \r
 using namespace std;\r
 \r
index 0d62c8c..1af6bb1 100644 (file)
@@ -18,7 +18,7 @@ class AlidNdPtCorrection;
 class AliMagFMaps;
 class TList;
 
-#include "dNdPt/AlidNdPtHelper.h"
+#include "AlidNdPtHelper.h"
 #include "AliAnalysisTaskSE.h"
 
 class AlidNdPtTask : public AliAnalysisTaskSE {
index 75ff5f8..cf460ee 100644 (file)
 \r
 #include "AliESDtrackCuts.h"\r
 #include "AliMCEventHandler.h"\r
-#include "dNdPt/AlidNdPt.h"\r
-#include "dNdPt/AlidNdPtEventCuts.h"\r
-#include "dNdPt/AlidNdPtAcceptanceCuts.h"\r
+#include "AlidNdPt.h"\r
+#include "AlidNdPtEventCuts.h"\r
+#include "AlidNdPtAcceptanceCuts.h"\r
 \r
-#include "dNdPt/AlidNdPtTrackDumpTask.h"\r
+#include "AlidNdPtTrackDumpTask.h"\r
 \r
 using namespace std;\r
 \r
@@ -200,7 +200,16 @@ void AlidNdPtTrackDumpTask::Process(AliESDEvent *const esdEvent, AliMCEvent * co
     Printf("ERROR: Could not receive input handler");\r
     return;\r
   }\r
+   \r
+  // get file name\r
+  TTree *chain = (TChain*)GetInputData(0);\r
+  if(!chain) { \r
+    Printf("ERROR: Could not receive input chain");\r
+    return;\r
+  }\r
+  TObjString fileName(chain->GetCurrentFile()->GetName());\r
 \r
+  // trigger\r
   if(evtCuts->IsTriggerRequired())  \r
   {\r
     // always MB\r
@@ -612,12 +621,16 @@ void AlidNdPtTrackDumpTask::Process(AliESDEvent *const esdEvent, AliMCEvent * co
       Double_t bz = esdEvent->GetMagneticField();\r
       Double_t runNumber = esdEvent->GetRunNumber();\r
       Double_t evtTimeStamp = esdEvent->GetTimeStamp();\r
+      Int_t evtNumberInFile = esdEvent->GetEventNumberInFile();\r
+\r
 \r
       //\r
       if(!fTreeSRedirector) return;\r
       (*fTreeSRedirector)<<"dNdPtTree"<<\r
+        "fileName.="<<&fileName<<\r
         "runNumber="<<runNumber<<\r
         "evtTimeStamp="<<evtTimeStamp<<\r
+        "evtNumberInFile="<<evtNumberInFile<<\r
         "Bz="<<bz<<\r
        "vertX="<<vert[0]<<\r
        "vertY="<<vert[1]<<\r
index ef0198e..e1e8406 100644 (file)
@@ -26,7 +26,7 @@ class TTreeSRedirector;
 
 #include "AliTriggerAnalysis.h"
 #include "AliAnalysisTaskSE.h"
-#include "dNdPt/AlidNdPtHelper.h"
+#include "AlidNdPtHelper.h"
 
 class AlidNdPtTrackDumpTask : public AliAnalysisTaskSE {
  public: