Bug fix
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jun 2009 13:48:39 +0000 (13:48 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jun 2009 13:48:39 +0000 (13:48 +0000)
PWG3/vertexingHF/AliCFHeavyFlavourTask.cxx
PWG3/vertexingHF/AliCFHeavyFlavourTaskMultiVar.cxx
PWG3/vertexingHF/AliCFHeavyFlavourTaskMultiVarMultiStep.cxx

index 341d2afc25822f8781cba537385b585a088be4ed..629dd40c87cb8e0497dc90f36817364c11aff387 100644 (file)
@@ -155,7 +155,7 @@ void AliCFHeavyFlavourTask::UserExec(Option_t *)
                        AliDebug(2, "Error! the D0 MC doesn't have correct daughters!!");
                        continue;  
                }
-               if (TMath::Abs(daughter1 - daughter0 != 1)) {
+               if (TMath::Abs(daughter1 - daughter0) != 1) {
                        AliDebug(2, "The D0 MC doesn't come from a 2-prong decay, skipping!!");
                        continue;  
                }
index 22802917b84367baa7c470523dfe1c5d73ce3436..0cc35d94ac7ecae57a5adea1f79a9c73867714d8 100644 (file)
@@ -590,7 +590,7 @@ Bool_t AliCFHeavyFlavourTaskMultiVar::GetGeneratedValuesFromMCParticle(AliAODMCP
                AliDebug(2, "Error! the D0 MC doesn't have correct daughters!!");
                return isOk;  
        }
-       if (TMath::Abs(daughter1 - daughter0 != 1)) {
+       if (TMath::Abs(daughter1 - daughter0) != 1) {
                AliDebug(2, "The D0 MC doesn't come from a 2-prong decay, skipping!!");
                return isOk;  
        }
index 553e24be57db89eba38b68eeaf3d1ec8d7ac6609..1e81a7c2e285a69dd44621f373c81c4043543178 100644 (file)
@@ -207,7 +207,7 @@ void AliCFHeavyFlavourTaskMultiVarMultiStep::UserExec(Option_t *)
                        if (daughter0 == 0 || daughter1 == 0) {
                                AliDebug(2, "Error! the D0 MC doesn't have correct daughters!! But it should have, this check was already done...");
                        }
-                       if (TMath::Abs(daughter1 - daughter0 != 1)) {
+                       if (TMath::Abs(daughter1 - daughter0) != 1) {
                                AliDebug(2, "The D0 MC doesn't come from a 2-prong decay, but it should be, this check was already done...");
                        }
                        AliAODMCParticle* mcPartDaughter0 = dynamic_cast<AliAODMCParticle*>(mcArray->At(daughter0));
@@ -1043,7 +1043,7 @@ Bool_t AliCFHeavyFlavourTaskMultiVarMultiStep::GetGeneratedValuesFromMCParticle(
                AliDebug(2, "Error! the D0 MC doesn't have correct daughters!!");
                return isOk;  
        }
-       if (TMath::Abs(daughter1 - daughter0 != 1)) {
+       if (TMath::Abs(daughter1 - daughter0) != 1) {
                AliDebug(2, "The D0 MC doesn't come from a 2-prong decay, skipping!!");
                return isOk;  
        }