]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixing clang issues
authortbreitne <timo.gunther.breitner@cern.ch>
Fri, 30 May 2014 13:06:00 +0000 (15:06 +0200)
committertbreitne <timo.gunther.breitner@cern.ch>
Fri, 30 May 2014 13:09:52 +0000 (15:09 +0200)
HLT/TPCLib/calibration/AliHLTTPCCalibSeedMakerComponent.h
HLT/TPCLib/tracking-ca/AliHLTTPCCATracker.h
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerComponent.h
HLT/global/AliHLTGlobalTrackResidualsComponent.h

index a44bfebfa69479e65c1fa94062ae947caa1bdae6..bfb2e5902977dfe0efb0cb2ee02b4a247159196d 100644 (file)
@@ -17,7 +17,7 @@
 #include "AliHLTProcessor.h"
 
 //forward declarations
-class AliHLTTPCSpacePointData;
+struct AliHLTTPCSpacePointData;
 class AliTPCParam;
 //class TClonesArray;
 class TObjArray;
index 7abf200b011c12569e3bd094ce0f31f60898b5e9..0de647f714bb2640018d21f16b22dc2b40517340 100644 (file)
@@ -260,7 +260,7 @@ MEM_CLASS_PRE() class AliHLTTPCCATracker
   GPUd() static int CalculateHitWeight( int NHits, float chi2, int ) {
     const float chi2_suppress = 6.f;
     float weight = (((float) NHits * (chi2_suppress - chi2 / 500.f)) * (1e9 / chi2_suppress / 160.));
-    if (weight < 0 || weight > 2e9) weight = 0;
+    if (weight < 0. || weight > 2e9) return 0;
     return ( (int) weight );
     //return( (NHits << 16) + num);
   }
index b1232f4d092bc4b32bd7e72edbb13d9bf5b4ed2a..ce2cc57717a5a1accba5ced79ca431ee7728220a 100644 (file)
@@ -16,7 +16,7 @@
 class AliHLTTPCCATrackerFramework;
 class AliHLTTPCCASliceOutput;
 class AliHLTTPCCAClusterData;
-class AliHLTTPCSpacePointData;
+struct AliHLTTPCSpacePointData;
 
 /**
  * @class AliHLTTPCCATrackerComponent
index b0ab471f1e88cc4cacd95cb7f523e7f2f257edd8..8567ac7fc0a3617745540a45f80f4d75228ce0f0 100644 (file)
@@ -51,7 +51,7 @@
 
 #include "AliHLTProcessor.h"
 
-class AliHLTTPCSpacePointData;
+struct AliHLTTPCSpacePointData;
 class AliHLTGlobalBarrelTrack;
 
 class AliHLTGlobalTrackResidualsComponent : public AliHLTProcessor {