Fixing coding conventions (const arguments in functions)
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jun 2010 12:04:55 +0000 (12:04 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jun 2010 12:04:55 +0000 (12:04 +0000)
(Ivana)

46 files changed:
MUON/AliMUON2DStoreValidator.cxx
MUON/AliMUON2DStoreValidator.h
MUON/AliMUONAttPainterSelectorFrame.cxx
MUON/AliMUONAttPainterSelectorFrame.h
MUON/AliMUONClusterSplitterMLEM.cxx
MUON/AliMUONClusterSplitterMLEM.h
MUON/AliMUONDigitMaker.cxx
MUON/AliMUONDigitMaker.h
MUON/AliMUONLocalTriggerBoard.cxx
MUON/AliMUONLocalTriggerBoard.h
MUON/AliMUONPainterDataRegistry.cxx
MUON/AliMUONPainterDataRegistry.h
MUON/AliMUONPainterDataSourceFrame.cxx
MUON/AliMUONPainterDataSourceFrame.h
MUON/AliMUONPainterInterfaceHelper.cxx
MUON/AliMUONPainterInterfaceHelper.h
MUON/AliMUONPainterMasterFrame.cxx
MUON/AliMUONPainterMasterFrame.h
MUON/AliMUONPainterMatrixFrame.cxx
MUON/AliMUONPainterMatrixFrame.h
MUON/AliMUONPainterRegistry.cxx
MUON/AliMUONPainterRegistry.h
MUON/AliMUONPairLight.cxx
MUON/AliMUONPairLight.h
MUON/AliMUONRawWriter.cxx
MUON/AliMUONRawWriter.h
MUON/AliMUONRecoCheck.cxx
MUON/AliMUONRecoCheck.h
MUON/AliMUONTrack.cxx
MUON/AliMUONTrack.h
MUON/AliMUONTrackExtrap.cxx
MUON/AliMUONTrackExtrap.h
MUON/AliMUONTrackLight.cxx
MUON/AliMUONTrackLight.h
MUON/AliMUONTrackerData.cxx
MUON/AliMUONTrackerData.h
MUON/AliMUONTriggerElectronics.cxx
MUON/AliMUONTriggerElectronics.h
MUON/AliMUONTriggerIO.cxx
MUON/AliMUONTriggerIO.h
MUON/AliMUONTriggerQADataMakerRec.cxx
MUON/AliMUONTriggerQADataMakerRec.h
MUON/AliMUONVQADataMakerRec.cxx
MUON/AliMUONVQADataMakerRec.h
MUON/mapping/AliMpZone.cxx
MUON/mapping/AliMpZone.h

index dc7c0397459a9a72c6e066ed6c00ecd889418142..ca12872181e4d74ed65d46791abbb5e501e38f58 100644 (file)
@@ -198,7 +198,7 @@ AliMUON2DStoreValidator::AddMissingManu(Int_t detElemId, Int_t manuId)
 
 //_____________________________________________________________________________
 void
-AliMUON2DStoreValidator::ReportManu(TList& lines, AliMUONCheckItem& manu)
+AliMUON2DStoreValidator::ReportManu(TList& lines, const AliMUONCheckItem& manu)
 {  
   /// Report list of missing channels from this manu
   
@@ -215,7 +215,7 @@ AliMUON2DStoreValidator::ReportManu(TList& lines, AliMUONCheckItem& manu)
 
 //_____________________________________________________________________________
 void
-AliMUON2DStoreValidator::ReportDE(TList& lines, AliMUONCheckItem& de)
+AliMUON2DStoreValidator::ReportDE(TList& lines, const AliMUONCheckItem& de)
 {  
   /// Report list of missing manus from this de
   AliMUONCheckItem* manu(0x0);
@@ -240,7 +240,7 @@ AliMUON2DStoreValidator::ReportDE(TList& lines, AliMUONCheckItem& de)
 
 //_____________________________________________________________________________
 void
-AliMUON2DStoreValidator::ReportChamber(TList& lines, AliMUONCheckItem& chamber)
+AliMUON2DStoreValidator::ReportChamber(TList& lines, const AliMUONCheckItem& chamber)
 {  
   /// Report list of missing de from this chamber
   
index 61cf1c55199cb96e3852ff8dd202e645eb2652d9..b73c207cbe8ae1e400de2068fc36011ad44043e5 100644 (file)
@@ -59,9 +59,9 @@ private:
   AliMUONCheckItem* GetDE(Int_t detElemId);
   AliMUONCheckItem* GetManu(Int_t detElemId, Int_t manuId);
   
-  static void ReportChamber(TList& list, AliMUONCheckItem& chamber);
-  static void ReportDE(TList& list, AliMUONCheckItem& de);
-  static void ReportManu(TList& list, AliMUONCheckItem& manu);
+  static void ReportChamber(TList& list, const AliMUONCheckItem& chamber);
+  static void ReportDE(TList& list, const AliMUONCheckItem& de);
+  static void ReportManu(TList& list, const AliMUONCheckItem& manu);
   
 private:
   TObjArray* fChambers; //!< Array of AliMUONCheckItem.
index 7c9a71c565b63076d7ea1189214aef9bf20d2239..96ae8d08d089b9e75783e0aa57eace95c43dab67 100644 (file)
@@ -167,7 +167,7 @@ AliMUONAttPainterSelectorFrame::ViewClicked(Int_t buttonId)
 
 //_____________________________________________________________________________
 void
-AliMUONAttPainterSelectorFrame::Clicked(AliMUONAttPainter* newValues)
+AliMUONAttPainterSelectorFrame::Clicked(const AliMUONAttPainter* newValues)
 {
   /// Emit a signal
   
index d8cb56aed6b0f997b47188ae7b1545beea2d3bf8..b55eca171ded0fb898df4c91e6a37b128152dea7 100644 (file)
@@ -29,7 +29,7 @@ public:
   
   void Update(const AliMUONAttPainter& att);
   
-  void Clicked(AliMUONAttPainter* newValues); // *SIGNAL*
+  void Clicked(const AliMUONAttPainter* newValues); // *SIGNAL*
   
   void CathodeClicked(Int_t buttonId);
   
index bedd742251c3d6cd7b25f46751a99a12c1958a15..ee8f7278c0513543763f4edfe480d52da9d31ec8 100644 (file)
@@ -253,7 +253,7 @@ Double_t AliMUONClusterSplitterMLEM::Param2Coef(Int_t icand, Double_t coef, Doub
 Int_t 
 AliMUONClusterSplitterMLEM::Fit(const AliMUONCluster& cluster,
                                 Int_t iSimple, Int_t nfit, 
-                                Int_t *clustFit, TObjArray **clusters, 
+                                const Int_t *clustFit, TObjArray **clusters, 
                                 Double_t *parOk,
                                 TObjArray& clusterList, TH2 *mlem)
 {
@@ -1057,7 +1057,7 @@ AliMUONClusterSplitterMLEM::Split(const AliMUONCluster& cluster,
 void 
 AliMUONClusterSplitterMLEM::Merge(const AliMUONCluster& cluster,
                                      Int_t nForFit, Int_t nCoupled, 
-                                     Int_t *clustNumb, Int_t *clustFit, 
+                                     const Int_t *clustNumb, const Int_t *clustFit, 
                                      TObjArray **clusters, 
                                      TMatrixD& aijcluclu, TMatrixD& aijclupad)
 {
@@ -1119,8 +1119,8 @@ AliMUONClusterSplitterMLEM::Merge(const AliMUONCluster& cluster,
 
 //_____________________________________________________________________________
 Double_t 
-AliMUONClusterSplitterMLEM::MinGroupCoupl(Int_t nCoupled, Int_t *clustNumb, 
-                                          TMatrixD& aijcluclu, Int_t *minGroup)
+AliMUONClusterSplitterMLEM::MinGroupCoupl(Int_t nCoupled, const Int_t *clustNumb, 
+                                          const TMatrixD& aijcluclu, Int_t *minGroup)
 {
   /// Find group of clusters with minimum coupling to all the others
   
@@ -1205,8 +1205,8 @@ AliMUONClusterSplitterMLEM::MinGroupCoupl(Int_t nCoupled, Int_t *clustNumb,
 Int_t 
 AliMUONClusterSplitterMLEM::SelectPad(const AliMUONCluster& cluster,
                                           Int_t nCoupled, Int_t nForFit, 
-                                          Int_t *clustNumb, Int_t *clustFit, 
-                                          TMatrixD& aijclupad)
+                                          const Int_t *clustNumb, const Int_t *clustFit, 
+                                          const TMatrixD& aijclupad)
 {
   /// Select pads for fit. If too many coupled clusters, find pads giving 
   /// the strongest coupling with the rest of clusters and exclude them from the fit.
index d5b800c3528278f859abbf3d5952dcb530c23c03..00e0f68903ebc48e1e41d223e3b36c78789441f6 100644 (file)
@@ -53,22 +53,22 @@ public:
   
   Int_t Fit(const AliMUONCluster& cluster,
             Int_t iSimple, Int_t nfit,
-            Int_t *clustFit, TObjArray **clusters, 
+            const Int_t *clustFit, TObjArray **clusters, 
             Double_t *parOk, TObjArray& clusterList, TH2 *mlem);
     
   void Merge(const AliMUONCluster& cluster,
              Int_t nForFit, Int_t nCoupled, 
-             Int_t *clustNumb, Int_t *clustFit, 
+             const Int_t *clustNumb, const Int_t *clustFit, 
              TObjArray **clusters, 
              TMatrixD& aijcluclu, TMatrixD& aijclupad);
     
-  Double_t MinGroupCoupl(Int_t nCoupled, Int_t *clustNumb, 
-                         TMatrixD& aijcluclu, Int_t *minGroup);
+  Double_t MinGroupCoupl(Int_t nCoupled, const Int_t *clustNumb, 
+                         const TMatrixD& aijcluclu, Int_t *minGroup);
       
   Int_t SelectPad(const AliMUONCluster& cluster,
                   Int_t nCoupled, Int_t nForFit, 
-                  Int_t *clustNumb, Int_t *clustFit, 
-                  TMatrixD& aijclupad);
+                  const Int_t *clustNumb, const Int_t *clustFit, 
+                  const TMatrixD& aijclupad);
   
   void Split(const AliMUONCluster& cluster,
                TH2* mlem,
index 05bb6e6ce4f96e3455c1437f76a56666cbbcf6e3..70cd1e8951755924d8af809ed810cf4fde4f5db4 100644 (file)
@@ -386,7 +386,7 @@ AliMUONDigitMaker::ReadTriggerDDL(AliRawReader* rawReader)
 
 //____________________________________________________________________
 Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard, 
-                                       TArrayS* xyPattern,
+                                       const TArrayS* xyPattern,
                                        AliMUONVDigitStore& digitStore) const
 {
   /// make digits for trigger from pattern, and add them to digitStore
index a7a2e57d8ab35b7cc73d9c71d3c021ab83987f6f..0db611728328ff9ebcb088c8a6b59a9d3272faed 100644 (file)
@@ -51,7 +51,7 @@ class AliMUONDigitMaker : public TObject
   Int_t  ReadTrackerDDL(AliRawReader* rawReader);
   Int_t  ReadTriggerDDL(AliRawReader* rawReader);
   
-  Int_t TriggerDigits(Int_t nBoard, TArrayS* xyPattern, 
+  Int_t TriggerDigits(Int_t nBoard, const TArrayS* xyPattern, 
                       AliMUONVDigitStore& digitStore) const;
 
   Bool_t TriggerToDigitsStore(const AliMUONVTriggerStore& triggerStore, 
index 3386104bc09ab353b81089528aee4822aff3ead9..7277d409649255cec9b1a3a2ed4baf024c64c29b 100644 (file)
@@ -295,7 +295,7 @@ void AliMUONLocalTriggerBoard::SetbitM(Int_t strip, Int_t cathode, Int_t chamber
 
 
 //___________________________________________
-void AliMUONLocalTriggerBoard::Pattern(Option_t *option) const
+void AliMUONLocalTriggerBoard::Pattern(const Option_t *option) const
 {
 /// print bit pattern
 ///
@@ -308,7 +308,7 @@ void AliMUONLocalTriggerBoard::Pattern(Option_t *option) const
 
 
 //___________________________________________
-void AliMUONLocalTriggerBoard::BP(Option_t *option) const
+void AliMUONLocalTriggerBoard::BP(const Option_t *option) const
 {
 /// Respect the old printout format
   
index 1a0f12d48aea0efa97ac1b2c2de61b343638cbad..69a7ad1a33546d87863c415ed8b4686dd3863306 100644 (file)
@@ -36,7 +36,7 @@ class AliMUONLocalTriggerBoard : public AliMUONTriggerBoard
       virtual void     Setbit(Int_t strip, Int_t cathode, Int_t chamber);
       virtual void     SetbitM(Int_t strip, Int_t cathode, Int_t chamber);
 
-      virtual void     Pattern(Option_t *option = "X Y") const; // default option displays X then Y bp
+      virtual void     Pattern(const Option_t *option = "X Y") const; // default option displays X then Y bp
 
       virtual void     Reset();
       virtual void     ResetResponse();
@@ -143,7 +143,7 @@ class AliMUONLocalTriggerBoard : public AliMUONTriggerBoard
 
       virtual void     Resp(Option_t *option) const; ///< local trigger info before ("I") and after ("F") LUT
 
-      virtual void     BP(Option_t *option) const;   ///< display X/Y bp
+      virtual void     BP(const Option_t *option) const;   ///< display X/Y bp
 
    private:
       AliMpLocalBoard*  fMpLocalBoard; ///< pointer to the local board mapping 
index b3294fce6010f859a9784c7199e00ade538126fa..1d0de183c5ea43860c7aa91f344445fe953b5261 100644 (file)
@@ -111,7 +111,7 @@ AliMUONPainterDataRegistry::DataSource(Int_t i) const
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterDataRegistry::DataMakerWasRegistered(AliMUONVTrackerDataMaker* data)
+AliMUONPainterDataRegistry::DataMakerWasRegistered(const AliMUONVTrackerDataMaker* data)
 {
   /// A new reader source was registered
   Long_t param[] = { (Long_t)data };
@@ -121,7 +121,7 @@ AliMUONPainterDataRegistry::DataMakerWasRegistered(AliMUONVTrackerDataMaker* dat
 
 //_____________________________________________________________________________
 void
-AliMUONPainterDataRegistry::DataMakerWasUnregistered(AliMUONVTrackerDataMaker* data)
+AliMUONPainterDataRegistry::DataMakerWasUnregistered(const AliMUONVTrackerDataMaker* data)
 {
   /// A data reader was unregistered
   Long_t param[] = { (Long_t)data };
@@ -132,7 +132,7 @@ AliMUONPainterDataRegistry::DataMakerWasUnregistered(AliMUONVTrackerDataMaker* d
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterDataRegistry::DataSourceWasRegistered(AliMUONVTrackerData* data)
+AliMUONPainterDataRegistry::DataSourceWasRegistered(const AliMUONVTrackerData* data)
 {
   /// A new data source was registered
   Long_t param[] = { (Long_t)data };
@@ -142,7 +142,7 @@ AliMUONPainterDataRegistry::DataSourceWasRegistered(AliMUONVTrackerData* data)
 
 //_____________________________________________________________________________
 void
-AliMUONPainterDataRegistry::DataSourceWasUnregistered(AliMUONVTrackerData* data)
+AliMUONPainterDataRegistry::DataSourceWasUnregistered(const AliMUONVTrackerData* data)
 {
   /// A data source was unregistered
   Long_t param[] = { (Long_t)data };
index ae0a8c70f7b7e24ead8b7b93bfaa20f5cad31a04..3cb52095b12f89113ea096da3dd371191b69c60b 100644 (file)
@@ -36,13 +36,13 @@ public:
 
   AliMUONVTrackerData* InteractiveReadOutConfig() const;
   
-  void DataSourceWasRegistered(AliMUONVTrackerData* data); // *SIGNAL*
+  void DataSourceWasRegistered(const AliMUONVTrackerData* data); // *SIGNAL*
   
-  void DataSourceWasUnregistered(AliMUONVTrackerData* data); // *SIGNAL*
+  void DataSourceWasUnregistered(const AliMUONVTrackerData* data); // *SIGNAL*
 
-  void DataMakerWasRegistered(AliMUONVTrackerDataMaker* reader); // *SIGNAL*
+  void DataMakerWasRegistered(const AliMUONVTrackerDataMaker* reader); // *SIGNAL*
   
-  void DataMakerWasUnregistered(AliMUONVTrackerDataMaker* reader); // *SIGNAL*
+  void DataMakerWasUnregistered(const AliMUONVTrackerDataMaker* reader); // *SIGNAL*
     
   static AliMUONPainterDataRegistry* Instance();
   
index 946ca673d8b95728506f55b6402b9316e38054e3..9a507972a914314efe99d37fe39f055fe8fcd641 100644 (file)
@@ -790,7 +790,7 @@ AliMUONPainterDataSourceFrame::DataMakerWasRegistered(AliMUONVTrackerDataMaker*
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterDataSourceFrame::DataMakerWasUnregistered(AliMUONVTrackerDataMaker* maker)
+AliMUONPainterDataSourceFrame::DataMakerWasUnregistered(const AliMUONVTrackerDataMaker* maker)
 {
   /// Update ourselves as a data reader was deleted
   
index 614aec42091c58749671f41540bfcd1a19cbcf76..02c56ffcb88ca38a2bffdd267274aaaeb2f03b8d 100644 (file)
@@ -44,7 +44,7 @@ public:
   
   void DataMakerWasRegistered(AliMUONVTrackerDataMaker* reader);
   
-  void DataMakerWasUnregistered(AliMUONVTrackerDataMaker* reader);
+  void DataMakerWasUnregistered(const AliMUONVTrackerDataMaker* reader);
 
   void HistogramButtonClicked();
 
index 0156550cef5c62dc7768180b385fadb1e95e47a1..96d3a233f96625ce8cd2b5729a846b3b34a2ee7e 100644 (file)
@@ -199,7 +199,7 @@ AliMUONPainterInterfaceHelper::FindButtonByName(const TGButtonGroup& bg,
 //_____________________________________________________________________________
 TGButton* 
 AliMUONPainterInterfaceHelper::FindButtonByUserData(const TGButtonGroup& bg, 
-                                                    void* userData)
+                                                    const void* userData)
 {
   /// Find a button by userData
   
@@ -333,7 +333,7 @@ AliMUONPainterInterfaceHelper::Unselect(TGButtonGroup& bg,
 //_____________________________________________________________________________
 void
 AliMUONPainterInterfaceHelper::RemoveButton(TGButtonGroup& bg,
-                                            TGButton* button)
+                                            const TGButton* button)
 {
   /// Remove a button
   
index 257e152981227700187cfd7028c41a582673b088..4cd8a90ee7b677a11b851e31d75826a404821087 100644 (file)
@@ -52,7 +52,7 @@ public:
     
   static TGButton* FindButtonByName(const TGButtonGroup& bg, const TString& name);
 
-  static TGButton* FindButtonByUserData(const TGButtonGroup& bg, void* userData);
+  static TGButton* FindButtonByUserData(const TGButtonGroup& bg, const void* userData);
 
   static TGButton* FindDownButton(const TGButtonGroup& bg);
   
@@ -64,7 +64,7 @@ public:
   
   static void Unselect(TGButtonGroup& bg, const TString& buttonName, Bool_t emit=kFALSE);
     
-  static void RemoveButton(TGButtonGroup& bg, TGButton* button);
+  static void RemoveButton(TGButtonGroup& bg, const TGButton* button);
   
   ClassDef(AliMUONPainterInterfaceHelper,1) // Helper class for TGButtonGroup manipulation
 };
index 681ced379a843ae03e3fb5b123ed62a5347c0756..f6dc5c3860c77e9cbaf3893e71e4cfab9a609180 100644 (file)
@@ -504,7 +504,7 @@ AliMUONPainterMasterFrame::UpdateNavigation()
 
 //_____________________________________________________________________________
 void
-AliMUONPainterMasterFrame::AttributesChanged(AliMUONAttPainter* newValues)
+AliMUONPainterMasterFrame::AttributesChanged(const AliMUONAttPainter* newValues)
 {
   /// Attributes changed (e.g. from cath0 to cath1 or bending to nonbending, etc...)
   
index cf873aade9e2c97b44517b1b5ce6218fe1cb60f2..55bff6a499910d93c399e92bad8e7740d2f3b379 100644 (file)
@@ -50,7 +50,7 @@ public:
 
   void Update();
 
-  void AttributesChanged(AliMUONAttPainter* newValues);
+  void AttributesChanged(const AliMUONAttPainter* newValues);
   
   void SaveAs(const char* filename = "", Option_t* option = "") const;
   
index 67fe4ac9403547541807f15e7f97a8a13dc23176..30263f3066feef238a89a34b35270027996002ef 100644 (file)
@@ -410,7 +410,7 @@ AliMUONPainterMatrixFrame::MouseEnter(AliMUONVPainter* painter)
 
 //_____________________________________________________________________________
 void
-AliMUONPainterMatrixFrame::MouseLeave(AliMUONVPainter* painter)
+AliMUONPainterMatrixFrame::MouseLeave(const AliMUONVPainter* painter)
 {
   /// Emit a signal to notify that mouse pointer is leaving a given painter
   
index 9c668e1c4802d2d8f954640c16c36e6bec0b67e3..d626914a6a4e3590c0f251b42945757cdac454e1 100644 (file)
@@ -49,7 +49,7 @@ public:
 
   void MouseMotion(AliMUONVPainter* painter, Double_t* position); // *SIGNAL*
 
-  void MouseLeave(AliMUONVPainter* painter); // *SIGNAL*
+  void MouseLeave(const AliMUONVPainter* painter); // *SIGNAL*
   
   void ResponderButtonWasClicked(Int_t id); 
 
index 1615dd7269f940685fa13d48190427dfb84d5644..d2718dd034cfba85fcd3ca0213490a74409d06a3 100644 (file)
@@ -118,7 +118,7 @@ AliMUONPainterRegistry::PainterMatrix(Int_t i) const
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterRegistry::PainterMatrixWantToShow(AliMUONPainterMatrix* group)
+AliMUONPainterRegistry::PainterMatrixWantToShow(const AliMUONPainterMatrix* group)
 {
   /// A given paintermatrix want to appear on screen
   Long_t param[] = { (Long_t)group };
@@ -172,7 +172,7 @@ AliMUONPainterRegistry::AddToHistory(AliMUONPainterMatrix* group)
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterRegistry::PainterMatrixWasRegistered(AliMUONPainterMatrix* group)
+AliMUONPainterRegistry::PainterMatrixWasRegistered(const AliMUONPainterMatrix* group)
 {
   /// A new painter matrix was registered
   Long_t param[] = { (Long_t)group };
@@ -182,7 +182,7 @@ AliMUONPainterRegistry::PainterMatrixWasRegistered(AliMUONPainterMatrix* group)
 
 //_____________________________________________________________________________
 void 
-AliMUONPainterRegistry::PainterMatrixWasUnregistered(AliMUONPainterMatrix* group)
+AliMUONPainterRegistry::PainterMatrixWasUnregistered(const AliMUONPainterMatrix* group)
 {
   /// A painter matrix was unregistered
   Long_t param[] = { (Long_t)group };
index 296a0c9452339cf3db73eec7ecb9d0b6e4ec07be..2003dda7afcb09348b52b77152e229ffdb2662b0 100644 (file)
@@ -43,11 +43,11 @@ public:
   
   void AddToHistory(AliMUONPainterMatrix* group);
     
-  void PainterMatrixWasRegistered(AliMUONPainterMatrix* group); // *SIGNAL*
+  void PainterMatrixWasRegistered(const AliMUONPainterMatrix* group); // *SIGNAL*
   
-  void PainterMatrixWasUnregistered(AliMUONPainterMatrix* group); // *SIGNAL*
+  void PainterMatrixWasUnregistered(const AliMUONPainterMatrix* group); // *SIGNAL*
   
-  void PainterMatrixWantToShow(AliMUONPainterMatrix* group); // *SIGNAL*
+  void PainterMatrixWantToShow(const AliMUONPainterMatrix* group); // *SIGNAL*
   
   void Print(Option_t* opt) const;
   
index 4be3a031374a7bd9527db21cecd59accb1240b98..4c392caf08629b1f10af813168bfe2fcceeec80f 100644 (file)
@@ -327,7 +327,7 @@ void AliMUONPairLight::SetMuons(AliMUONTrackLight mu0, AliMUONTrackLight mu1){
 } 
 
 //====================================
-void AliMUONPairLight::PrintInfo(Option_t* opt){
+void AliMUONPairLight::PrintInfo(const Option_t* opt){
   /// print information about muon pairs
   /// Options: 
   /// - "H" single muons' decay histories
index bbd0c477a3e052760db6bd911591efb30ec61877..60c10a391bb1849b60fd897f4fd0bb0050ce9b36 100644 (file)
@@ -72,7 +72,7 @@ public:
   TLorentzVector GetPGen(){return fMu0.GetPGen()+fMu1.GetPGen();}
   Double_t GetOpeningAngle(); 
   Bool_t IsDimuonFromCorrPiK();
-  virtual void PrintInfo(Option_t* opt);//"H" single muons' decay histories
+  virtual void PrintInfo(const Option_t* opt);//"H" single muons' decay histories
                                            //"K" dimuon kinematics
                                            //"F" dimuon flags
                                            //"A" all variables
index bd06a746a189da86e8054e1622e432cc9214d5f1..48749cfc050bb53cb581684f0d919026367041bc 100644 (file)
@@ -148,8 +148,8 @@ void  AliMUONRawWriter::LocalWordPacking(UInt_t& word, UInt_t locId, UInt_t locD
 }
 
 //____________________________________________________________________
-Int_t AliMUONRawWriter::Digits2Raw(AliMUONVDigitStore* digitStore,
-                                   AliMUONVTriggerStore* triggerStore)
+Int_t AliMUONRawWriter::Digits2Raw(const AliMUONVDigitStore* digitStore,
+                                   const AliMUONVTriggerStore* triggerStore)
 {
   /// convert digits of the current event to raw data
 
index 006766f7da4374f18d9e78b57a0bb60e58cf3843..cbcbc32987e1a4949270fb5dfabfa6d45eff74d8 100644 (file)
@@ -35,7 +35,7 @@ class AliMUONRawWriter : public TObject
   virtual ~AliMUONRawWriter(); // Destructor
     
   // write raw data
-  Int_t Digits2Raw(AliMUONVDigitStore* digitStore, AliMUONVTriggerStore* triggerStore);
+  Int_t Digits2Raw(const AliMUONVDigitStore* digitStore, const AliMUONVTriggerStore* triggerStore);
   
   void SetScalersNumbers();
 
index de76f24d90239436be2c1f9dd3da2eadc4b8c8ae..9b22224356c30c7b7264c7abd6d2840c8956fd7a 100644 (file)
@@ -784,7 +784,7 @@ AliMUONTrack* AliMUONRecoCheck::FindCompatibleTrack(AliMUONTrack &track, AliMUON
 
 
 //_____________________________________________________________________________
-AliMUONTriggerTrack* AliMUONRecoCheck::FindCompatibleTrack(AliMUONTriggerTrack &track, AliMUONVTriggerTrackStore &triggerTrackStore,
+AliMUONTriggerTrack* AliMUONRecoCheck::FindCompatibleTrack(AliMUONTriggerTrack &track, const AliMUONVTriggerTrackStore &triggerTrackStore,
                                                            Double_t sigmaCut)
 {
   /// Return the trigger track from the store matched with the given track (or 0x0).
index 5e463cbdba5f77709c8b52d761ecc640f1a7510d..e02fdc4639a378a4d15ab6175b173d621ade5946 100644 (file)
@@ -68,7 +68,7 @@ public:
   
   /// Return the trigger track from the store matched with the given track (or 0x0)
   static AliMUONTriggerTrack* FindCompatibleTrack(AliMUONTriggerTrack &track,
-                                                  AliMUONVTriggerTrackStore &triggerTrackStore,
+                                                  const AliMUONVTriggerTrackStore &triggerTrackStore,
                                                   Double_t sigmaCut = 10.);
   
 private:
index 3b98ce745a069242671f70ad4541f0ae372939ec..d49874f6640057c1e553163711ab6a155ab35a08 100644 (file)
@@ -826,7 +826,7 @@ Bool_t AliMUONTrack::ComputeClusterWeights(TMatrixD* mcsCovariances)
 
   //__________________________________________________________________________
 Bool_t AliMUONTrack::ComputeClusterWeights(TMatrixD& clusterWeightsNB, TMatrixD& clusterWeightsB,
-                                          TMatrixD* mcsCovariances, AliMUONVCluster* discardedCluster) const
+                                          TMatrixD* mcsCovariances, const AliMUONVCluster* discardedCluster) const
 {
   /// Compute the weight matrices, in non bending and bending direction,
   /// of the other attached clusters assuming the discarded one does not exist
@@ -1067,7 +1067,7 @@ Double_t AliMUONTrack::GetNormalizedChi2() const
 }
 
   //__________________________________________________________________________
-Int_t AliMUONTrack::FindCompatibleClusters(AliMUONTrack &track, Double_t sigmaCut, Bool_t compatibleCluster[10]) const
+Int_t AliMUONTrack::FindCompatibleClusters(const AliMUONTrack &track, Double_t sigmaCut, Bool_t compatibleCluster[10]) const
 {
   /// Try to match clusters from this track with clusters from the given track within the provided sigma cut:
   /// - Fill the array compatibleCluster[iCh] with kTRUE if a compatible cluster has been found in chamber iCh.
index db348840ab5340d9794c8c2eaed054712a08eebd..10620410c185d7d63c06f2904081521347343c0a 100644 (file)
@@ -91,7 +91,7 @@ class AliMUONTrack : public TObject
   Int_t    GetNDF() const;
   Double_t GetNormalizedChi2() const;
 
-  Int_t  FindCompatibleClusters(AliMUONTrack &track, Double_t sigma2Cut, Bool_t compatibleCluster[10]) const;
+  Int_t  FindCompatibleClusters(const AliMUONTrack &track, Double_t sigma2Cut, Bool_t compatibleCluster[10]) const;
   Bool_t Match(AliMUONTrack &track, Double_t sigma2Cut, Int_t &nMatchClusters) const;
   
   /// return pointer to track parameters at vertex (can be 0x0)
@@ -183,7 +183,7 @@ class AliMUONTrack : public TObject
   
   // methods
   Bool_t ComputeClusterWeights(TMatrixD& clusterWeightsNB, TMatrixD& clusterWeightsB,
-                              TMatrixD* mcsCovariances = 0, AliMUONVCluster* discardedCluster = 0) const;
+                              TMatrixD* mcsCovariances = 0, const AliMUONVCluster* discardedCluster = 0) const;
   void   ComputeMCSCovariances(TMatrixD& mcsCovariances) const;
   
   
index 6af74ed077b525e717862e1c1c0bf392fdf37a13..1b189f03af55b7c0edfd43d6cbc60925075e9f61 100644 (file)
@@ -1026,7 +1026,7 @@ void AliMUONTrackExtrap::CovP2Cov(const TMatrixD &param, TMatrixD &covP)
 }
 
  //__________________________________________________________________________
-void AliMUONTrackExtrap::ExtrapOneStepHelix(Double_t charge, Double_t step, Double_t *vect, Double_t *vout)
+void AliMUONTrackExtrap::ExtrapOneStepHelix(Double_t charge, Double_t step, const Double_t *vect, Double_t *vout)
 {
 /// <pre>
 ///    ******************************************************************
@@ -1145,7 +1145,7 @@ void AliMUONTrackExtrap::ExtrapOneStepHelix(Double_t charge, Double_t step, Doub
 }
 
  //__________________________________________________________________________
-void AliMUONTrackExtrap::ExtrapOneStepHelix3(Double_t field, Double_t step, Double_t *vect, Double_t *vout)
+void AliMUONTrackExtrap::ExtrapOneStepHelix3(Double_t field, Double_t step, const Double_t *vect, Double_t *vout)
 {
 /// <pre>
 ///    ******************************************************************
@@ -1223,7 +1223,7 @@ void AliMUONTrackExtrap::ExtrapOneStepHelix3(Double_t field, Double_t step, Doub
 }
 
  //__________________________________________________________________________
-Bool_t AliMUONTrackExtrap::ExtrapOneStepRungekutta(Double_t charge, Double_t step, Double_t* vect, Double_t* vout)
+Bool_t AliMUONTrackExtrap::ExtrapOneStepRungekutta(Double_t charge, Double_t step, const Double_t* vect, Double_t* vout)
 {
 /// <pre>
 ///    ******************************************************************
index 66ee9ed2d116be1187f5d1b5682316fd6e56c6f9..809c4692a3f7b45518a8616dacec7a57006d18fa 100644 (file)
@@ -73,7 +73,7 @@ class AliMUONTrackExtrap : public TObject
   static Double_t GetMCSAngle2(const AliMUONTrackParam& param, Double_t dZ, Double_t x0);
   static void     AddMCSEffect(AliMUONTrackParam *param, Double_t dZ, Double_t x0);
   
-  static Bool_t ExtrapOneStepRungekutta(Double_t charge, Double_t step, Double_t* vect, Double_t* vout);
+  static Bool_t ExtrapOneStepRungekutta(Double_t charge, Double_t step, const Double_t* vect, Double_t* vout);
   
   
  private:
@@ -120,8 +120,8 @@ class AliMUONTrackExtrap : public TObject
   static void Cov2CovP(const TMatrixD &param, TMatrixD &cov);
   static void CovP2Cov(const TMatrixD &param, TMatrixD &cov);
   
-  static void ExtrapOneStepHelix(Double_t charge, Double_t step, Double_t *vect, Double_t *vout);
-  static void ExtrapOneStepHelix3(Double_t field, Double_t step, Double_t *vect, Double_t *vout);
+  static void ExtrapOneStepHelix(Double_t charge, Double_t step, const Double_t *vect, Double_t *vout);
+  static void ExtrapOneStepHelix3(Double_t field, Double_t step, const Double_t *vect, Double_t *vout);
   
   ClassDef(AliMUONTrackExtrap, 0) // Tools for track extrapolation in ALICE dimuon spectrometer
 };
index ff842c1aa791e58f6413b1752f91b105db343745..7582223d4a5b7769c302d45a73241f62bc1dece1 100644 (file)
@@ -315,7 +315,7 @@ Int_t AliMUONTrackLight::GetParentFlavour(Int_t idParent) const {
 }
 
 //====================================
-void AliMUONTrackLight::PrintInfo(Option_t* opt){
+void AliMUONTrackLight::PrintInfo(const Option_t* opt){
   /// prints information about the track: 
   /// - "H" muon's decay history
   /// - "K" muon kinematics
index 73c982cb018425d3be0fc96ef7f510bfe4a85807..1152912b28d48b3344b0f9824bfe085e35c0b38a 100644 (file)
@@ -102,7 +102,7 @@ class AliMUONTrackLight : public TObject {
   Bool_t IsMotherAResonance(Int_t index=0) const;
   /// Return flag for oscillation 
   Bool_t GetOscillation() const {return fOscillation;}
-  virtual void PrintInfo(Option_t* opt); //"H" muon's decay history
+  virtual void PrintInfo(const Option_t* opt); //"H" muon's decay history
   //"K" muon kinematics
   //"A" all variables
   Int_t GetParentFlavour(Int_t idParent=0) const;
index 8b54b0408d2225f446d9d73a59d20f0abb6bbf33..385a834f76fdf85ce7766ec7bd2c25ca669cfe5d 100644 (file)
@@ -864,7 +864,7 @@ AliMUONTrackerData::Channel(Int_t detElemId, Int_t manuId,
 //_____________________________________________________________________________
 AliMUONVCalibParam* 
 AliMUONTrackerData::ChannelParam(Int_t detElemId, Int_t manuId,
-                                 AliMUONVCalibParam* external) const
+                                 const AliMUONVCalibParam* external) const
 {
   /// Return (if it exist) the VCalibParam for a given manu
   
index ebe2c07503d3506775233201eae04e81f4f8890c..6fbe4322d3cd7a5aeab7f2b9af212bfae2f7a5fe 100644 (file)
@@ -141,7 +141,7 @@ private:
   AliMUONVCalibParam* CreateChamberParam(Int_t chamberId) const;
   
   AliMUONVCalibParam* ChannelParam(Int_t detElemId, Int_t manuId,
-                                   AliMUONVCalibParam* external=0x0) const;
+                                   const AliMUONVCalibParam* external=0x0) const;
 
   AliMUONVCalibParam* DetectionElementParam(Int_t detElemId, Bool_t create=kFALSE) const;
 
index e55f9745eb4d006767f1b271a31b7a9980c247f9..577d2696052981c325f149b8852737543fff06dc 100644 (file)
@@ -370,7 +370,7 @@ void AliMUONTriggerElectronics::DumpOS()
 }
 
 //___________________________________________
-void AliMUONTriggerElectronics::Scan(Option_t *option)
+void AliMUONTriggerElectronics::Scan(const Option_t *option)
 {
   /// SCAN
   ///
@@ -718,7 +718,7 @@ void AliMUONTriggerElectronics::Digits2Trigger(const AliMUONVDigitStore& digitSt
 }
 
 //___________________________________________
-void AliMUONTriggerElectronics::Feed(AliMUONVTriggerStore& triggerStore)
+void AliMUONTriggerElectronics::Feed(const AliMUONVTriggerStore& triggerStore)
 {
   //
   /// Fill inputs from reconstructed local trigger store
index 12d2f12fe3dbd966b87d447c1fa42dd7a488f49e..4bf9692071965bd986709e1344b83ff70c79e6ce 100644 (file)
@@ -40,10 +40,10 @@ class AliMUONTriggerElectronics : public TObject
 
       virtual void Feed(UShort_t pattern[2][4]);
       virtual void Feed(const AliMUONVDigitStore& digitStore);
-      virtual void Feed(AliMUONVTriggerStore& triggerStore);
+      virtual void Feed(const AliMUONVTriggerStore& triggerStore);
       virtual void Reset();
 
-      virtual void Scan(Option_t *option);
+      virtual void Scan(const Option_t *option);
 
       virtual void LocalResponse();
       virtual void RegionalResponse();
index 21f476dbae3bfb82db1e22ff56b2a1fbbae407bf..df9a8e5d4ce6f18e51f2e9e1beb4d91d62c1605d 100644 (file)
@@ -492,7 +492,7 @@ Bool_t
 AliMUONTriggerIO::WriteConfig(const char* localFile,
                             const char* regionalFile,
                             const char* globalFile,
-                            AliMUONVStore* localMasks,
+                            const AliMUONVStore* localMasks,
                     AliMUONRegionalTriggerConfig* regionalConfig,
                     AliMUONGlobalCrateConfig* globalConfig) const
 {
@@ -671,7 +671,7 @@ AliMUONTriggerIO::WriteRegionalConfig(const char* regionalFile, AliMUONRegionalT
 
 //_____________________________________________________________________________
 Bool_t 
-AliMUONTriggerIO::WriteLocalMasks(const char* localFile, AliMUONVStore& localMasks) const
+AliMUONTriggerIO::WriteLocalMasks(const char* localFile, const AliMUONVStore& localMasks) const
 {
     /// write local mask
     /// removing/adding enable for a local board need a update of the configuration 
index 9ed5bdf7b052db5b101561dfd18dd2004262b28b..7cc4dee0e61735dace363342f61a8e6c0ddf5e74 100644 (file)
@@ -58,7 +58,7 @@ public:
   Bool_t WriteConfig(const char* localFile,
                    const char* regionalFile,
                    const char* globalFile,
-                   AliMUONVStore* localMasks,
+                   const AliMUONVStore* localMasks,
                     AliMUONRegionalTriggerConfig* regionalConfig,
                     AliMUONGlobalCrateConfig* globalConfig) const;
 
@@ -73,7 +73,7 @@ public:
 
   Int_t  ReadLocalMasks(const char* localFile, AliMUONVStore& localMasks) const;
   
-  Bool_t WriteLocalMasks(const char* localFile, AliMUONVStore& localMasks) const;
+  Bool_t WriteLocalMasks(const char* localFile, const AliMUONVStore& localMasks) const;
 
   void   ReadLocalLUT(AliMUONTriggerLut& lut, Int_t localBoardId, FILE* flut);
   
index 84f23de2a5b89bb02a4bdac03644900e58ee45c0..be658f89a30130b88414c660e368ff6d0d326201 100644 (file)
@@ -1099,8 +1099,8 @@ UChar_t AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal(UInt_t global
 }
 
 //____________________________________________________________________________ 
-void AliMUONTriggerQADataMakerRec::RawTriggerMatchOutLocal(AliMUONVTriggerStore& inputTriggerStore,
-                                                          AliMUONVTriggerStore& recoTriggerStore)
+void AliMUONTriggerQADataMakerRec::RawTriggerMatchOutLocal(const AliMUONVTriggerStore& inputTriggerStore,
+                                                          const AliMUONVTriggerStore& recoTriggerStore)
 {
   //
   /// Match data and reconstructed Local Trigger decision
index 3e03ba6b75243a90d65f528647adf4fc050973be..5d6492506a1575711f98c7d1c04db22a98d811a3 100644 (file)
@@ -60,7 +60,7 @@ private:
   TObjArray* GetDCSValues(Int_t iMeas, Int_t detElemId,
                          TMap* triggerDcsMap, AliMpDCSNamer& triggerDcsNamer);
   UChar_t RawTriggerInGlobal2OutGlobal(UInt_t globalInput[4]);
-  void RawTriggerMatchOutLocal(AliMUONVTriggerStore& inputTriggerStore, AliMUONVTriggerStore& recoTriggerStore);
+  void RawTriggerMatchOutLocal(const AliMUONVTriggerStore& inputTriggerStore, const AliMUONVTriggerStore& recoTriggerStore);
   //void RawTriggerMatchOutLocalInRegional();
   void RawTriggerMatchOutGlobal(AliMUONGlobalTrigger& inputLocalTrigger,
                                AliMUONGlobalTrigger& recoGlobalTrigger,
index 1746612bfc5e42ad0f8de49ea5a091ec80775b6e..c92a86e8a9ea0d9ec19af2b21f656e1210e814e6 100644 (file)
@@ -128,7 +128,7 @@ AliMUONVQADataMakerRec::GetRawsData(Int_t index) const
 
 //_____________________________________________________________________________
 void 
-AliMUONVQADataMakerRec::ResetDetector(TObjArray* list)
+AliMUONVQADataMakerRec::ResetDetector(const TObjArray* list)
 {
   /// Reset all histograms found in list, that match either trigger or tracker
 
index ce80a094a40d56402c68f4e3add023bc8340a7a8..7a627639f3bf7f4057255f9568f63834176839e8 100644 (file)
@@ -76,7 +76,7 @@ public:
   
 protected:
 
-  void ResetDetector(TObjArray* list);
+  void ResetDetector(const TObjArray* list);
   
   Int_t RunNumber() const;
   
index 0bd48c09e2f86e9894e16f1c004a25c9bfd74ecd..116f6cc6cc12df98266b52729f53ee879362536e 100755 (executable)
@@ -77,7 +77,7 @@ void AliMpZone::AddSubZone(AliMpSubZone* subZone)
 }  
   
 //_____________________________________________________________________________
-AliMpSubZone* AliMpZone::FindSubZone(AliMpVMotif* motif) const
+AliMpSubZone* AliMpZone::FindSubZone(const AliMpVMotif* motif) const
 {
 /// Find a subzone with a specified motif;
 /// return 0 if not found.
index ec3e1a62cbf7a240f1c21f72da38aa2f61751a89..d470b25b6e95ed39e75a3a1ba483462f80a6303a 100755 (executable)
@@ -33,7 +33,7 @@ class AliMpZone : public TObject
     void AddSubZone(AliMpSubZone* subZone);
 
     // find methods
-    AliMpSubZone* FindSubZone(AliMpVMotif* motif) const;
+    AliMpSubZone* FindSubZone(const AliMpVMotif* motif) const;
     
     // set methods
     void SetPadDimensions(Double_t dx, Double_t dy);