]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing self-assignment
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2011 10:44:59 +0000 (10:44 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2011 10:44:59 +0000 (10:44 +0000)
STEER/CDB/AliBaseCalibViewer.cxx
TRD/AliTRDCalibViewerGUI.cxx

index 009f201f8cce4d322ffd088d25ad41b2f0dbd958..4b1dad9b91309ff77cd74cbd10c9e35b2c1571e1 100644 (file)
@@ -152,20 +152,18 @@ AliBaseCalibViewer::~AliBaseCalibViewer()
 }
 
 //_____________________________________________________________________________
-void AliBaseCalibViewer::Delete(Option_t* option) {
+void AliBaseCalibViewer::Delete(Option_t* /*option*/) {
    //
    // Should be called from AliBaseCalibViewerGUI class only.
    // If you use Delete() do not call the destructor.
    // All objects (except those contained in fListOfObjectsToBeDeleted) will be deleted, the file will be closed.
    //
    
-   option = option;  // to avoid warnings on compiling   
    if (fTree && fTreeMustBeDeleted) {
       fTree->SetCacheSize(0);
       fTree->Delete();
    }
-   if (fFile)
-      delete fFile;
+   delete fFile;
    delete fListOfObjectsToBeDeleted;
 }
 
@@ -450,21 +448,14 @@ TH1F* AliBaseCalibViewer::SigmaCut(Int_t n, Float_t *array, Float_t mean, Float_
 }
 
 //_____________________________________________________________________________
-TH1F* AliBaseCalibViewer::SigmaCut(Int_t n, Double_t *array, Double_t mean, Double_t sigma, Int_t nbins, Double_t *xbins, Double_t sigmaMax){
+TH1F* AliBaseCalibViewer::SigmaCut(Int_t /*n*/, Double_t */*array*/, Double_t /*mean*/, Double_t /*sigma*/, 
+                                  Int_t /*nbins*/, Double_t */*xbins*/, Double_t /*sigmaMax*/){
    // 
    // SigmaCut for variable binsize
    // NOT YET IMPLEMENTED !!!
    // 
    printf("SigmaCut with variable binsize, Not yet implemented\n");
-   // avoid compiler warnings:
-   n=n;
-   mean=mean;
-   sigma=sigma;
-   nbins=nbins;
-   sigmaMax=sigmaMax;
-   array=array;
-   xbins=xbins;
-   
+
    return 0;
 }
 
@@ -683,8 +674,8 @@ Int_t AliBaseCalibViewer::SigmaCut(const Char_t* drawCommand, const Char_t* sect
 
 //_____________________________________________________________________________
 Int_t AliBaseCalibViewer::Integrate(const Char_t* drawCommand, const Char_t* sector, const Char_t* cuts, 
-                                   Float_t sigmaMax, Bool_t plotMean, Bool_t plotMedian, Bool_t plotLTM, 
-                                   const Char_t *sigmas, Float_t sigmaStep) const {
+                                   Float_t /*sigmaMax*/, Bool_t plotMean, Bool_t plotMedian, Bool_t plotLTM, 
+                                   const Char_t *sigmas, Float_t /*sigmaStep*/) const {
    //
    // Creates an integrated histogram Begin_Latex S(t, #mu, #sigma) End_Latex, out of the input distribution distribution Begin_Latex f(x, #mu, #sigma) End_Latex, given in "histogram"   
    // "mean" and "sigma" are Begin_Latex #mu End_Latex and  Begin_Latex #sigma End_Latex of the distribution in "histogram", to be specified by the user
@@ -698,9 +689,6 @@ Int_t AliBaseCalibViewer::Integrate(const Char_t* drawCommand, const Char_t* sec
    */
    
    Double_t ltmFraction = 0.8;
-   // avoid compiler warnings:
-   sigmaMax = sigmaMax;
-   sigmaStep = sigmaStep;
    
    TString drawStr(drawCommand);
    Bool_t dangerousToDraw = drawStr.Contains(":") || drawStr.Contains(">>");
index 0d09dd083e153c208656ae75720c5d09f9ec909a..232e915f20a5142ec523ed5f736f5806670ddba3 100644 (file)
@@ -182,11 +182,10 @@ AliTRDCalibViewerGUI::~AliTRDCalibViewerGUI() {
 }
 
 //________________________________________________________________________________________________
-Bool_t AliTRDCalibViewerGUI::CreateDetailsTree(Int_t run, const Char_t* outFile, const Char_t* ocdbStorage) {
+Bool_t AliTRDCalibViewerGUI::CreateDetailsTree(Int_t run, const Char_t* outFile, const Char_t* /*ocdbStorage*/) {
   //
   // Get pad level info from OCDB for a given run and dump it into a tree
   // 
-  ocdbStorage = ocdbStorage;   // to avoid warnings
   if(!AliCDBManager::Instance()->GetDefaultStorage()){
     std::cout << "AliTRDCalibViewerGUI::CreateDetailsTree(): Default Storage not set. Cannot create Calibration Tree!" << std::endl;
     return kFALSE;