]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTART.h
new Digits structure
[u/mrichter/AliRoot.git] / START / AliSTART.h
index 01ba7df39a9cb5c33d0f8ae779ef6c6b3da57b41..083b863e035bd5ddac66e1ff607a2027eb5d120f 100755 (executable)
@@ -1,57 +1,90 @@
-#ifndef START_H
-#define START_H
+#ifndef ALISTART_H
+#define ALISTART_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
-
 ////////////////////////////////////////////////
 //  Manager and hits classes for set:START     //
 ////////////////////////////////////////////////
  
 #include "AliDetector.h"
-#include "AliHit.h"
+#include "TTree.h"
+class TDirectory;
+class TFile;
+
+R__EXTERN TDirectory *  gDirectory;
  
  
-class AliSTART : public AliDetector {
  
+class AliSTART : public AliDetector {
+
+
+
 public:
-  AliSTART();
-  AliSTART(const char *name, const char *title);
-  virtual       ~AliSTART() {}
-  virtual void   AddHit(Int_t, Int_t*, Float_t*);
-  virtual void   BuildGeometry();
-  virtual void   CreateGeometry()=0;
-  virtual void   CreateMaterials()=0; 
-  virtual Int_t  DistanceToPrimitive(Int_t px, Int_t py);
-  virtual Int_t  IsVersion() const =0;
-  virtual void   Init();
-  virtual void   MakeBranch(Option_t *opt=" ");
-  virtual void   DrawModule()=0;
-  virtual void   StepManager()=0;
-  
- protected:
-  Int_t fIdSens1;
-  ClassDef(AliSTART,1)  //Class for the START detector
+   AliSTART();
+   AliSTART(const char *name, const char *title);
+   virtual       ~AliSTART();
+   virtual void   AddHit(Int_t track, Int_t *vol, Float_t *hits);
+   virtual void   AddHitPhoton(Int_t track, Int_t *vol, Float_t *hits);
+   virtual void   AddDigit(Int_t *tracks, Int_t *digits);
+   virtual void   BuildGeometry();
+   virtual void   CreateGeometry(){}
+   virtual void   CreateMaterials(){} 
+   virtual Int_t  DistanceToPrimitive(Int_t px, Int_t py);
+   virtual void   DrawDetector(){}
+   virtual Int_t  IsVersion()const {return 0;}
+   virtual void   Init();
+   virtual void SetHitsAddressBranch(TBranch *b1,TBranch *b2)
+     {b1->SetAddress(&fHits); b2=0;}
+   void Hit2digit(Int_t iEventNum);
+   void Hit2digit(){return;}
+   virtual void   MakeBranch(Option_t *opt=" ", const char *file=0);
+   virtual void   StepManager(){}
+   virtual void   ResetHits();
+   virtual void   SetTreeAddress();
+   TClonesArray   *Photons() {return fPhotons;}
+   
+protected:
+   Int_t fIdSens;    // Sensetive Cherenkov radiator
+   Int_t       fNPhotons;              // Number of photons plan to photokatod
+
+   TClonesArray                *fPhotons;      // List of photons
+
+private:
+  ClassDef(AliSTART,2)  //Base class for the T0 aka START detector
 };
 
 //_____________________________________________________________________________
  
-class AliSTARThit : public AliHit {
-public:
-  Int_t      fVolume;
-  Int_t      fPmt;
-  Int_t      fParticle;     //Particle identificator
-  Float_t    fEdep;    //Energy deposition
-  Float_t    fEtot;    //Energy of particle 
-  Float_t    fTime;    //Time of flight 
-public:
-  AliSTARThit() {}
-  AliSTARThit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
-  virtual ~AliSTARThit() {}
-  
-  ClassDef(AliSTARThit,1)  //Hits for detector START
-};
-
 #endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+