]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Compiler warnings
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jul 2010 20:23:15 +0000 (20:23 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jul 2010 20:23:15 +0000 (20:23 +0000)
TRD/AliTRDTriggerL1.cxx
TRD/AliTRDgtuSim.cxx
TRD/AliTRDmcmSim.cxx
TRD/AliTRDrawData.cxx
TRD/AliTRDtrapConfigHandler.cxx

index 99245a3b17e3bd9de3da4247fcbb46de5de31580..2174b224cd3ccefb5e0175383ed193cb0ee96727 100644 (file)
@@ -79,7 +79,7 @@ void AliTRDTriggerL1::Trigger()
     return;
   }
   TBranch *branch = trackTree->GetBranch("TRDtrackGTU");
-  AliDebug(1,Form("TRD trigger: found %i tracks", trackTree->GetEntriesFast()));
+  AliDebug(1,Form("TRD trigger: found %d tracks", trackTree->GetEntriesFast()));
   
   // trigger thresholds should go elsewhere
   Float_t ptThreshold1 = 2;
index 11cd6df7a97c92cefdddcaf1eb22ebb2d97fd082..a3e849acf65dd004ea2dfa8a24fa8f00fe1d142f 100644 (file)
@@ -123,7 +123,7 @@ Bool_t AliTRDgtuSim::RunGTUFromTrackletFile(TString filename, Int_t event, Int_t
                fTMU->WriteTrackletsToTree(fTrackletTree);
                WriteTracksToDataFile(listOfTracks, iEventPrev);
                if (listOfTracks->GetEntries() > 0) 
-                   AliDebug(2,Form("   %d GeV/c", ((AliTRDtrackGTU*) listOfTracks->At(0))->GetPt() ));
+                   AliDebug(2,Form("   %4.1f GeV/c", ((AliTRDtrackGTU*) listOfTracks->At(0))->GetPt() ));
                delete fTMU;
                fTMU = new AliTRDgtuTMU(); 
                delete listOfTracks;
@@ -439,7 +439,7 @@ Bool_t AliTRDgtuSim::WriteTracksToLoader()
   if (!trackTree->GetBranch("TRDtrackGTU"))
     trackTree->Branch("TRDtrackGTU", "AliTRDtrackGTU", &trk, 32000);
   
-  AliDebug(1,Form("Found %i tracks", fTrackTree->GetEntries()));
+  AliDebug(1,Form("Found %d tracks", fTrackTree->GetEntries()));
 
   for (Int_t iTrack = 0; iTrack < fTrackTree->GetEntries(); iTrack++) {
     fTrackTree->SetBranchAddress("TRDgtuTrack", &trk);
index 784fc17c9246cbeeb70cdaa5ad453d740749ca26..f4cd0de39b4c06a9d8230a3a711c9b98b71b2c50 100644 (file)
@@ -1872,7 +1872,7 @@ Int_t AliTRDmcmSim::GetPID(Int_t q0, Int_t q1)
    addrQ0 = (((addrQ0*q0)>>16)>>16); // because addrQ0 = (q0 * corrQ0) >> 32; does not work for unknown reasons
 
    if(addrQ0 >= nBinsQ0) {  // check for overflow
-      AliDebug(5,Form("Overflow in q0: %i/4 is bigger then %i", addrQ0, nBinsQ0));
+      AliDebug(5,Form("Overflow in q0: %i/4 is bigger then %u", addrQ0, nBinsQ0));
       addrQ0 = nBinsQ0 -1;
    } 
 
@@ -1881,7 +1881,7 @@ Int_t AliTRDmcmSim::GetPID(Int_t q0, Int_t q1)
    addr = addrQ0 + nBinsQ0*addr; // because addr = addrQ0 + nBinsQ0* (((corrQ1*q1)>>32); does not work
 
    if(addr >= pidTotalSize) {
-      AliDebug(5,Form("Overflow in q1. Address %i/4 is bigger then %i", addr, pidTotalSize));
+      AliDebug(5,Form("Overflow in q1. Address %i/4 is bigger then %u", addr, pidTotalSize));
       addr = pidTotalSize -1;
    } 
 
index 9cfea034712be80b2c264b6457b7c4e32823bd86..cccb6f94364681a38ac4cb1b0c626ceff1b2e1c9 100644 (file)
@@ -240,8 +240,8 @@ Bool_t AliTRDrawData::Digits2Raw(AliTRDdigitsManager *digitsManager)
       iwbuffer[0] = iwbuffer[0] | bStackMask;  // add stack masks to SM index word
       if (fgDataSuppressionLevel==0) iwbuffer[0] = 0x0044a03f;    // no suppression : all stacks are active
       of->WriteBuffer((char *) iwbuffer, nheader*4);
-      AliDebug(11, Form("SM %d index word: %08x", iwbuffer[0]));
-      AliDebug(11, Form("SM %d header: %08x", iwbuffer[1]));
+      AliDebug(11, Form("SM %d index word: %08x", sect, iwbuffer[0]));
+      AliDebug(11, Form("SM %d header: %08x", sect, iwbuffer[1]));
     }
     // end of SM & stack header ------------------------------------------------------------------------
     // -------------------------------------------------------------------------------------------------
index 68fea3a5a4a1115f9ebd570cfa37011e89c7aae7..9ee5918c14d42c5360b8fae101e2487d6b115a19 100644 (file)
@@ -147,7 +147,7 @@ Int_t AliTRDtrapConfigHandler::LoadConfig(TString filename, Int_t det)
 
 
    if(ignoredLines>readLines)
-      AliError(Form("More then 50% of the input file could not be processed. Perhaps you should check the input file %s", filename.Data()));
+      AliError(Form("More than 50 %% of the input file could not be processed. Perhaps you should check the input file %s", filename.Data()));
 
 
    return kTRUE;