RICH becomes HMPID, the old module RICH is removed
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDv1.h
CommitLineData
d3da6dc4 1#ifndef AliHMPIDv1_h
2#define AliHMPIDv1_h
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7#include "AliHMPID.h" //base class
8#include "AliHMPIDDigitizer.h" //CreateDigitizer()
9
10class AliHMPIDv1 : public AliHMPID //TObject-TNamed-AliModule-AliDetector-AliHMPID-AliHMPIDv0
11{
12public:
13 AliHMPIDv1() :AliHMPID( ),fIdRad(-1),fIdWin(-1),fIdProxGap(-1),fIdAmpGap(-1),fIdPc(-1),fIdAnod(-1),fIdCath(-1),fIdColl(-1) {;} //default ctor
14 AliHMPIDv1(const char *name, const char *title):AliHMPID(name,title),fIdRad(-1),fIdWin(-1),fIdProxGap(-1),fIdAmpGap(-1),fIdPc(-1),fIdAnod(-1),fIdCath(-1),fIdColl(-1) {;} //named ctor
15 virtual ~AliHMPIDv1() {;} //dtor
16//framework part++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17 void AddAlignableVolumes( )const; //from AliModule invoked from AliMC
18 void CreateMaterials ( ); //from AliModule invoked from AliMC
19 void CreateGeometry ( ); //from AliModule invoked from AliMC
20 AliDigitizer* CreateDigitizer (AliRunDigitizer *m )const{return new AliHMPIDDigitizer(m);} //from AliModule invoked from AliSimulation::RunDigitization()
21 void Digits2Raw ( ); //from AliModule invoked from AliSimulation::WriteRawFiles()
22 void Hits2SDigits ( ); //from AliModule invoked from AliSimulation::RunSDigitization()
23 void Init ( ); //from AliModule invoked from AliMC::InitGeometry()
24 Int_t IsVersion ( )const{return 1; } //from AliModule not used
25 void Print (const Option_t *opt="" )const; //from TObject
26 Bool_t Raw2SDigits (AliRawReader * ); //from AliMOdule invoked from AliSimulation
27 void StepManager ( ); //from AliModule invoked from AliMC::Stepping()
28//private part++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29 void GenFee (Int_t iCh,Float_t eloss=0 ); //generates feedback photons; eloss=0 for photon
30 static Float_t Fresnel (Float_t geV,Float_t p, Bool_t pl ); //deals with Fresnel absorption on PC
31 static void Hit2Sdi (TClonesArray *pH,TClonesArray *pS);
32 Bool_t IsLostByFresnel ( ); //checks if the photon lost on Fresnel reflection
33 void StepCount ( ); //counts particles in StepManager()
34 void StepHistory ( ); //prints history of tracking in StepManager()
35protected:
36 enum EMedia {kAir=1,kRoha=2,kSiO2=3,kC6F14=4,kCH4=5,kCsI=6,kAl=7,kCu=8,kW=9}; //media ids, used for geometry creation
37 enum Ecounters {kMipEnterRad=1,kCkovNew,kCkovNewRad,kCkovNewWin,kCkovNewProxGap,kCkovNewAmpGap,kCkovEnterPc,kPhotoEle}; //counters id's
38 Int_t fIdRad,fIdWin,fIdProxGap,fIdAmpGap,fIdPc,fIdAnod,fIdCath,fIdColl; //! volumes ID's used in StepManager() and Count()
39 ClassDef(AliHMPIDv1,2) //HMPID full version for simulation
40};
41
42#endif