AliFlowEventSimple* pEvent = new AliFlowEventSimple(10);
- //Int_t iN = 256; //multiplicity for chi=1
- Int_t iN = iNumberOfInputTracks;
- Int_t iGoodTracks = 0;
- Int_t itrkN = 0;
- Int_t iSelParticlesDiff = 0;
- Int_t iSelParticlesInt = 0;
+ Int_t iN = iNumberOfInputTracks; //maximum number of tracks in AliFlowEventSimple
+ Int_t iGoodTracks = 0; //number of good tracks
+ Int_t itrkN = 0; //track counter
+ Int_t iSelParticlesDiff = 0; //number of tracks selected for Diff
+ Int_t iSelParticlesInt = 0; //number of tracks selected for Int
//normal loop
AliFlowEventSimple* pEvent = new AliFlowEventSimple(10);
- //Int_t iN = 256; //multiplicity for chi=1
- Int_t iN = iNumberOfInputTracks;
- Int_t iGoodTracks = 0;
- Int_t itrkN = 0;
- Int_t iSelParticlesDiff = 0;
- Int_t iSelParticlesInt = 0;
-
+ Int_t iN = iNumberOfInputTracks; //maximum number of tracks in AliFlowEventSimple
+ Int_t iGoodTracks = 0; //number of good tracks
+ Int_t itrkN = 0; //track counter
+ Int_t iSelParticlesDiff = 0; //number of tracks selected for Diff
+ Int_t iSelParticlesInt = 0; //number of tracks selected for Int
//normal loop
while (iGoodTracks < iN && itrkN < iNumberOfInputTracks) {
pTrack->SetPhi(pParticle->Phi() );
//check if pParticle passes the cuts
- if (intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) {
+ if (intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle) &&
+ intCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
pTrack->SetForIntegratedFlow(kTRUE);
}
- if (diffCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
+ if (diffCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle) &&
+ diffCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
pTrack->SetForDifferentialFlow(kTRUE);}
//check if any bits are set
cerr<<"anInput->GetNumberOfTracks() = "<<iNumberOfInputTracks<<endl;
AliFlowEventSimple* pEvent = new AliFlowEventSimple(10);
-
- //Int_t iN = 256; //multiplicity for chi=1
- Int_t iN = iNumberOfInputTracks;
- Int_t iGoodTracks = 0;
- Int_t itrkN = 0;
- Int_t iSelParticlesDiff = 0;
- Int_t iSelParticlesInt = 0;
-
+ Int_t iN = iNumberOfInputTracks; //maximum number of tracks in AliFlowEventSimple
+ Int_t iGoodTracks = 0; //number of good tracks
+ Int_t itrkN = 0; //track counter
+ Int_t iSelParticlesDiff = 0; //number of tracks selected for Diff
+ Int_t iSelParticlesInt = 0; //number of tracks selected for Int
+
//normal loop
while (iGoodTracks < iN && itrkN < iNumberOfInputTracks) {
AliAODTrack* pParticle = anInput->GetTrack(itrkN); //get input particle
pTrack->SetPhi(pParticle->Phi() );
//check if pParticle passes the cuts
- if (intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) { //check these cuts!!
+ if (intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle) &&
+ intCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
pTrack->SetForIntegratedFlow(kTRUE); }
- if (diffCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
+ if (diffCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle) &&
+ diffCFManager->CheckParticleCuts(AliCFManager::kPartSelCuts,pParticle)) {
pTrack->SetForDifferentialFlow(kTRUE);}
//check if any bits are set
{
//fills the event with tracks from the ESD and kinematics from the MC info via the track label
- ///////////////////////////////////////////////////
- //
- // WARNING: this method is not correct yet!
- // The PID cut has to be implemented correctly
- // 24/06/08
- //
- //////////////////////////////////////////////////
-
+
if (!(anOption ==0 || anOption ==1)) {
cout<<"WRONG OPTION IN AliFlowEventSimpleMaker::FillTracks(AliESDEvent* anInput, AliMCEvent* anInputMc, Int_t anOption)"<<endl;
exit(1);
AliFlowEventSimple* pEvent = new AliFlowEventSimple(10);
- //Int_t iN = 256; //multiplicity for chi=1
- Int_t iN = iNumberOfInputTracks;
- Int_t iGoodTracks = 0;
- Int_t itrkN = 0;
- Int_t iSelParticlesDiff = 0;
- Int_t iSelParticlesInt = 0;
+ Int_t iN = iNumberOfInputTracks; //maximum number of tracks in AliFlowEventSimple
+ Int_t iGoodTracks = 0; //number of good tracks
+ Int_t itrkN = 0; //track counter
+ Int_t iSelParticlesDiff = 0; //number of tracks selected for Diff
+ Int_t iSelParticlesInt = 0; //number of tracks selected for Int
+
//normal loop
while (iGoodTracks < iN && itrkN < iNumberOfInputTracks) {
AliESDtrack* pParticle = anInput->GetTrack(itrkN); //get input particle
if(anOption == 0) {
//cout<<"take the PID from the MC & the kinematics from the ESD"<<endl;
if (intCFManager->CheckParticleCuts(AliCFManager::kPartGenCuts,pMcParticle,"mcGenCuts1") &&
- intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) { //????which cuts to use on which particle
+ intCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) {
pTrack->SetForIntegratedFlow(kTRUE); }
if (diffCFManager->CheckParticleCuts(AliCFManager::kPartGenCuts,pMcParticle,"mcGenCuts2") &&
- diffCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) { //????which cuts to use on which particle
+ diffCFManager->CheckParticleCuts(AliCFManager::kPartRecCuts,pParticle)) {
pTrack->SetForDifferentialFlow(kTRUE);}
}
else if (anOption == 1) {