area of Mathieson parametrized; hit ctor change eloss to qdc; Helix 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()
661663fa 22 virtual void DefineOpticalProperties(); //from AliModule invoked from AliMC::ConstructOpGeometry() to set Cerenkov properties
d3da6dc4 23 void Hits2SDigits ( ); //from AliModule invoked from AliSimulation::RunSDigitization()
24 void Init ( ); //from AliModule invoked from AliMC::InitGeometry()
25 Int_t IsVersion ( )const{return 1; } //from AliModule not used
26 void Print (const Option_t *opt="" )const; //from TObject
27 Bool_t Raw2SDigits (AliRawReader * ); //from AliMOdule invoked from AliSimulation
28 void StepManager ( ); //from AliModule invoked from AliMC::Stepping()
29//private part++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1d4857c5 30 void GenFee (Float_t qtot ); //generates feedback photons
d3da6dc4 31 static Float_t Fresnel (Float_t geV,Float_t p, Bool_t pl ); //deals with Fresnel absorption on PC
32 static void Hit2Sdi (TClonesArray *pH,TClonesArray *pS);
33 Bool_t IsLostByFresnel ( ); //checks if the photon lost on Fresnel reflection
34 void StepCount ( ); //counts particles in StepManager()
35 void StepHistory ( ); //prints history of tracking in StepManager()
36protected:
37 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
38 enum Ecounters {kMipEnterRad=1,kCkovNew,kCkovNewRad,kCkovNewWin,kCkovNewProxGap,kCkovNewAmpGap,kCkovEnterPc,kPhotoEle}; //counters id's
39 Int_t fIdRad,fIdWin,fIdProxGap,fIdAmpGap,fIdPc,fIdAnod,fIdCath,fIdColl; //! volumes ID's used in StepManager() and Count()
40 ClassDef(AliHMPIDv1,2) //HMPID full version for simulation
41};
cf7e313e 42
43typedef AliHMPIDv1 AliRICHv1; // for backward compatibility
d3da6dc4 44
45#endif