]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fixes and warnings
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Mar 2012 07:52:09 +0000 (07:52 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Mar 2012 07:52:09 +0000 (07:52 +0000)
JETAN/AliAnalysisTaskJetCluster.cxx
JETAN/AliAnalysisTaskJetCluster.h
JETAN/DEV/AliAnalysisTaskJetCluster.cxx
JETAN/DEV/AliAnalysisTaskJetCluster.h
PWGJE/AliAnalysisTaskJetSpectrum2.cxx

index 63941edffd2cdd79a2cb571902d7dfcb2414406c..89f73eafaab127f4c1c73a8cf64d5de933a7de1b 100644 (file)
@@ -1141,7 +1141,8 @@ void AliAnalysisTaskJetCluster::UserExec(Option_t */*option*/)
 
       AliAODTrack *aodT = 0;
       if(partLead){
-       if(aodT = dynamic_cast<AliAODTrack*>(partLead)){
+       aodT = dynamic_cast<AliAODTrack*>(partLead);
+       if(aodT){
          if(aodT->TestFilterBit(fFilterMaskBestPt)){
            aodOutJet->SetTrigger(AliAODJet::kHighTrackPtBest);
          }
index f9174a776cbde80aca2b0568640accbedd4d0a8a..4f021eba482236dcee506ccdb5d615549701b519 100644 (file)
@@ -141,7 +141,7 @@ class AliAnalysisTaskJetCluster : public AliAnalysisTaskSE
     Bool_t        fUseBackgroundCalc;     // switches on background calculations
     Bool_t        fEventSelection;        // use the event selection of this task, otherwise analyse all
     UInt_t        fFilterMask;            // filter bit for slecected tracks
-   UInt_t        fFilterMaskBestPt;      // filter bit to mark jets with high quality leading tracks
+    UInt_t        fFilterMaskBestPt;      // filter bit to mark jets with high quality leading tracks
 
     UInt_t        fFilterType;            // filter type 0 = all, 1 = ITSTPC, 2 = TPC
     UInt_t        fJetTypes;              // 1<<0 regular jets, 1<<1 << randomized event 1<<2 random cones 1<<3 random cones randomiuzed event
index 63941edffd2cdd79a2cb571902d7dfcb2414406c..89f73eafaab127f4c1c73a8cf64d5de933a7de1b 100644 (file)
@@ -1141,7 +1141,8 @@ void AliAnalysisTaskJetCluster::UserExec(Option_t */*option*/)
 
       AliAODTrack *aodT = 0;
       if(partLead){
-       if(aodT = dynamic_cast<AliAODTrack*>(partLead)){
+       aodT = dynamic_cast<AliAODTrack*>(partLead);
+       if(aodT){
          if(aodT->TestFilterBit(fFilterMaskBestPt)){
            aodOutJet->SetTrigger(AliAODJet::kHighTrackPtBest);
          }
index f9174a776cbde80aca2b0568640accbedd4d0a8a..4f021eba482236dcee506ccdb5d615549701b519 100644 (file)
@@ -141,7 +141,7 @@ class AliAnalysisTaskJetCluster : public AliAnalysisTaskSE
     Bool_t        fUseBackgroundCalc;     // switches on background calculations
     Bool_t        fEventSelection;        // use the event selection of this task, otherwise analyse all
     UInt_t        fFilterMask;            // filter bit for slecected tracks
-   UInt_t        fFilterMaskBestPt;      // filter bit to mark jets with high quality leading tracks
+    UInt_t        fFilterMaskBestPt;      // filter bit to mark jets with high quality leading tracks
 
     UInt_t        fFilterType;            // filter type 0 = all, 1 = ITSTPC, 2 = TPC
     UInt_t        fJetTypes;              // 1<<0 regular jets, 1<<1 << randomized event 1<<2 random cones 1<<3 random cones randomiuzed event
index 00d742f00b76fe83d8c931c20f9512b822ead495..03eb142f2b1513983cb96e1fe889327288554550 100644 (file)
@@ -139,6 +139,7 @@ AliAnalysisTaskJetSpectrum2::AliAnalysisTaskJetSpectrum2():
     fh1SumPtTrack[ij] = 0;
     fh1PtJetsIn[ij] = 0;
     fh1PtJetsInRej[ij] = 0;
+    fh1PtJetsInBest[ij] = 0;
     fh1PtTracksIn[ij] = 0;
     fh1PtTracksInLow[ij] = 0;
     fh2NJetsPt[ij]  = 0;
@@ -235,6 +236,7 @@ AliAnalysisTaskJetSpectrum2::AliAnalysisTaskJetSpectrum2(const char* name):
     fh1SumPtTrack[ij] = 0;
     fh1PtJetsIn[ij] = 0;
     fh1PtJetsInRej[ij] = 0;
+    fh1PtJetsInBest[ij] = 0;
     fh1PtTracksIn[ij] = 0;
     fh1PtTracksInLow[ij] = 0;
     fh2NJetsPt[ij]  = 0;