]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed unused data members and methods
authorgamez <gamez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 May 2004 22:04:16 +0000 (22:04 +0000)
committergamez <gamez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 May 2004 22:04:16 +0000 (22:04 +0000)
CRT/AliCRT.cxx
CRT/AliCRT.h

index b099c5b3af39a1dc0d623a0fc03a268124358800..502f411b031152b464de5e579150b86d70716eab 100644 (file)
 #include "AliCRT.h"
 
 #include <TTree.h>
+#include <TVirtualMC.h>
 
 #include "AliRun.h"
 #include "AliMagF.h"
+//#include "AliMC.h"
 
+//#include "AliCRThit.h"
 #include "AliCRTModule.h"
 
 ClassImp(AliCRT)
@@ -66,6 +69,8 @@ AliCRT::AliCRT(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //fHits =  new TClonesArray("AliCRThit", 400);
+  //gAlice->GetMCApp()->AddHitList(fHits);
 }
 
 //_____________________________________________________________________________
@@ -211,11 +216,25 @@ void AliCRT::SetTreeAddress()
   TBranch *branch;
   char branchname[20];
   sprintf(branchname,"%s",GetName());
-
   // Branch address for hit tree
   TTree *treeH = fLoader->TreeH();
-  if (treeH && fHits) {
+  if (treeH ) {
     branch = treeH->GetBranch(branchname);
     if (branch) branch->SetAddress(&fHits);
   }
 }
+
+//_____________________________________________________________________________
+void AliCRT::MakeBranch(Option_t* opt)
+{
+  //
+  // Initializes the branches of the CRT inside the trees written
+  // for each event.
+  //
+  const char* oH = strstr(opt, "H");
+  if ( fLoader->TreeH() && oH && (fHits == 0x0) ) {
+    fHits = new TClonesArray("AliCRThit", 1000);
+    fNhits = 0;
+  }
+  AliDetector::MakeBranch(opt);
+}
index 9a1561c0baddf4e2754a4962de71d57bbae2096a..ab12aafb6599da22eb22dc670dcb2eda28e89407 100644 (file)
@@ -23,13 +23,14 @@ public:
   AliCRT& operator=(const AliCRT& crt);
   virtual void CreateMaterials();
 
-  virtual Int_t IsVersion() const { return 0; }
+  virtual Int_t IsVersion() const { return -1; }
 
   virtual TString Version() { return TString(""); }
 
   virtual void SetTreeAddress();
   virtual void SetModule(AliCRTModule* module) {fModule = module;}
   virtual const AliCRTModule* GetModule() const {return fModule; }
+  virtual void MakeBranch(Option_t* opt = "");
 
 protected:
   AliCRTModule* fModule;