1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //____________________________________________________________________
20 // Forward Multiplicity Detector based on Silicon wafers.
22 // This class is a singleton that handles various parameters of
24 // Eventually, this class will use the Conditions DB to get the
25 // various parameters, which code can then request from here.
27 #include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
28 #include "AliFMDGeometry.h" // ALIFMDGEOMETRY_H
29 #include "AliFMDRing.h" // ALIFMDRING_H
30 #include "AliLog.h" // ALILOG_H
31 #include <Riostream.h>
33 //====================================================================
34 ClassImp(AliFMDParameters)
36 ; // This is here to keep Emacs for indenting the next line
39 //____________________________________________________________________
40 AliFMDParameters* AliFMDParameters::fgInstance = 0;
42 //____________________________________________________________________
44 AliFMDParameters::Instance()
46 // Get static instance
47 if (!fgInstance) fgInstance = new AliFMDParameters;
51 //____________________________________________________________________
52 AliFMDParameters::AliFMDParameters()
55 // Default constructor
57 SetAltroChannelSize();
58 SetChannelsPerAltro();
68 //__________________________________________________________________
70 AliFMDParameters::GetEdepMip() const
72 // Get energy deposited by a MIP in the silicon sensors
73 AliFMDGeometry* fmd = AliFMDGeometry::Instance();
75 * fmd->GetRing('I')->GetSiThickness()
76 * fmd->GetSiDensity());
79 //____________________________________________________________________