removed unused AliPMDRecPoint
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Aug 2004 05:08:15 +0000 (05:08 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Aug 2004 05:08:15 +0000 (05:08 +0000)
PMD/AliPMD.cxx
PMD/AliPMD.h

index 75d57f6d6e4ec4fc29b31b70fa0d2cd7f6dc8bd3..c37f422adffa4226d8bac861ea58b898d15e5982 100644 (file)
 
 #include <TBRIK.h>
 #include <TClonesArray.h>
-#include <TFile.h>
 #include <TGeometry.h>
 #include <TNode.h>
 #include <TTree.h>
 #include <TVirtualMC.h>
 
-#include "AliConst.h" 
 #include "AliLoader.h" 
 #include "AliPMDLoader.h" 
 #include "AliPMD.h"
-#include "AliPMDRecPoint.h"
 #include "AliRun.h"
 #include "AliMC.h"
 #include "AliPMDDigitizer.h"
@@ -67,8 +64,6 @@ AliPMD::AliPMD()
   //
   fIshunt = 0;
 
-  fRecPoints  = 0;
-
 }
  
 //_____________________________________________________________________________
@@ -84,9 +79,6 @@ AliPMD::AliPMD(const char *name, const char *title)
   fHits   = new TClonesArray("AliPMDhit",  405);
   gAlice->GetMCApp()->AddHitList(fHits);
 
-  fRecPoints  = new TClonesArray("AliPMDRecPoint",10000); 
-  fNRecPoints = 0;
-  
 
   fIshunt =  0;
   
@@ -129,10 +121,8 @@ AliLoader* AliPMD::MakeLoader(const char* topfoldername)
 AliPMD::~AliPMD()
 {
   //
-  // Default constructor
+  // Destructor
   //
-    delete fRecPoints;
-    fNRecPoints=0;
 }
 
 //_____________________________________________________________________________
@@ -252,76 +242,28 @@ void AliPMD::StepManager()
   //
 }
 
-void AliPMD::AddRecPoint(const AliPMDRecPoint &p)
-{
-    //
-    // Add a PMD reconstructed hit to the list
-    //
-    TClonesArray &lrecpoints = *fRecPoints;
-    new(lrecpoints[fNRecPoints++]) AliPMDRecPoint(p);
-}
-
 void AliPMD::MakeBranch(Option_t* option)
 {
     // Create Tree branches for the PMD
     
-    const char *cR = strstr(option,"R");
     const char *cH = strstr(option,"H");
     if (cH && fLoader->TreeH() && (fHits == 0x0))
       fHits   = new TClonesArray("AliPMDhit",  405);
     
     AliDetector::MakeBranch(option);
-
-    if (cR  && fLoader->TreeR()) {
-      printf("Make Branch - TreeR address %p\n",(void*)fLoader->TreeR());
-    
-      const Int_t kBufferSize = 4000;
-      char branchname[30];
-      
-      sprintf(branchname,"%sRecPoints",GetName());
-      if (fRecPoints == 0x0) {
-        fRecPoints  = new TClonesArray("AliPMDRecPoint",10000); 
-      }
-      MakeBranchInTree(fLoader->TreeR(), branchname, &fRecPoints, kBufferSize,0);
-   }   
 }
 
 
 void AliPMD::SetTreeAddress()
 {
-  // Set branch address for the TreeR
-    char branchname[30];
-    
+  // Set branch address
+
     if (fLoader->TreeH() && fHits==0x0)
       fHits   = new TClonesArray("AliPMDhit",  405);
       
     AliDetector::SetTreeAddress();
-
-    TBranch *branch;
-    TTree *treeR = fLoader->TreeR();
-
-    sprintf(branchname,"%s",GetName());
-    if (treeR) {
-       branch = treeR->GetBranch(branchname);
-       if (branch) 
-       {
-         if (fRecPoints == 0x0) {
-           fRecPoints  = new TClonesArray("AliPMDRecPoint",10000); 
-         }
-         branch->SetAddress(&fRecPoints);
-       }
-    }
 }
 
-void AliPMD::ResetHits()
-{
-  //
-  // Reset number of hits and the hits array
-  //
-    AliDetector::ResetHits();
-    fNRecPoints   = 0;
-    if (fRecPoints)   fRecPoints->Clear();
-}
 //____________________________________________________________________________
 void AliPMD::Hits2SDigits()  
 { 
index 447132c1060c4f2c49c5b19227eec683d38d145f..fa91c09d317f35fe173b992ebe3f258ce9647855 100644 (file)
@@ -10,8 +10,8 @@
 ////////////////////////////////////////////////
  
 #include "AliDetector.h"
-#include "AliLoader.h"
 
+class AliLoader;
 class TClonesArray;
 class TFile;
 class AliPMDRecPoint;
@@ -38,10 +38,8 @@ public:
   virtual void  SetGEO(Float_t p1, Float_t p2, Float_t p3);
   virtual void  SetPadSize(Float_t p1, Float_t p2, Float_t p3, Float_t p4);
   virtual void  StepManager();
-  virtual void  AddRecPoint(const AliPMDRecPoint &p);
   virtual void  MakeBranch(Option_t* option);
   virtual void  SetTreeAddress();
-  virtual void  ResetHits();
   
   virtual void  Hits2SDigits();
   virtual void  SDigits2Digits();
@@ -58,11 +56,6 @@ public:
   Float_t fPadSize[4];       // size of the pads
   Int_t   fNumPads[4];       // number of the pads
 
-
- private:
-  TClonesArray* fRecPoints;   //! List of reconstructed hits
-  Int_t         fNRecPoints;  // Number of reconstructed hits
-  
-  ClassDef(AliPMD,5)  // Base Class for Photon Multiplicity Detector
+  ClassDef(AliPMD,6)  // Base Class for Photon Multiplicity Detector
 };
 #endif