]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDCalibStripRange.cxx
Correct raw data reconstruction in case of trigger
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibStripRange.cxx
CommitLineData
c2fc1258 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/* $Id$ */
16/** @file AliFMDCalibStripRange.cxx
17 @author Christian Holm Christensen <cholm@nbi.dk>
18 @date Sun Mar 26 18:31:09 2006
19 @brief Per digitizer card pulser calibration
20*/
21//____________________________________________________________________
22//
23//
24//
25#include "AliFMDCalibStripRange.h" // ALIFMDCALIBGAIN_H
26#include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
27
28//____________________________________________________________________
29ClassImp(AliFMDCalibStripRange)
30#if 0
31 ; // This is here to keep Emacs for indenting the next line
32#endif
33
34//____________________________________________________________________
35AliFMDCalibStripRange::AliFMDCalibStripRange()
36 : fRates(AliFMDMap::kMaxDetectors, AliFMDMap::kMaxRings, 2, 1)
37 // fRates(3)
38{
39 fRates.Reset(1);
40}
41
42//____________________________________________________________________
43AliFMDCalibStripRange::AliFMDCalibStripRange(const AliFMDCalibStripRange& o)
44 : TObject(o), fRates(o.fRates)
45{}
46
47//____________________________________________________________________
48AliFMDCalibStripRange&
49AliFMDCalibStripRange::operator=(const AliFMDCalibStripRange& o)
50{
51 fRates = o.fRates;
52 return (*this);
53}
54
55//____________________________________________________________________
56void
57AliFMDCalibStripRange::Set(UShort_t det, Char_t ring,
58 UShort_t sector, UShort_t, UShort_t min,
59 UShort_t max)
60{
61 UInt_t nSec = (ring == 'I' ? 20 : 40);
62 UInt_t board = sector / nSec;
63 fRates(det, ring, board, 0) = ((max & 0x7f) << 8) + (min & 0x7f);
64}
65
66//____________________________________________________________________
67UShort_t
68AliFMDCalibStripRange::Min(UShort_t det, Char_t ring,
69 UShort_t sec, UShort_t) const
70{
71 UInt_t nSec = (ring == 'I' ? 20 : 40);
72 UInt_t board = sec / nSec;
73 return (fRates(det, ring, board, 0) & 0x7f);
74}
75
76//____________________________________________________________________
77UShort_t
78AliFMDCalibStripRange::Max(UShort_t det, Char_t ring,
79 UShort_t sec, UShort_t) const
80{
81 UInt_t nSec = (ring == 'I' ? 20 : 40);
82 UInt_t board = sec / nSec;
83 return ((fRates(det, ring, board, 0) >> 8) & 0x7f);
84}
85
86//____________________________________________________________________
87//
88// EOF
89//