fix on primaries by Prahbat
authorLeonardo Milano <lmilano@cern.ch>
Fri, 10 Jan 2014 14:59:48 +0000 (15:59 +0100)
committerLeonardo Milano <lmilano@cern.ch>
Fri, 10 Jan 2014 14:59:48 +0000 (15:59 +0100)
PWGCF/Correlations/DPhi/AliDptDptInMC.cxx

index 4b2a63b..f5acdfd 100644 (file)
@@ -1270,7 +1270,7 @@ void  AliDptDptInMC::UserExec(Option_t */*option*/)
                   continue;
                }
 
-              if(!t->IsPhysicalPrimary()) continue;                                                                                      
+             //if(!t->IsPhysicalPrimary()) continue;                                                                                      
               // Remove neutral tracks                                      
               if(t->Charge() == 0) continue;                                                                                              
              //Exclude Weak Decay Resonances                                                                                                          
@@ -1283,15 +1283,16 @@ void  AliDptDptInMC::UserExec(Option_t */*option*/)
                    if(motherTrack) {
                      Int_t pdgCodeOfMother = motherTrack->GetPdgCode();
 
-                     if(pdgCodeOfMother == 311   ||
-                          pdgCodeOfMother == -311  ||
-                          pdgCodeOfMother == 3122  ||
+                     if(pdgCodeOfMother == 311  ||
+                        pdgCodeOfMother == -311 ||
+                        pdgCodeOfMother == 310  ||
+                        pdgCodeOfMother == 3122 ||
                         pdgCodeOfMother == -3122) continue;
-
                    }
                  }
                }
 
+
              //Exclude electrons with PDG                                                                                                 
              if(fExcludeElectronsInMC) {
                if(TMath::Abs(t->GetPdgCode()) == 11) continue;