]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
More on char* constantness
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Nov 2008 17:29:59 +0000 (17:29 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Nov 2008 17:29:59 +0000 (17:29 +0000)
TPC/AliTPCCalibViewer.cxx
TPC/AliTPCCalibViewer.h
TPC/AliTPCLaserTracks.cxx
TPC/AliTPCLaserTracks.h
TPC/AliTPCcalibTracks.cxx
TPC/AliTPCcalibTracks.h

index c81218bd3cb8ecf73cfe04a30d6764ab8b3f0325..2c7492ec15998d9d36bc80753417780b55012f2a 100644 (file)
@@ -1594,7 +1594,7 @@ AliTPCCalPad* AliTPCCalibViewer::GetCalPad(const char* desiredData, const char*
 }
 
 //_____________________________________________________________________________
-AliTPCCalROC* AliTPCCalibViewer::GetCalROC(const char* desiredData, UInt_t sector, char* cuts) const {
+AliTPCCalROC* AliTPCCalibViewer::GetCalROC(const char* desiredData, UInt_t sector, const char* cuts) const {
   //
   // creates a AliTPCCalROC out of the desiredData
   // the functionality of EasyDraw1D is used
index dbba4b997fe86572994cc13e99300d810f45c76b..9b66898558bcd48b0165c18c6559dc63ce800acc 100644 (file)
@@ -61,7 +61,7 @@ public:
    AliTPCCalPad* GetCalPadOld(const char* desiredData, const char* cuts = "", const char* calPadName = "NoName") const;     // returns an AliTPCCalPad object containing the specified data with cuts applied
    AliTPCCalPad* GetCalPad(const char* desiredData, const char* cuts = "", const char* calPadName = "NoName") const;     // returns an AliTPCCalPad object containing the specified data with cuts applied
 
-   AliTPCCalROC* GetCalROC(const char* desiredData, UInt_t sector, char* cuts = "") const;  // returns an AliTPCCalROC object containing the specified data for sector with cuts applied
+   AliTPCCalROC* GetCalROC(const char* desiredData, UInt_t sector, const char* cuts = "") const;  // returns an AliTPCCalROC object containing the specified data for sector with cuts applied
    
    TObjArray* GetArrayOfCalPads();
    TObjArray* GetListOfVariables(Bool_t printList = kFALSE);
index bef2d0d117bf9462ed66615b3f6de4b21f23f68b..0986e3a0b1ff0f7db09423b4316b7c69fec1fff0 100644 (file)
@@ -337,7 +337,7 @@ TPolyLine3D* AliTPCLaserTracks::GetLine()
 }
 
 //_______________________________________________________________________
-TObjArray* AliTPCLaserTracks::GetLines(Char_t* file, Char_t *cuts)
+TObjArray* AliTPCLaserTracks::GetLines(const Char_t* file, const Char_t *cuts)
 {
   //
   // Read the input files with the laser track 
index c4f5b387bb4ccd87d15dcc914d827daab7fe7681..2ddcd7c084eae73131a1c188d17cebc872a9ec06 100644 (file)
@@ -61,7 +61,7 @@ public:
 
     Int_t FindMirror(Char_t *file, Double_t x, Double_t y, Double_t z, Double_t phi);
 
-    TObjArray* GetLines(Char_t* file, Char_t *cuts="");
+    TObjArray* GetLines(const Char_t* file, const Char_t *cuts="");
 
 protected:
     Int_t fId;              //Laser beam id            (0-335)
index 9a53e26e7383557151632fe44c4d839f5857a576..8f7538273af0ff2ee47115ba4cfb5152ebce3dfb 100644 (file)
@@ -1362,7 +1362,7 @@ void AliTPCcalibTracks::Draw(Option_t* opt){
 }
 
 
-void AliTPCcalibTracks::MakeReport(Int_t stat, char* pathName){ 
+void AliTPCcalibTracks::MakeReport(Int_t stat, const char* pathName){ 
    // 
    // all functions are called, that produce pictures
    // the histograms are written to the directory 'pathName'
@@ -1381,7 +1381,7 @@ void AliTPCcalibTracks::MakeReport(Int_t stat, char* pathName){
 }
    
 
-void AliTPCcalibTracks::MakeAmpPlots(Int_t stat, char* pathName){ 
+void AliTPCcalibTracks::MakeAmpPlots(Int_t stat, const char* pathName){ 
    // 
    // creates several plots:
    // fArrayAmp.ps, fArrayAmpRow.ps and DeltaYZ.ps
@@ -1451,7 +1451,7 @@ void AliTPCcalibTracks::MakeAmpPlots(Int_t stat, char* pathName){
 }
 
 
-void AliTPCcalibTracks::MakeDeltaPlots(char* pathName){
+void AliTPCcalibTracks::MakeDeltaPlots(const char* pathName){
    // 
    // creates several plots:
    // DeltaYZ.ps: DeltaY and DeltaZ histogram with gaus fit
@@ -1488,7 +1488,7 @@ void AliTPCcalibTracks::MakeDeltaPlots(char* pathName){
 }
 
 
-void AliTPCcalibTracks::MakeChargeVsDriftLengthPlotsOld(char* pathName){
+void AliTPCcalibTracks::MakeChargeVsDriftLengthPlotsOld(const char* pathName){
    // 
    // creates charge vs. driftlength plots, one TProfile for each ROC
    // is not correct like this, should be one TProfile for each sector and padsize
@@ -1530,7 +1530,7 @@ void AliTPCcalibTracks::MakeChargeVsDriftLengthPlotsOld(char* pathName){
 }   
 
 
-void AliTPCcalibTracks::MakeChargeVsDriftLengthPlots(char* pathName){
+void AliTPCcalibTracks::MakeChargeVsDriftLengthPlots(const char* pathName){
    // 
    // creates charge vs. driftlength plots, one TProfile for each ROC
    // under development....
@@ -1592,7 +1592,7 @@ void AliTPCcalibTracks::MakeChargeVsDriftLengthPlots(char* pathName){
 
 
 
-void AliTPCcalibTracks::FitResolutionNew(char* pathName){
+void AliTPCcalibTracks::FitResolutionNew(const char* pathName){
    // 
    // calculates different resulution fits in Y and Z direction
    // the histograms are written to 'ResolutionYZ.ps'
@@ -1715,7 +1715,7 @@ void AliTPCcalibTracks::FitResolutionNew(char* pathName){
 }
 
 
-void AliTPCcalibTracks::FitRMSNew(char* pathName){
+void AliTPCcalibTracks::FitRMSNew(const char* pathName){
    // 
    // calculates different resulution-rms fits in Y and Z direction
    // the histograms are written to 'RMS_YZ.ps'
@@ -1838,7 +1838,7 @@ void AliTPCcalibTracks::FitRMSNew(char* pathName){
 }
 
 
-void AliTPCcalibTracks::MakeResPlotsQTree(Int_t minEntries, char* pathName){
+void AliTPCcalibTracks::MakeResPlotsQTree(Int_t minEntries, const char* pathName){
    //
    // Make tree with resolution parameters
    // the result is written to 'resol.root' in directory 'pathname'
index bfff6a687a7edea784a542bb7468f161b887e857..99926d26a07e3502d5e07357d2d6f4b18eae8d33 100644 (file)
@@ -58,9 +58,9 @@ public :
   void     Process(AliESDEvent *event) {AliTPCcalibBase::Process(event);};
   void     Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
   virtual Long64_t Merge(TCollection *li);
-  void     MakeResPlotsQTree(Int_t minEntries = 100, char* pathName = "plots");
+  void     MakeResPlotsQTree(Int_t minEntries = 100, const char* pathName = "plots");
   static void MakeQPosNormAll(TTree * chain, AliTPCClusterParam * param, Int_t maxPoints=1000000);
-   void     MakeReport(Int_t stat, char* pathName = "plots");     // calls all functions that procude pictures, results are written to pathName, stat is the minimal statistic threshold
+   void     MakeReport(Int_t stat, const char* pathName = "plots");     // calls all functions that procude pictures, results are written to pathName, stat is the minimal statistic threshold
   //
 
    
@@ -72,12 +72,12 @@ public :
   
   void     SetStyle() const;
   void     Draw(Option_t* opt);                                  // draw some exemplaric histograms for fast result-check
-  void     MakeAmpPlots(Int_t stat, char* pathName = "plots");
-  void     MakeDeltaPlots(char* pathName = "plots");
-  void     MakeChargeVsDriftLengthPlotsOld(char* pathName = "plots");
-  void     MakeChargeVsDriftLengthPlots(char* pathName = "plots");
-  void     FitResolutionNew(char* pathName = "plots");
-  void     FitRMSNew(char* pathName = "plots");
+  void     MakeAmpPlots(Int_t stat, const char* pathName = "plots");
+  void     MakeDeltaPlots(const char* pathName = "plots");
+  void     MakeChargeVsDriftLengthPlotsOld(const char* pathName = "plots");
+  void     MakeChargeVsDriftLengthPlots(const char* pathName = "plots");
+  void     FitResolutionNew(const char* pathName = "plots");
+  void     FitRMSNew(const char* pathName = "plots");
   
   TObjArray* GetfArrayAmpRow() {return fArrayAmpRow;}
   TObjArray* GetfArrayAmp() {return fArrayAmp;}