fHistNEvents->Fill(0); // count event
Bool_t isEvSel=fRDCutsAnalysis->IsEventSelected(aod);
- fRDCutsProduction->IsEventSelected(aod); // to have proper PID object settings
+ Bool_t isEvSelP=kTRUE;
+ isEvSelP=fRDCutsProduction->IsEventSelected(aod); // to have proper PID object settings
Float_t centrality=aod->GetNTracks();//fRDCutsAnalysis->GetCentrality(aod);
fHistCentrality[0]->Fill(centrality);
fPIDResponse(0)
{
// Default constructor
+ Float_t ptlims[7]={0.,2.,4.,6.,8.,12.,24.};
+ SetPtBinLimit(7,ptlims);
}
//________________________________________________________________________
if(TMath::Abs(pdgs[0])==211){
ipRes[0]=0;ipRes[1]=1;
pdgres[0]=pdgs[0];pdgres[1]=321;
- }
- if(TMath::Abs(pdgs[2])==211){
+ }else if(TMath::Abs(pdgs[2])==211){
ipRes[0]=2;ipRes[1]=1;
pdgres[0]=pdgs[2];pdgres[1]=321;
+ }else{
+ return kFALSE;
}
AliKFParticle *kappaStar=d->ApplyVertexingKF(ipRes,2,pdgres,kFALSE,field,mass);
if(dd->HasBadDaughters()) return 0;
AliAODTrack *b = (AliAODTrack*)d->GetBachelor();
- if(fTrackCutsSoftPi->GetRequireTPCRefit()){
+ if(fTrackCutsSoftPi && fTrackCutsSoftPi->GetRequireTPCRefit()){
if(!(b->TestFilterMask(BIT(4)))) return 0;
}
AliRDHFCuts(source),
fPidObjprot(0),
fPidObjpion(0),
- fRecoKF(kFALSE),
+ fRecoKF(source.fRecoKF),
fUseImpParProdCorrCut(source.fUseImpParProdCorrCut)
{
//
//------------------
Bool_t AliRDHFCutsLctopKpi::ReconstructKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field) const{
- Int_t nprongs=d->GetNProngs();
+ const Int_t nprongs=d->GetNProngs();
Int_t iprongs[nprongs];
for(Int_t i=0;i<nprongs;i++) iprongs[i]=i;