Migrated to a geometry implemented via AliFMDGeometry (derives from
[u/mrichter/AliRoot.git] / FMD / AliFMDParameters.cxx
CommitLineData
1a1fdef7 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18//____________________________________________________________________
19//
20// Forward Multiplicity Detector based on Silicon wafers.
21//
22// This class is a singleton that handles various parameters of
23// the FMD detectors.
24//
25#include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
26#include "AliFMDGeometry.h" // ALIFMDGEOMETRY_H
27#include "AliFMDRing.h" // ALIFMDRING_H
28#include "AliLog.h" // ALILOG_H
29#include <Riostream.h>
30
31//====================================================================
32ClassImp(AliFMDParameters)
33#if 0
34 ; // This is here to keep Emacs for indenting the next line
35#endif
36
37//____________________________________________________________________
38AliFMDParameters* AliFMDParameters::fgInstance = 0;
39
40//____________________________________________________________________
41AliFMDParameters*
42AliFMDParameters::Instance()
43{
44 // Get static instance
45 if (!fgInstance) fgInstance = new AliFMDParameters;
46 return fgInstance;
47}
48
49//____________________________________________________________________
50AliFMDParameters::AliFMDParameters()
51 : fSiDeDxMip(1.664)
52{
53 // Default constructor
54 SetVA1MipRange();
55 SetAltroChannelSize();
56 SetChannelsPerAltro();
57 SetZeroSuppression();
58 SetSampleRate();
59 SetPedestal();
60 SetPedestalWidth();
61 SetPedestalFactor();
62}
63
64
65
66//__________________________________________________________________
67Float_t
68AliFMDParameters::GetEdepMip() const
69{
70 // Get energy deposited by a MIP in the silicon sensors
71 AliFMDGeometry* fmd = AliFMDGeometry::Instance();
72 return (fSiDeDxMip
73 * fmd->GetRing('I')->GetSiThickness()
74 * fmd->GetSiDensity());
75}
76
77//____________________________________________________________________
78//
79// EOF
80//