AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDigitCalibrator.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 
4 // $Id$
5 
10 // Author Laurent Aphecetche
11 
12 #ifndef ALIMUONDIGITCALIBRATOR_H
13 #define ALIMUONDIGITCALIBRATOR_H
14 
15 #ifndef ROOT_TObject
16 #include "TObject.h"
17 #endif
18 
20 class AliMUONLogger;
21 class AliMUONVStore;
22 class AliMUONVDigitStore;
23 class AliMUONVDigit;
26 class AliMUONRecoParam;
27 class TExMap;
28 
29 class AliMUONDigitCalibrator : public TObject
30 {
31 public:
32 
33  AliMUONDigitCalibrator(Int_t runNumber);
34 
36  const AliMUONRecoParam* recoParams);
37 
39 
40  virtual ~AliMUONDigitCalibrator();
41 
42  virtual void Calibrate(AliMUONVDigitStore& digitStore);
43 
44  Bool_t IsValidDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel,
45  Int_t* statusMap=0x0) const;
46 
47  Float_t CalibrateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel,
48  Float_t adc, Float_t nsigmas=-1,
49  Bool_t* isSaturated=0x0) const;
50 
51  Int_t PadStatus(Int_t detElemId, Int_t manuId, Int_t manuChannel) const;
52 
53  Int_t StatusMap(Int_t detElemId, Int_t manuId, Int_t manuChannel) const;
54 
55 private:
56 
61 
62  void Ctor(const AliMUONCalibrationData& calib,
63  const AliMUONRecoParam* recoParams,
64  Bool_t deferredInitialization=kTRUE);
65 
66 private:
71  Double_t fNumberOfBadPads;
72  Double_t fNumberOfPads;
73  Double_t fChargeSigmaCut;
74  UInt_t fMask;
75 
76  ClassDef(AliMUONDigitCalibrator,11) // Calibrate raw digit
77 };
78 
79 #endif
Convert a pad status container into a pad status map container.
UInt_t fMask
! mask used to cut bad channels
AliMUONDigitCalibrator(Int_t runNumber)
Interface for a digit container.
Double_t fNumberOfBadPads
! # of times we've rejected a bad pad
Double_t fChargeSigmaCut
! number of sigmas to cut on
AliMUONDigitCalibrator & operator=(const AliMUONDigitCalibrator &other)
Not implemented.
Int_t StatusMap(Int_t detElemId, Int_t manuId, Int_t manuChannel) const
AliMUONPadStatusMapMaker * fStatusMapMaker
! to build status map
Class with MUON reconstruction parameters.
AliMUONPadStatusMaker * fStatusMaker
! to build pad statuses
void Ctor(const AliMUONCalibrationData &calib, const AliMUONRecoParam *recoParams, Bool_t deferredInitialization=kTRUE)
A logger that keeps track of the number of times a message appeared.
Definition: AliMUONLogger.h:24
Float_t CalibrateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, Float_t adc, Float_t nsigmas=-1, Bool_t *isSaturated=0x0) const
AliMUONLogger * fLogger
! to log repeated messages
Class to calibrate the digits.
Double_t fNumberOfPads
! # of pads we've seen
Int_t PadStatus(Int_t detElemId, Int_t manuId, Int_t manuChannel) const
Single entry point to access MUON calibration data.
ABC of a MUON digit.
Definition: AliMUONVDigit.h:18
Bool_t IsValidDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t *statusMap=0x0) const
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
AliMUONVStore * fPedestals
! pedestal values
Make a 2DStore of pad statuses, using different sources of information.
virtual void Calibrate(AliMUONVDigitStore &digitStore)