]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Compilation warnings
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Jan 2012 07:39:10 +0000 (07:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Jan 2012 07:39:10 +0000 (07:39 +0000)
EMCAL/AliEMCALTriggerBoard.cxx
EVGEN/AliGenHaloProtvino.cxx
HLT/ITS/AliHLTITStracker.cxx
MFT/AliMFTClusterFinder.cxx
MFT/AliMFTClusterFinder.h
MFT/AliMuonForwardTrackFinder.cxx
MFT/AliMuonForwardTrackFinder.h
STEER/STEER/AliMC.cxx

index f52fa408075926516b9ff20f856f0a8a5c5feda8..3821eba031db46aec836ca89fd7bd279b253ca25 100644 (file)
@@ -124,7 +124,7 @@ void AliEMCALTriggerBoard::ZeroRegion()
 }
 
 //_______________
-void AliEMCALTriggerBoard::SlidingWindow(TriggerType_t type, Int_t thres, Int_t time)
+void AliEMCALTriggerBoard::SlidingWindow(TriggerType_t /*type*/, Int_t thres, Int_t time)
 {
        // Sliding window
        
index 0a6041e434412212f402629c6a41eb351c4c861d..4466a194e37e2ee9f556687316d333efa80215ca 100644 (file)
@@ -139,6 +139,7 @@ void AliGenHaloProtvino::Init()
     const Float_t kFlux         = 1.e11 / 25.e-9; // protons/s
     Float_t pFlux[5] = {0.2, 0.2, 0.3, 0.3, 1.0};
 
+    Int_t ncols = 0;
     if (fRunPeriod < 5) {
 //
 //  Ring 1   
@@ -146,7 +147,9 @@ void AliGenHaloProtvino::Init()
 
        for (i = 0; i < fGPASize; i++)
        {
-           fscanf(file, "%f %f %f %f %f %f", &z, &p[0], &p[1], &p[2] , &p[3], &p[4]);
+           ncols = fscanf(file, "%f %f %f %f %f %f", &z, &p[0], &p[1], &p[2] , &p[3], &p[4]);
+           if (ncols<0) break;
+
            fG1[i] = p[fRunPeriod];
            
            if (i > 0) {
@@ -160,7 +163,9 @@ void AliGenHaloProtvino::Init()
 //
        for (i = 0; i < fGPASize; i++)
        {
-           fscanf(file, "%f %f %f %f %f %f", &z, &p[0], &p[1], &p[2] , &p[3], &p[4]);
+           ncols = fscanf(file, "%f %f %f %f %f %f", &z, &p[0], &p[1], &p[2] , &p[3], &p[4]);
+           if (ncols<0) break;
+
            fG2[i] = p[fRunPeriod];
            if (i > 0) {
                fZ2[i] = fZ2[i-1] + z;
@@ -180,7 +185,9 @@ void AliGenHaloProtvino::Init()
     } else {
        for (i = 0; i < fGPASize; i++) 
        {
-           fscanf(file, "%f %e %e %e %e %e", &z, &p[0], &p[1], &p[2], &p[3], &p[4]);
+           ncols = fscanf(file, "%f %e %e %e %e %e", &z, &p[0], &p[1], &p[2], &p[3], &p[4]);
+           if (ncols<0) break;
+
            z /= 1000.;
            fG1[i] = p[4] * kCrossSection * kFlux;             // 1/m/s
            // 1/3 of nominal intensity at startup
index 567a5f6bde68dd4edbc27de07d9a4af4adb5703c..54afc8f071b7cdd445e28f042b182f3bcd0c533a 100644 (file)
@@ -81,7 +81,7 @@ Int_t AliHLTITStracker::Clusters2Tracks(AliESDEvent *event) {
       try {
         t=new AliHLTITStrack(*esd);
       } catch (const Char_t *msg) {
-        Warning("Clusters2Tracks",msg);
+        Warning("Clusters2Tracks","%s\n",msg);
         delete t;
         continue;
       }
index 083401e1965d5110337d2b780b3c810da252d8a5..165ac720320b31f707d6311a4fc2b274dc057655 100644 (file)
@@ -64,7 +64,7 @@ AliMFTClusterFinder::~AliMFTClusterFinder() {
 
 //====================================================================================================================================================
 
-void AliMFTClusterFinder::Init(Char_t *nameGeomFile) {
+void AliMFTClusterFinder::Init(const Char_t *nameGeomFile) {
 
   fSegmentation = new AliMFTSegmentation(nameGeomFile);
   fNPlanes = fSegmentation -> GetNPlanes();
index 25d153206518da51185aed848ff3ea612987208f..c464a9f472bf4cc90bce71090269beac63d0c12c 100644 (file)
@@ -30,7 +30,7 @@ public:
   AliMFTClusterFinder();
   ~AliMFTClusterFinder();
 
-  void Init(Char_t *nameGeomFile);
+  void Init(const Char_t *nameGeomFile);
   
   void MakeClusterBranch(TTree *treeCluster);
   void SetClusterTreeAddress(TTree *treeCluster);
index 17881e9c37655740d8d91713f18af690a3874f64..66fb665cf46afbb4b78f9c326ec53b797b241fcb 100644 (file)
@@ -1235,7 +1235,7 @@ void AliMuonForwardTrackFinder::PrintParticleHistory() {
 
 //===========================================================================================================================================
 
-Bool_t AliMuonForwardTrackFinder::IsMother(Char_t *nameMother) {
+Bool_t AliMuonForwardTrackFinder::IsMother(const Char_t *nameMother) {
   
   Bool_t result = kFALSE;
   
index 708947932c6cc14b88b33288b64bd2caaf0fd258..3cc512c495dc386ab817bfda4465f2bbaad18312 100644 (file)
@@ -129,7 +129,7 @@ public:
 
   Bool_t IsCorrectMatch(AliMFTCluster *cluster);
   void CheckCurrentMuonTrackable();
-  Bool_t IsMother(Char_t *nameMother);
+  Bool_t IsMother(const Char_t *nameMother);
 
   void SetMatchingMode(Int_t matchingMode) { fMatchingMode = matchingMode; }
   void SetMinResearchRadiusAtLastPlane(Double_t minResearchRadius) { fMinResearchRadiusAtLastPlane = minResearchRadius; }
index 69e6967b6efe96bac56115ab2cd6c26ba32024ab..4f031adc87205b9e8a3e2cdd8865d5c9ab9e30ad 100644 (file)
@@ -854,7 +854,7 @@ void AliMC::ReadTransPar()
       return;
     }
     // Read the end of line
-    fscanf(lun,"%*c");
+    iret=fscanf(lun,"%*c");
     if(!iret) continue;
     if(line[0]=='*') continue;
     // Read the numbers