X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSv1.h;h=e0ffa0e1ce54eed5d1a974c443d97287e4536b17;hb=026b032ef397d1c442fd93933253600d84423303;hp=a61df17a4cb24739ef9fd8665847e2e787579dcf;hpb=bea63bea067c858b90f7e5067c79fc60cbdb9aba;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSv1.h b/PHOS/AliPHOSv1.h index a61df17a4cb..e0ffa0e1ce5 100644 --- a/PHOS/AliPHOSv1.h +++ b/PHOS/AliPHOSv1.h @@ -1,19 +1,34 @@ #ifndef ALIPHOSV1_H #define ALIPHOSV1_H -/* Copyright(c) 1998-1999-2000, ALICE Experiment at CERN, All rights reserved. * +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ + +/* $Id$ */ + +/* History of cvs commits: + * + * $Log$ + * Revision 1.40 2006/09/13 07:31:01 kharlov + * Effective C++ corrections (T.Pocheptsov) + * + * Revision 1.39 2005/05/28 14:19:05 schutz + * Compilation warnings fixed by T.P. + * + */ + //_________________________________________________________________________ -// Version of AliPHOSv0 which allows for keeping all hits in TreeH -// This version is NOT recommended for Reconstruction analysis -// -//*-- Author: Gines MARTINEZ (SUBATECH) +// Implementation version v1 of PHOS Manager class +// Layout EMC + CPV has name IHEP +//-- +//-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- -#include "TClonesArray.h" +class TClonesArray ; +class TFile; +#include // --- AliRoot header files --- #include "AliPHOSv0.h" -#include "AliPHOSReconstructioner.h" class AliPHOSv1 : public AliPHOSv0 { @@ -23,14 +38,28 @@ public: AliPHOSv1(const char *name, const char *title="") ; virtual ~AliPHOSv1(void) ; - virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; -// adds a hit to the hit tree (any pre=digitalization is done here (so large root file !!) - void FinishEvent(void) ; // makes the digits from the hits - virtual void StepManager(void) ; // StepManager to keep current tack number in the hit + using AliPHOSv0::AddHit; + virtual void AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ; + virtual void FinishEvent() ; + virtual void FinishPrimary() ; + virtual Int_t IsVersion(void) const { + // Gives the version number + return 1 ; + } + + virtual void StepManager(void) ; + virtual const TString Version(void)const { return TString("v1") ; } + + void CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ; + Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ; + Double_t CPVCumulPadResponse(Double_t x, Double_t y) ; -protected: + private: + AliPHOSv1(AliPHOSv1 & phos); + AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/); + TClonesArray fCPVDigits; //! Array of CPV digits per current CPV hit - ClassDef(AliPHOSv1,1) // Class AliPHOSv0 which allows to write ond disk al the information of the hits. + ClassDef(AliPHOSv1,5) // Implementation of PHOS manager class for layout EMC+PPSD };