fix compiler warnings and coverity
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Apr 2012 19:29:32 +0000 (19:29 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Apr 2012 19:29:32 +0000 (19:29 +0000)
PWGJE/UserTasks/AliAnalysisTaskCheckSingleTrackJetRejection.cxx
PWGJE/UserTasks/AliAnalysisTaskCheckSingleTrackJetRejection.h

index 1f05125..2f0e71a 100755 (executable)
@@ -4,7 +4,6 @@
 #include <string>
 
 #include "TTree.h"
-#include "TString.h"
 #include "TCanvas.h"
 #include "AliAnalysisTask.h"
 #include "AliInputEventHandler.h"
@@ -79,15 +78,26 @@ ClassImp(AliAnalysisTaskCheckSingleTrackJetRejection)
                                                                fAODIn(0x0),
                                                                fAODOut(0x0),
                                                                fAODExtension(0x0),
+                                                               JFAlg("ANTIKT"),
+                                                               Radius(0.4),
+                                                               Filtermask(256),
+                                                               BackM(0),
+                                                               TrackPtcut(0.15),
+                                                               SkipCone(0),
+                                                               IsMC(kTRUE),
                                                                fHistList(0x0),
                                                                fxsec(0.),
                                                                ftrial(1.),
+                                                               fJetRecEtaWindow(0.5),
+                                                               fMinJetPt(0.15),
                                                                fH1Xsec(0x0),
-                                                               fH1Trials(0x0)
-{
+                                                               fH1Trials(0x0),
+                                                               fH1Events(0x0),
+
+                                                               fH2jetMCAKT04_Jetpt_maxpt(0x0),
+                                                               fH2jetAKT04_Jetpt_maxpt  (0x0)
 
-                               fH2jetMCAKT04_Jetpt_maxpt   =0;
-                               fH2jetAKT04_Jetpt_maxpt     =0;
+{
                                for(int j=0;j<6;j++){
                                                                fH1jetMCAKT04_pt         [j]=0;
                                                                fH1jetAKT04_pt           [j]=0;
@@ -109,16 +119,26 @@ AliAnalysisTaskCheckSingleTrackJetRejection::AliAnalysisTaskCheckSingleTrackJetR
                                fAODIn(0x0), 
                                fAODOut(0x0), 
                                fAODExtension(0x0),
+                               JFAlg("ANTIKT"),
+                               Radius(0.4),
+                               Filtermask(256),
+                               BackM(0),
+                               TrackPtcut(0.15),
+                               SkipCone(0),
+                               IsMC(kTRUE),
                                fHistList(0x0),
                                fxsec(0.),
                                ftrial(1.),
+                               fJetRecEtaWindow(0.5),
+                               fMinJetPt(0.15),
                                fH1Xsec(0x0),
-                               fH1Trials(0x0)
+                               fH1Trials(0x0),
+                               fH1Events(0x0),
+                               fH2jetMCAKT04_Jetpt_maxpt(0x0),
+                               fH2jetAKT04_Jetpt_maxpt  (0x0)
 
 {
 
-                               fH2jetMCAKT04_Jetpt_maxpt=0;
-                               fH2jetAKT04_Jetpt_maxpt  =0;
                                for(int j=0;j<6;j++){
                                                                fH1jetMCAKT04_pt         [j]=0;
                                                                fH1jetAKT04_pt           [j]=0;
index b9e78ac..bd82467 100644 (file)
@@ -39,7 +39,7 @@ class AliAnalysisTaskCheckSingleTrackJetRejection : public AliAnalysisTaskSE
                virtual void    UserExec(Option_t *option);\r
                virtual void    Terminate(Option_t *);\r
                virtual void    SetDebug(Int_t debug = 0) {fDebug = debug;}\r
-               virtual void    SetAlgorithm(const char *jf="ANTIKT"){JFAlg=jf;}\r
+               virtual void    SetAlgorithm(TString jf="ANTIKT"){JFAlg=jf;}\r
                virtual void    SetRadius(Float_t radius=0.4){Radius=radius;}\r
                virtual void    SetFilterMask(UInt_t filter=256){Filtermask=filter;}\r
                virtual void    SetBackSubMode(Int_t backM=0){BackM=backM;}\r
@@ -75,16 +75,16 @@ class AliAnalysisTaskCheckSingleTrackJetRejection : public AliAnalysisTaskSE
                TString       fNonStdFile;\r
                TString       fJetBranch;   // jet branch to read\r
 \r
-               AliAODEvent   *fAODIn;      // AOD event\r
-               AliAODEvent   *fAODOut;      // AOD event\r
+               AliAODEvent     *fAODIn;      // AOD event\r
+               AliAODEvent     *fAODOut;      // AOD event\r
                AliAODExtension *fAODExtension;\r
-               TString JFAlg;\r
-               Float_t Radius;\r
-               UInt_t Filtermask;\r
-               Int_t BackM;\r
-               Float_t TrackPtcut;\r
-               Int_t SkipCone;\r
-               Bool_t        IsMC;\r
+               TString         JFAlg;\r
+               Float_t         Radius;\r
+               UInt_t          Filtermask;\r
+               Int_t           BackM;\r
+               Float_t         TrackPtcut;\r
+               Int_t           SkipCone;\r
+               Bool_t          IsMC;\r
 \r
                TList        *fHistList; // Output list\r
                Float_t       fxsec;\r