]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv1.h
Adaptation to Run2 format (Jussi Viinikainen)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
CommitLineData
7587f5a5 1#ifndef ALIPHOSV1_H
2#define ALIPHOSV1_H
5f20d3fb 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7587f5a5 4 * See cxx source for full Copyright notice */
5f20d3fb 5
702ab87e 6/* $Id$ */
7
8/* History of cvs commits:
9 *
10 * $Log$
e939a978 11 * Revision 1.40 2006/09/13 07:31:01 kharlov
12 * Effective C++ corrections (T.Pocheptsov)
13 *
43fbaae1 14 * Revision 1.39 2005/05/28 14:19:05 schutz
15 * Compilation warnings fixed by T.P.
16 *
702ab87e 17 */
18
b2a60966 19//_________________________________________________________________________
5f20d3fb 20// Implementation version v1 of PHOS Manager class
a3dfe79c 21// Layout EMC + CPV has name IHEP
0ec07528 22//--
23//-- Author: Yves Schutz (SUBATECH)
7587f5a5 24
25// --- ROOT system ---
13add4de 26class TClonesArray ;
2ab0c725 27class TFile;
ba999b0a 28#include <TLorentzVector.h>
2ab0c725 29
7587f5a5 30// --- AliRoot header files ---
31#include "AliPHOSv0.h"
7587f5a5 32
33class AliPHOSv1 : public AliPHOSv0 {
34
35public:
36
bea63bea 37 AliPHOSv1(void) ;
7587f5a5 38 AliPHOSv1(const char *name, const char *title="") ;
bea63bea 39 virtual ~AliPHOSv1(void) ;
40
702ab87e 41 using AliPHOSv0::AddHit;
2af5445a 42 virtual void AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ;
7b326aac 43 virtual void FinishEvent() ;
44 virtual void FinishPrimary() ;
45 virtual Int_t IsVersion(void) const {
037cc66d 46 // Gives the version number
47 return 1 ;
48 }
49
0a6d52e3 50 virtual void StepManager(void) ;
bd46a237 51 virtual const TString Version(void)const { return TString("v1") ; }
5f20d3fb 52
90cceaf6 53 void CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
fa412d9b 54 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
55 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
56
e939a978 57 private:
58 AliPHOSv1(AliPHOSv1 & phos);
59 AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/);
6735ac78 60 TClonesArray fCPVDigits; //! Array of CPV digits per current CPV hit
e939a978 61
6735ac78 62 ClassDef(AliPHOSv1,5) // Implementation of PHOS manager class for layout EMC+PPSD
7587f5a5 63
64};
65
66#endif // AliPHOSV1_H