08-mar-2006 NvE Time offset correction in IceF2k extended to allow also a user define...
[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.
088f8e79 24// Eventually, this class will use the Conditions DB to get the
25// various parameters, which code can then request from here.
1a1fdef7 26//
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>
32
33//====================================================================
34ClassImp(AliFMDParameters)
35#if 0
36 ; // This is here to keep Emacs for indenting the next line
37#endif
38
39//____________________________________________________________________
40AliFMDParameters* AliFMDParameters::fgInstance = 0;
41
42//____________________________________________________________________
43AliFMDParameters*
44AliFMDParameters::Instance()
45{
46 // Get static instance
47 if (!fgInstance) fgInstance = new AliFMDParameters;
48 return fgInstance;
49}
50
51//____________________________________________________________________
52AliFMDParameters::AliFMDParameters()
53 : fSiDeDxMip(1.664)
54{
55 // Default constructor
56 SetVA1MipRange();
57 SetAltroChannelSize();
58 SetChannelsPerAltro();
59 SetZeroSuppression();
60 SetSampleRate();
61 SetPedestal();
62 SetPedestalWidth();
63 SetPedestalFactor();
64}
65
66
67
68//__________________________________________________________________
69Float_t
70AliFMDParameters::GetEdepMip() const
71{
72 // Get energy deposited by a MIP in the silicon sensors
73 AliFMDGeometry* fmd = AliFMDGeometry::Instance();
74 return (fSiDeDxMip
75 * fmd->GetRing('I')->GetSiThickness()
76 * fmd->GetSiDensity());
77}
78
79//____________________________________________________________________
80//
81// EOF
82//