* provided "as is" without express or implied warranty. *
**************************************************************************/
-/* $Id$ */
-
///////////////////////////////////////////////////////////////////////////
// Dielectron Analysis Main class //
// //
if(GetHasMC()) AliDielectronMC::Instance()->SetHasMC(GetHasMC());
if (fCfManagerPair) fCfManagerPair->InitialiseContainer(fPairFilter);
- if (fTrackRotator) fTrackRotator->SetTrackArrays(&fTracks[0],&fTracks[1]);
+ if (fTrackRotator) {
+ fTrackRotator->SetTrackArrays(&fTracks[0],&fTracks[1]);
+ fTrackRotator->SetPdgLegs(fPdgLeg1,fPdgLeg2);
+ }
if (fDebugTree) fDebugTree->SetDielectron(this);
}
}
//track rotation
- if (fTrackRotator) FillPairArrayTR();
+ if (fTrackRotator) {
+ fTrackRotator->SetEvent(ev1);
+ FillPairArrayTR();
+ }
}
//in case there is a histogram manager, fill the QA histograms
while ( fTrackRotator->NextCombination() ){
AliDielectronPair candidate;
- candidate.SetTracks(fTrackRotator->GetTrackP(), fPdgLeg1, fTrackRotator->GetTrackN(), fPdgLeg2);
+ candidate.SetTracks(&fTrackRotator->GetKFTrackP(), &fTrackRotator->GetKFTrackN(),
+ fTrackRotator->GetVTrackP(),fTrackRotator->GetVTrackN());
candidate.SetType(kEv1PMRot);
//pair cuts