]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSAnalyze.h
position of the particle initiating the hit in PHOS
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyze.h
index 2b702492e76e3f65d33b7156069e2ab20d8f61c0..70e20bb34887191f8764b4d312e2519b3cdcc140 100644 (file)
@@ -5,12 +5,12 @@
 
 /* $Id$ */
 
-////////////////////////////////////////////////
-//  Algorythm class to analyze PHOS events    //
-//  Yves Schutz            SUBATECH           //
-//                                            //  
-//                                            //
-////////////////////////////////////////////////
+//_________________________________________________________________________
+// Algorythm class to analyze PHOSv1 events:
+// Construct histograms and displays them.
+// Use the macro EditorBar.C for best access to the functionnalities
+//*--
+//*-- Author : Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
 
 
 // --- AliRoot header files ---
 
-#include "AliPHOSv0.h"
+#include "AliPHOSv1.h"
 #include "AliPHOSGeometry.h"
 #include "AliPHOSPID.h"
+#include "AliPHOSIndexToObject.h"
 
 class AliPHOSAnalyze : public TObject {
 
@@ -32,51 +33,110 @@ public:
 
   AliPHOSAnalyze() ;              // ctor
   AliPHOSAnalyze(Text_t * name) ; // ctor
+  AliPHOSAnalyze(const AliPHOSAnalyze & ana) ; // cpy ctor                   
   virtual ~AliPHOSAnalyze() ;     // dtor
 
-  void AnalyzeOneEvent(Int_t evt = -999) ;  // analyzes a single event ;
-  void AnalyzeManyEvents(Int_t Nevtents = 100, Int_t Module=0) ;  // analyzes many events   ;
+  void DrawRecon(Int_t Nevent= 0,Int_t Nmod = 1) ;  // draws positions of entering and 
+                                                    //reconstructed points in PHOS plain
+  void AnalyzeResolutions (Int_t Nevents) ; // analyzes Energy and Position resolutions   ;
+  void ReadAndPrintEMC(Int_t EvFirst=0, Int_t EvLast=0); // Read & print generated and reconstructed hits in EMC
+  void ReadAndPrintCPV(Int_t EvFirst=0, Int_t EvLast=0); // Read & print generated and reconstructed hits in CPV
+  void AnalyzeCPV(Int_t Nevents);           // analyzes various CPV characteristics
+  void AnalyzeEMC(Int_t Nevents);           // analyzes EMC resolution
+  void InvariantMass(Int_t Nevents = 100) ; 
+  void Reconstruct(Int_t Nevtents = 100,Int_t FirstEvent = 0) ;
   void BookingHistograms() ;                // booking histograms for the ManyEvent analysis ;
-  Bool_t Init(Int_t evt) ;                  // does various initialisations
-  void DisplayKineEvent(Int_t evt = -999) ; // displays the Kine events in ALICE coordinate 
-  void DisplayRecParticles() ;              // displays RecParticles in ALICE coordinate  
-  void DisplayRecPoints() ;                 // displays RecPoints in module coordinate  
-  void DisplayTrackSegments() ;             // displays TrackSegments in module coordinate  
+  void BookResolutionHistograms() ;         // booking histograms for the Resoluion analysis ;
+  void Copy(TObject & obj) ;                // copies an analysis into an other one   
+  Float_t CorrectEnergy(Float_t ERecPart) ;   //Corrects reconstracted energy
   Bool_t OpenRootFile(Text_t * name) ;      // opens the root file
-  void SavingHistograms() ;                 // Save histograms in a root file
+  void SaveHistograms() ;                   // Save histograms in a root file
+  void ResetHistograms() ;                  // 
+  AliPHOSAnalyze & operator = (const AliPHOSAnalyze & rvalue)  {
+    // assignement operator requested by coding convention
+    // but not needed
+    assert(0==1) ;
+    return *this ; 
+  }
+  void SetDebugLevel(Int_t flag) { fDebugLevel = flag; }
  
-private:
+ private:
   
-  AliPHOSClusterizer * fClu ;       // a clusterizer 
-  Int_t fEvt ;                      // the evt number being processed 
-  AliPHOSGeometry * fGeom;          // the PHOS Geometry object
-  AliPHOSv0 * fPHOS ;               // the PHOS object from the root file 
-  AliPHOSPID * fPID ;               // a particle identifier
-  AliPHOSReconstructioner * fRec ;  // a reconstructioner  
-  TFile * fRootFile ;               // the root file that contains the data
-  AliPHOSTrackSegmentMaker * fTrs ; // a tracksegmentmaker ;
-  TH1F * fhEmcDigit        ;   // Histo of digit energies in the Emc 
-  TH1F * fhVetoDigit       ;   // Histo of digit energies in the Veto 
-  TH1F * fhConvertorDigit  ;   // Histo of digit energies in the Convertor
-  TH1F * fhEmcCluster      ;   // Histo of Cluster energies in Emc
-  TH1F * fhVetoCluster     ;   // Histo of Cluster energies in Veto
-  TH1F * fhConvertorCluster;   // Histo of Cluster energies in Convertor
-  TH2F * fhConvertorEmc    ;   // 2d Convertor versus Emc energies
-  TH1F * fhPhotonEnergy    ;   // Spectrum of detected photons
-  TH1F * fhElectronEnergy  ;   // Spectrum of detected electrons
-  TH1F * fhNeutronEnergy   ;   // Spectrum of detected neutrals
-  TH1F * fhChargedHadronEnergy   ;   // Spectrum of detected charged
-  TH1F * fhPhotonPositionX ;   // X distribution of detected photons
-  TH1F * fhElectronPositionX ; // X distribution of detected electrons
-  TH1F * fhNeutronPositionX  ; // X distribution of detected neutrals
-  TH1F * fhChargedHadronPositionX  ; // X distribution of detected charged
-  TH1F * fhPhotonPositionY   ; // Y distribution of detected photons
-  TH1F * fhElectronPositionY ; // Y distribution of detected electrons
-  TH1F * fhNeutronPositionY  ; // Y distribution of detected neutrals
-  TH1F * fhChargedHadronPositionY  ; // Y distribution of detected charged
-
-
-ClassDef(AliPHOSAnalyze,1)  // PHOS event analyzis , version 1
+  AliPHOSClusterizer * fClu ;         // a clusterizer 
+  Int_t fEvt ;                        // the evt number being processed 
+  AliPHOSGeometry * fGeom ;           // the PHOS Geometry object
+  AliPHOSIndexToObject * fObjGetter ; // provides methods to retrieve objects from their index in a list
+  AliPHOSv1 * fPHOS ;                 // the PHOS object from the root file 
+  AliPHOSPID * fPID ;                 // a particle identifier
+  AliPHOSReconstructioner * fRec ;    // a reconstructioner  
+  TFile * fRootFile ;                 // the root file that contains the data
+  AliPHOSTrackSegmentMaker * fTrs ;   // a tracksegmentmaker ;
+
+  Int_t fDebugLevel;                  // debug level for analysis
+
+  TH2F * fhEnergyCorrelations ;     //Energy correlations between Eloss in Convertor and PPSD(2)
+
+
+  TH1F * fhEmcDigit ;               // Histo of digit energies in the Emc 
+  TH1F * fhVetoDigit ;              // Histo of digit energies in the Veto 
+  TH1F * fhConvertorDigit ;         // Histo of digit energies in the Convertor
+  TH1F * fhEmcCluster ;             // Histo of Cluster energies in Emc
+  TH1F * fhVetoCluster ;            // Histo of Cluster energies in Veto
+  TH1F * fhConvertorCluster ;       // Histo of Cluster energies in Convertor
+  TH2F * fhConvertorEmc ;           // 2d Convertor versus Emc energies
+
+  TH2F * fhAllEnergy ;       // Spectrum of detected photons with photon primary
+  TH2F * fhPhotEnergy ;      // Total spectrum of detected photons
+  TH2F * fhEMEnergy ;        // Spectrum of detected neutral EM with EM primary
+  TH2F * fhPPSDEnergy ;      // Spectrum of particles detected in PPSD with primary particle 
+
+  TH2F * fhAllPosition ;     // Position Resolution of  photons with photon primary
+  TH2F * fhPhotPosition ;    // Position Resolution of  photons
+  TH2F * fhEMPosition ;      // Position Resolution of neutral EM with EM primary
+  TH2F * fhPPSDPosition ;    // Position Resolution of neutral EM
+
+  TH1F * fhAllPositionX ;    // X-Position Resolution of  photons with photon primary
+  TH1F * fhAllPositionZ ;    // Z-Position Resolution of  photons with photon primary
+
+  TH1F * fhPhotonPositionY ;        // Y distribution of detected photons
+  TH1F * fhElectronPositionY ;      // Y distribution of detected electrons
+  TH1F * fhNeutralHadronPositionY ; // Y distribution of detected neutral hadron
+  TH1F * fhNeutralEMPositionY ;     // Y distribution of detected neutral EM
+  TH1F * fhChargedHadronPositionY ; // Y distribution of detected charged
+  TH1F * fhPhotonHadronPositionY ;  // Y distribution of detected Photon-Hadron
+
+  TH1F * fhPhotReg ;          
+  TH1F * fhAllReg ;          
+  TH1F * fhNReg ;          
+  TH1F * fhNBarReg ;          
+  TH1F * fhChargedReg ;          
+  TH1F * fhPhotEM ;          
+  TH1F * fhAllEM ;          
+  TH1F * fhNEM ;          
+  TH1F * fhNBarEM ;          
+  TH1F * fhChargedEM ;          
+  TH1F * fhPhotPPSD ;          
+  TH1F * fhAllPPSD ;          
+  TH1F * fhNPPSD ;          
+  TH1F * fhNBarPPSD ;          
+  TH1F * fhChargedPPSD ;          
+
+  TH1F * fhPrimary ;          
+  TH1F * fhAllRP ;
+  TH1F * fhPPSD ;
+  TH1F * fhShape ;
+  TH1F * fhVeto ;
+
+  TH1F * fhPhotPhot ;
+  TH1F * fhPhotElec ;
+  TH1F * fhPhotNeuH ;
+  TH1F * fhPhotNuEM ; 
+  TH1F * fhPhotChHa ;
+  TH1F * fhPhotGaHa ;
+
+
+
+ClassDef(AliPHOSAnalyze,1)  // PHOSv1 event analyzis algorithm
 
 };