Coverity (Ivana)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Feb 2011 11:17:02 +0000 (11:17 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Feb 2011 11:17:02 +0000 (11:17 +0000)
PWG3/vertexingHF/AliCFTaskVertexingHF.cxx

index bf3933f..4f873c6 100644 (file)
@@ -225,42 +225,42 @@ void AliCFTaskVertexingHF::Init()
 
        switch (fDecayChannel){
        case 2:{
-               copyfCuts = new AliRDHFCutsD0toKpi(*(dynamic_cast<AliRDHFCutsD0toKpi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsD0toKpi(*(static_cast<AliRDHFCutsD0toKpi*>(fCuts)));
                fNvar = 14;
                fPartName="D0";
                fDauNames="K+pi";
                break;
        }
        case 21:{ 
-               copyfCuts = new AliRDHFCutsDStartoKpipi(*(dynamic_cast<AliRDHFCutsDStartoKpipi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsDStartoKpipi(*(static_cast<AliRDHFCutsDStartoKpipi*>(fCuts)));
                fNvar = 14;
                fPartName="Dstar";
                fDauNames="K+pi+pi";
                break;
        }
        case 31:{
-               copyfCuts = new AliRDHFCutsDplustoKpipi(*(dynamic_cast<AliRDHFCutsDplustoKpipi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsDplustoKpipi(*(static_cast<AliRDHFCutsDplustoKpipi*>(fCuts)));
                fNvar = 13;
                fPartName="Dplus";
                fDauNames="K+pi+pi";
                break;
        }
        case 32:{
-               copyfCuts = new AliRDHFCutsLctopKpi(*(dynamic_cast<AliRDHFCutsLctopKpi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsLctopKpi(*(static_cast<AliRDHFCutsLctopKpi*>(fCuts)));
                fNvar = 13;
                fPartName="Lambdac";
                fDauNames="p+K+pi";
                break;
        }
        case 33:{
-               copyfCuts = new AliRDHFCutsDstoKKpi(*(dynamic_cast<AliRDHFCutsDstoKKpi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsDstoKKpi(*(static_cast<AliRDHFCutsDstoKKpi*>(fCuts)));
                fNvar = 13;
                fPartName="Ds";
                fDauNames="K+K+pi";
                break;
        }
        case 4:{
-               copyfCuts = new AliRDHFCutsD0toKpipipi(*(dynamic_cast<AliRDHFCutsD0toKpipipi*>(fCuts)));
+               copyfCuts = new AliRDHFCutsD0toKpipipi(*(static_cast<AliRDHFCutsD0toKpipipi*>(fCuts)));
                fNvar = 14;
                fPartName="D0";
                fDauNames="K+pi+pi+pi";