From 57e2ad1a48096a0838d3e4a05f69d5469b822971 Mon Sep 17 00:00:00 2001 From: laphecet Date: Tue, 15 Jun 2010 12:04:55 +0000 Subject: [PATCH] Fixing coding conventions (const arguments in functions) (Ivana) --- MUON/AliMUON2DStoreValidator.cxx | 6 +++--- MUON/AliMUON2DStoreValidator.h | 6 +++--- MUON/AliMUONAttPainterSelectorFrame.cxx | 2 +- MUON/AliMUONAttPainterSelectorFrame.h | 2 +- MUON/AliMUONClusterSplitterMLEM.cxx | 12 ++++++------ MUON/AliMUONClusterSplitterMLEM.h | 12 ++++++------ MUON/AliMUONDigitMaker.cxx | 2 +- MUON/AliMUONDigitMaker.h | 2 +- MUON/AliMUONLocalTriggerBoard.cxx | 4 ++-- MUON/AliMUONLocalTriggerBoard.h | 4 ++-- MUON/AliMUONPainterDataRegistry.cxx | 8 ++++---- MUON/AliMUONPainterDataRegistry.h | 8 ++++---- MUON/AliMUONPainterDataSourceFrame.cxx | 2 +- MUON/AliMUONPainterDataSourceFrame.h | 2 +- MUON/AliMUONPainterInterfaceHelper.cxx | 4 ++-- MUON/AliMUONPainterInterfaceHelper.h | 4 ++-- MUON/AliMUONPainterMasterFrame.cxx | 2 +- MUON/AliMUONPainterMasterFrame.h | 2 +- MUON/AliMUONPainterMatrixFrame.cxx | 2 +- MUON/AliMUONPainterMatrixFrame.h | 2 +- MUON/AliMUONPainterRegistry.cxx | 6 +++--- MUON/AliMUONPainterRegistry.h | 6 +++--- MUON/AliMUONPairLight.cxx | 2 +- MUON/AliMUONPairLight.h | 2 +- MUON/AliMUONRawWriter.cxx | 4 ++-- MUON/AliMUONRawWriter.h | 2 +- MUON/AliMUONRecoCheck.cxx | 2 +- MUON/AliMUONRecoCheck.h | 2 +- MUON/AliMUONTrack.cxx | 4 ++-- MUON/AliMUONTrack.h | 4 ++-- MUON/AliMUONTrackExtrap.cxx | 6 +++--- MUON/AliMUONTrackExtrap.h | 6 +++--- MUON/AliMUONTrackLight.cxx | 2 +- MUON/AliMUONTrackLight.h | 2 +- MUON/AliMUONTrackerData.cxx | 2 +- MUON/AliMUONTrackerData.h | 2 +- MUON/AliMUONTriggerElectronics.cxx | 4 ++-- MUON/AliMUONTriggerElectronics.h | 4 ++-- MUON/AliMUONTriggerIO.cxx | 4 ++-- MUON/AliMUONTriggerIO.h | 4 ++-- MUON/AliMUONTriggerQADataMakerRec.cxx | 4 ++-- MUON/AliMUONTriggerQADataMakerRec.h | 2 +- MUON/AliMUONVQADataMakerRec.cxx | 2 +- MUON/AliMUONVQADataMakerRec.h | 2 +- MUON/mapping/AliMpZone.cxx | 2 +- MUON/mapping/AliMpZone.h | 2 +- 46 files changed, 86 insertions(+), 86 deletions(-) diff --git a/MUON/AliMUON2DStoreValidator.cxx b/MUON/AliMUON2DStoreValidator.cxx index dc7c0397459..ca12872181e 100644 --- a/MUON/AliMUON2DStoreValidator.cxx +++ b/MUON/AliMUON2DStoreValidator.cxx @@ -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 diff --git a/MUON/AliMUON2DStoreValidator.h b/MUON/AliMUON2DStoreValidator.h index 61cf1c55199..b73c207cbe8 100644 --- a/MUON/AliMUON2DStoreValidator.h +++ b/MUON/AliMUON2DStoreValidator.h @@ -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. diff --git a/MUON/AliMUONAttPainterSelectorFrame.cxx b/MUON/AliMUONAttPainterSelectorFrame.cxx index 7c9a71c565b..96ae8d08d08 100644 --- a/MUON/AliMUONAttPainterSelectorFrame.cxx +++ b/MUON/AliMUONAttPainterSelectorFrame.cxx @@ -167,7 +167,7 @@ AliMUONAttPainterSelectorFrame::ViewClicked(Int_t buttonId) //_____________________________________________________________________________ void -AliMUONAttPainterSelectorFrame::Clicked(AliMUONAttPainter* newValues) +AliMUONAttPainterSelectorFrame::Clicked(const AliMUONAttPainter* newValues) { /// Emit a signal diff --git a/MUON/AliMUONAttPainterSelectorFrame.h b/MUON/AliMUONAttPainterSelectorFrame.h index d8cb56aed6b..b55eca171de 100644 --- a/MUON/AliMUONAttPainterSelectorFrame.h +++ b/MUON/AliMUONAttPainterSelectorFrame.h @@ -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); diff --git a/MUON/AliMUONClusterSplitterMLEM.cxx b/MUON/AliMUONClusterSplitterMLEM.cxx index bedd742251c..ee8f7278c05 100644 --- a/MUON/AliMUONClusterSplitterMLEM.cxx +++ b/MUON/AliMUONClusterSplitterMLEM.cxx @@ -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. diff --git a/MUON/AliMUONClusterSplitterMLEM.h b/MUON/AliMUONClusterSplitterMLEM.h index d5b800c3528..00e0f68903e 100644 --- a/MUON/AliMUONClusterSplitterMLEM.h +++ b/MUON/AliMUONClusterSplitterMLEM.h @@ -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, diff --git a/MUON/AliMUONDigitMaker.cxx b/MUON/AliMUONDigitMaker.cxx index 05bb6e6ce4f..70cd1e89517 100644 --- a/MUON/AliMUONDigitMaker.cxx +++ b/MUON/AliMUONDigitMaker.cxx @@ -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 diff --git a/MUON/AliMUONDigitMaker.h b/MUON/AliMUONDigitMaker.h index a7a2e57d8ab..0db61172832 100644 --- a/MUON/AliMUONDigitMaker.h +++ b/MUON/AliMUONDigitMaker.h @@ -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, diff --git a/MUON/AliMUONLocalTriggerBoard.cxx b/MUON/AliMUONLocalTriggerBoard.cxx index 3386104bc09..7277d409649 100644 --- a/MUON/AliMUONLocalTriggerBoard.cxx +++ b/MUON/AliMUONLocalTriggerBoard.cxx @@ -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 diff --git a/MUON/AliMUONLocalTriggerBoard.h b/MUON/AliMUONLocalTriggerBoard.h index 1a0f12d48ae..69a7ad1a335 100644 --- a/MUON/AliMUONLocalTriggerBoard.h +++ b/MUON/AliMUONLocalTriggerBoard.h @@ -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 diff --git a/MUON/AliMUONPainterDataRegistry.cxx b/MUON/AliMUONPainterDataRegistry.cxx index b3294fce601..1d0de183c5e 100644 --- a/MUON/AliMUONPainterDataRegistry.cxx +++ b/MUON/AliMUONPainterDataRegistry.cxx @@ -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 }; diff --git a/MUON/AliMUONPainterDataRegistry.h b/MUON/AliMUONPainterDataRegistry.h index ae0a8c70f7b..3cb52095b12 100644 --- a/MUON/AliMUONPainterDataRegistry.h +++ b/MUON/AliMUONPainterDataRegistry.h @@ -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(); diff --git a/MUON/AliMUONPainterDataSourceFrame.cxx b/MUON/AliMUONPainterDataSourceFrame.cxx index 946ca673d8b..9a507972a91 100644 --- a/MUON/AliMUONPainterDataSourceFrame.cxx +++ b/MUON/AliMUONPainterDataSourceFrame.cxx @@ -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 diff --git a/MUON/AliMUONPainterDataSourceFrame.h b/MUON/AliMUONPainterDataSourceFrame.h index 614aec42091..02c56ffcb88 100644 --- a/MUON/AliMUONPainterDataSourceFrame.h +++ b/MUON/AliMUONPainterDataSourceFrame.h @@ -44,7 +44,7 @@ public: void DataMakerWasRegistered(AliMUONVTrackerDataMaker* reader); - void DataMakerWasUnregistered(AliMUONVTrackerDataMaker* reader); + void DataMakerWasUnregistered(const AliMUONVTrackerDataMaker* reader); void HistogramButtonClicked(); diff --git a/MUON/AliMUONPainterInterfaceHelper.cxx b/MUON/AliMUONPainterInterfaceHelper.cxx index 0156550cef5..96d3a233f96 100644 --- a/MUON/AliMUONPainterInterfaceHelper.cxx +++ b/MUON/AliMUONPainterInterfaceHelper.cxx @@ -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 diff --git a/MUON/AliMUONPainterInterfaceHelper.h b/MUON/AliMUONPainterInterfaceHelper.h index 257e1529812..4cd8a90ee7b 100644 --- a/MUON/AliMUONPainterInterfaceHelper.h +++ b/MUON/AliMUONPainterInterfaceHelper.h @@ -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 }; diff --git a/MUON/AliMUONPainterMasterFrame.cxx b/MUON/AliMUONPainterMasterFrame.cxx index 681ced379a8..f6dc5c3860c 100644 --- a/MUON/AliMUONPainterMasterFrame.cxx +++ b/MUON/AliMUONPainterMasterFrame.cxx @@ -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...) diff --git a/MUON/AliMUONPainterMasterFrame.h b/MUON/AliMUONPainterMasterFrame.h index cf873aade9e..55bff6a4999 100644 --- a/MUON/AliMUONPainterMasterFrame.h +++ b/MUON/AliMUONPainterMasterFrame.h @@ -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; diff --git a/MUON/AliMUONPainterMatrixFrame.cxx b/MUON/AliMUONPainterMatrixFrame.cxx index 67fe4ac9403..30263f3066f 100644 --- a/MUON/AliMUONPainterMatrixFrame.cxx +++ b/MUON/AliMUONPainterMatrixFrame.cxx @@ -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 diff --git a/MUON/AliMUONPainterMatrixFrame.h b/MUON/AliMUONPainterMatrixFrame.h index 9c668e1c480..d626914a6a4 100644 --- a/MUON/AliMUONPainterMatrixFrame.h +++ b/MUON/AliMUONPainterMatrixFrame.h @@ -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); diff --git a/MUON/AliMUONPainterRegistry.cxx b/MUON/AliMUONPainterRegistry.cxx index 1615dd7269f..d2718dd034c 100644 --- a/MUON/AliMUONPainterRegistry.cxx +++ b/MUON/AliMUONPainterRegistry.cxx @@ -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 }; diff --git a/MUON/AliMUONPainterRegistry.h b/MUON/AliMUONPainterRegistry.h index 296a0c94523..2003dda7afc 100644 --- a/MUON/AliMUONPainterRegistry.h +++ b/MUON/AliMUONPainterRegistry.h @@ -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; diff --git a/MUON/AliMUONPairLight.cxx b/MUON/AliMUONPairLight.cxx index 4be3a031374..4c392caf086 100644 --- a/MUON/AliMUONPairLight.cxx +++ b/MUON/AliMUONPairLight.cxx @@ -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 diff --git a/MUON/AliMUONPairLight.h b/MUON/AliMUONPairLight.h index bbd0c477a3e..60c10a391bb 100644 --- a/MUON/AliMUONPairLight.h +++ b/MUON/AliMUONPairLight.h @@ -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 diff --git a/MUON/AliMUONRawWriter.cxx b/MUON/AliMUONRawWriter.cxx index bd06a746a18..48749cfc050 100644 --- a/MUON/AliMUONRawWriter.cxx +++ b/MUON/AliMUONRawWriter.cxx @@ -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 diff --git a/MUON/AliMUONRawWriter.h b/MUON/AliMUONRawWriter.h index 006766f7da4..cbcbc32987e 100644 --- a/MUON/AliMUONRawWriter.h +++ b/MUON/AliMUONRawWriter.h @@ -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(); diff --git a/MUON/AliMUONRecoCheck.cxx b/MUON/AliMUONRecoCheck.cxx index de76f24d902..9b22224356c 100644 --- a/MUON/AliMUONRecoCheck.cxx +++ b/MUON/AliMUONRecoCheck.cxx @@ -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). diff --git a/MUON/AliMUONRecoCheck.h b/MUON/AliMUONRecoCheck.h index 5e463cbdba5..e02fdc4639a 100644 --- a/MUON/AliMUONRecoCheck.h +++ b/MUON/AliMUONRecoCheck.h @@ -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: diff --git a/MUON/AliMUONTrack.cxx b/MUON/AliMUONTrack.cxx index 3b98ce745a0..d49874f6640 100644 --- a/MUON/AliMUONTrack.cxx +++ b/MUON/AliMUONTrack.cxx @@ -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. diff --git a/MUON/AliMUONTrack.h b/MUON/AliMUONTrack.h index db348840ab5..10620410c18 100644 --- a/MUON/AliMUONTrack.h +++ b/MUON/AliMUONTrack.h @@ -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; diff --git a/MUON/AliMUONTrackExtrap.cxx b/MUON/AliMUONTrackExtrap.cxx index 6af74ed077b..1b189f03af5 100644 --- a/MUON/AliMUONTrackExtrap.cxx +++ b/MUON/AliMUONTrackExtrap.cxx @@ -1026,7 +1026,7 @@ void AliMUONTrackExtrap::CovP2Cov(const TMatrixD ¶m, 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) { ///
 ///    ******************************************************************
@@ -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)
 {
 /// 
 ///	******************************************************************
@@ -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)
 {
 /// 
 ///	******************************************************************
diff --git a/MUON/AliMUONTrackExtrap.h b/MUON/AliMUONTrackExtrap.h
index 66ee9ed2d11..809c4692a3f 100644
--- a/MUON/AliMUONTrackExtrap.h
+++ b/MUON/AliMUONTrackExtrap.h
@@ -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 ¶m, TMatrixD &cov);
   static void CovP2Cov(const TMatrixD ¶m, 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
 };
diff --git a/MUON/AliMUONTrackLight.cxx b/MUON/AliMUONTrackLight.cxx
index ff842c1aa79..7582223d4a5 100644
--- a/MUON/AliMUONTrackLight.cxx
+++ b/MUON/AliMUONTrackLight.cxx
@@ -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
diff --git a/MUON/AliMUONTrackLight.h b/MUON/AliMUONTrackLight.h
index 73c982cb018..1152912b28d 100644
--- a/MUON/AliMUONTrackLight.h
+++ b/MUON/AliMUONTrackLight.h
@@ -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;
diff --git a/MUON/AliMUONTrackerData.cxx b/MUON/AliMUONTrackerData.cxx
index 8b54b0408d2..385a834f76f 100644
--- a/MUON/AliMUONTrackerData.cxx
+++ b/MUON/AliMUONTrackerData.cxx
@@ -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
   
diff --git a/MUON/AliMUONTrackerData.h b/MUON/AliMUONTrackerData.h
index ebe2c07503d..6fbe4322d3c 100644
--- a/MUON/AliMUONTrackerData.h
+++ b/MUON/AliMUONTrackerData.h
@@ -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;
 
diff --git a/MUON/AliMUONTriggerElectronics.cxx b/MUON/AliMUONTriggerElectronics.cxx
index e55f9745eb4..577d2696052 100644
--- a/MUON/AliMUONTriggerElectronics.cxx
+++ b/MUON/AliMUONTriggerElectronics.cxx
@@ -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
diff --git a/MUON/AliMUONTriggerElectronics.h b/MUON/AliMUONTriggerElectronics.h
index 12d2f12fe3d..4bf96920719 100644
--- a/MUON/AliMUONTriggerElectronics.h
+++ b/MUON/AliMUONTriggerElectronics.h
@@ -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();
diff --git a/MUON/AliMUONTriggerIO.cxx b/MUON/AliMUONTriggerIO.cxx
index 21f476dbae3..df9a8e5d4ce 100644
--- a/MUON/AliMUONTriggerIO.cxx
+++ b/MUON/AliMUONTriggerIO.cxx
@@ -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 
diff --git a/MUON/AliMUONTriggerIO.h b/MUON/AliMUONTriggerIO.h
index 9ed5bdf7b05..7cc4dee0e61 100644
--- a/MUON/AliMUONTriggerIO.h
+++ b/MUON/AliMUONTriggerIO.h
@@ -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);
   
diff --git a/MUON/AliMUONTriggerQADataMakerRec.cxx b/MUON/AliMUONTriggerQADataMakerRec.cxx
index 84f23de2a5b..be658f89a30 100644
--- a/MUON/AliMUONTriggerQADataMakerRec.cxx
+++ b/MUON/AliMUONTriggerQADataMakerRec.cxx
@@ -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
diff --git a/MUON/AliMUONTriggerQADataMakerRec.h b/MUON/AliMUONTriggerQADataMakerRec.h
index 3e03ba6b752..5d6492506a1 100644
--- a/MUON/AliMUONTriggerQADataMakerRec.h
+++ b/MUON/AliMUONTriggerQADataMakerRec.h
@@ -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,
diff --git a/MUON/AliMUONVQADataMakerRec.cxx b/MUON/AliMUONVQADataMakerRec.cxx
index 1746612bfc5..c92a86e8a9e 100644
--- a/MUON/AliMUONVQADataMakerRec.cxx
+++ b/MUON/AliMUONVQADataMakerRec.cxx
@@ -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
 
diff --git a/MUON/AliMUONVQADataMakerRec.h b/MUON/AliMUONVQADataMakerRec.h
index ce80a094a40..7a627639f3b 100644
--- a/MUON/AliMUONVQADataMakerRec.h
+++ b/MUON/AliMUONVQADataMakerRec.h
@@ -76,7 +76,7 @@ public:
   
 protected:
 
-  void ResetDetector(TObjArray* list);
+  void ResetDetector(const TObjArray* list);
   
   Int_t RunNumber() const;
   
diff --git a/MUON/mapping/AliMpZone.cxx b/MUON/mapping/AliMpZone.cxx
index 0bd48c09e2f..116f6cc6cc1 100755
--- a/MUON/mapping/AliMpZone.cxx
+++ b/MUON/mapping/AliMpZone.cxx
@@ -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.
diff --git a/MUON/mapping/AliMpZone.h b/MUON/mapping/AliMpZone.h
index ec3e1a62cbf..d470b25b6e9 100755
--- a/MUON/mapping/AliMpZone.h
+++ b/MUON/mapping/AliMpZone.h
@@ -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);
-- 
2.39.3