Separate library for pi0 calibration.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Jul 2009 10:24:03 +0000 (10:24 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Jul 2009 10:24:03 +0000 (10:24 +0000)
PHOS/PHOSpi0CalibLinkDef.h [new file with mode: 0644]
PHOS/libPHOSpi0Calib.pkg [new file with mode: 0644]
PHOS/macros/pi0Calib/AliAnalysisTaskPi0CalibSelection.cxx
PHOS/macros/pi0Calib/AliAnalysisTaskPi0CalibSelection.h

diff --git a/PHOS/PHOSpi0CalibLinkDef.h b/PHOS/PHOSpi0CalibLinkDef.h
new file mode 100644 (file)
index 0000000..5743fab
--- /dev/null
@@ -0,0 +1,9 @@
+#ifdef __CINT__
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliAnalysisTaskPi0CalibSelection;
+
+#endif
diff --git a/PHOS/libPHOSpi0Calib.pkg b/PHOS/libPHOSpi0Calib.pkg
new file mode 100644 (file)
index 0000000..d8b92ec
--- /dev/null
@@ -0,0 +1,12 @@
+#-*- Mode: Makefile -*-
+
+SRCS          =  macros/pi0Calib/AliAnalysisTaskPi0CalibSelection.cxx  
+
+HDRS:= $(SRCS:.cxx=.h) 
+
+DHDR= PHOSpi0CalibLinkDef.h
+
+ifeq (win32gcc,$(ALICE_TARGET))
+PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) \
+                         -L$(shell root-config --libdir) -lGeom 
+endif
index 97a110d..cca8a2c 100644 (file)
  **************************************************************************/
 
 //---------------------------------------------------------------------------// 
-// Fill histograms with two-cluster invariant mass                           //
+//                                                                           //
+// Fill histograms (one per cell) with two-cluster invariant mass            //
 // using calibration coefficients of the previous iteration.                 //
+// Histogram for a given cell is filled if the most energy of one cluster    //
+// is deposited in this cell and the other cluster could be anywhere in PHOS.//
+//                                                                           //
 //---------------------------------------------------------------------------//
 
 #include "AliAnalysisTaskPi0CalibSelection.h"
 #include "AliCDBEntry.h"
 #include "AliCDBManager.h"
 #include "AliESDEvent.h"
-#include "AliESDCaloCluster.h"
-#include "AliESDCaloCells.h"
 #include "AliPHOSPIDv1.h"
-#include "AliPHOSRecoParam.h"
 #include "AliPHOSEsdCluster.h"
-#include "AliPHOSGeometry.h"
 #include "AliPHOSGeoUtils.h"
 #include "AliPHOSCalibData.h"
 #include "AliPHOSReconstructor.h"
 #include "AliPHOSPIDv1.h"
 #include "TRefArray.h"
 #include "TList.h"
-#include "TH1.h"
 
 ClassImp(AliAnalysisTaskPi0CalibSelection)
 
@@ -44,6 +43,8 @@ AliAnalysisTaskPi0CalibSelection::AliAnalysisTaskPi0CalibSelection() :
 AliAnalysisTaskSE(),fOutputContainer(0x0),fRecoParam(0x0),fPhosGeo(0x0),fHmgg(0x0),
   fEmin(0.)
 {
+  //Default constructor.
+
   for(Int_t iMod=0; iMod<5; iMod++) {
     for(Int_t iX=0; iX<64; iX++) {
       for(Int_t iZ=0; iZ<56; iZ++) {
@@ -58,8 +59,10 @@ AliAnalysisTaskPi0CalibSelection::AliAnalysisTaskPi0CalibSelection(const char* n
   AliAnalysisTaskSE(name),fOutputContainer(0x0),fRecoParam(0x0),fPhosGeo(0x0),fHmgg(0x0),
   fEmin(0.)
 {
+  //Named constructor which should be used.
+  
   DefineOutput(1,TList::Class());
-
+  
   for(Int_t iMod=0; iMod<5; iMod++) {
     for(Int_t iX=0; iX<64; iX++) {
       for(Int_t iZ=0; iZ<56; iZ++) {
@@ -72,9 +75,10 @@ AliAnalysisTaskPi0CalibSelection::AliAnalysisTaskPi0CalibSelection(const char* n
 
 AliAnalysisTaskPi0CalibSelection::~AliAnalysisTaskPi0CalibSelection()
 {
+  //Destructor.
   
   if(fOutputContainer){
-    fOutputContainer->Clear() ; 
+    fOutputContainer->Delete() ; 
     delete fOutputContainer ;
   }
 }
@@ -235,6 +239,8 @@ void AliAnalysisTaskPi0CalibSelection::UserExec(Option_t* /* option */)
 
 void AliAnalysisTaskPi0CalibSelection::MaxEnergyCellPos(AliESDCaloCells *cells, AliESDCaloCluster* clu, Int_t& maxId)
 {
+  //For a given CaloCluster calculates the absId of the cell 
+  //with maximum energy deposit.
   
   Double_t eMax = -111;
   
index 64c828f..e7a1fd9 100644 (file)
 
 
 #include "AliAnalysisTaskSE.h"
-
-class TH1F;
-class AliPHOSRecoParam;
-class AliPHOSGeometry; 
-class AliESDCaloCluster;
-class AliESDCaloCells;
+#include "AliPHOSRecoParam.h"
+#include "AliPHOSGeometry.h"
+#include "AliESDCaloCluster.h"
+#include "AliESDCaloCells.h"
+#include "TH1.h"
 
 class AliAnalysisTaskPi0CalibSelection : public AliAnalysisTaskSE
 {