]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONQAMappingCheck.h
Updates
[u/mrichter/AliRoot.git] / MUON / AliMUONQAMappingCheck.h
1 #ifndef ALIMUONQAMAPPINGCHECK_H
2 #define ALIMUONQAMAPPINGCHECK_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup rec
10 /// \class AliMUONQAMappingCheck
11 /// \brief Class to be called from AliMUONQADataMakerRec
12 /// 
13 // author Laurent Aphecetche
14
15 #ifndef ROOT_TObject
16 #  include "TObject.h"
17 #endif
18
19 class AliMUONDigitCalibrator;
20 class AliMUONGeometryTransformer;
21 class AliMUONVCluster;
22 class AliMUONVStore;
23 class AliMUONVTrackerData;
24
25 class AliMUONQAMappingCheck : public TObject
26 {
27 public:
28   AliMUONQAMappingCheck(Int_t runNumber);
29   virtual ~AliMUONQAMappingCheck();
30
31   void NewEvent();
32   
33   AliMUONVTrackerData* CreateData(const char* name) const;
34
35   void Store(AliMUONVCluster& cluster);
36   
37 private:
38   
39   /// not defined on purpose
40   AliMUONQAMappingCheck(const AliMUONQAMappingCheck& rhs);
41   /// not defined on purpose
42   AliMUONQAMappingCheck& operator=(const AliMUONQAMappingCheck& rhs);
43   
44   void GetClusterLocation(AliMUONVCluster& cluster, 
45                           Int_t& manuBending, Int_t& manuBendingChannel, 
46                           Int_t& manuNonBending, Int_t& manuNonBendingChannel,
47                           Bool_t& monoCathode, Bool_t& legitimateMonoCathode);
48
49   void AddClusterLocation(Int_t detElemId,
50                           Int_t manuId, Int_t manuChannel, 
51                           Bool_t monoCathode, Bool_t legitimateMonoCathode);
52   
53   Bool_t IsChannelDead(Int_t detElemId, Int_t manuId, Int_t manuChannel) const;
54   
55   Bool_t IsManuDead(Int_t detElemId, Int_t manuId) const;
56   
57 private:
58    
59   AliMUONVStore* fStore; //!< store cluster informations at manu level
60   
61   AliMUONGeometryTransformer* fGeometryTransformer;  //!< to go from global to local DE coordinates
62   
63   AliMUONDigitCalibrator* fDigitCalibrator; //!< to get statusmap
64   
65   Int_t fNumberOfEvents; //!< number of events seen
66   
67   Int_t fNumberOfClusters; //!< total number of clusters seen
68   
69   Int_t fNumberOfMonoCathodeClusters; //!< total number of mono-cathode clusters seen
70   
71   Int_t fNumberOfLegitimateMonoCathodeClusters; //!< number of mono-cathode that have a reason to be so
72   
73   ClassDef(AliMUONQAMappingCheck,1) // QADataMaker helper class
74 };
75
76 #endif