// }
Bool_t firstcut = fPairCut->GetFirstPartCut()->Pass(part1);
-
- if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(part1) == kFALSE) )
- {
- //accepted by any cut
- // we have to copy because reader keeps only one event
-
- partEvent1->AddParticle(new AliHBTParticle(*part1));
- trackEvent1->AddParticle(new AliHBTParticle(*track1));
- }
+ if (fBufferSize == 0)
+ if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(part1) == kFALSE) )
+ {
+ //accepted by any cut
+ // we have to copy because reader keeps only one event
+
+ partEvent1->AddParticle(new AliHBTParticle(*part1));
+ trackEvent1->AddParticle(new AliHBTParticle(*track1));
+ }
if (firstcut) continue;
track1= trackEvent->GetParticle(j);
Bool_t firstcut = fPairCut->GetFirstPartCut()->Pass(track1);
- if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(track1) == kFALSE) )
- {
- //accepted by any cut
- // we have to copy because reader keeps only one event
- trackEvent1->AddParticle(new AliHBTParticle(*track1));
- }
+ if (fBufferSize == 0) //useless in case
+ if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(track1) == kFALSE) )
+ {
+ //accepted by any cut
+ // we have to copy because reader keeps only one event
+ trackEvent1->AddParticle(new AliHBTParticle(*track1));
+ }
if (firstcut) continue;
part1 = partEvent->GetParticle(j);
Bool_t firstcut = fPairCut->GetFirstPartCut()->Pass(part1);
- if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(part1) == kFALSE) )
- {
- //accepted by any cut
- // we have to copy because reader keeps only one event
- partEvent1->AddParticle(new AliHBTParticle(*part1));
- }
+ if (fBufferSize == 0) //useless in case
+ if ( (firstcut == kFALSE) || (fPairCut->GetSecondPartCut()->Pass(part1) == kFALSE) )
+ {
+ //accepted by any cut
+ // we have to copy because reader keeps only one event
+ partEvent1->AddParticle(new AliHBTParticle(*part1));
+ }
if (firstcut) continue;
// //
///////////////////////////////////////////////////////////////
-#include "AliHBTLLWeights.h"
-
-
ClassImp(AliHBTCorrFitFctn)
/*****************************************************************/
Double_t q = trackpair->GetQInv();
Bool_t fill = kFALSE;
- Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weight = partpair->GetLLWeight();
fNumerator->Fill(q,weight);
if ( (q < 0.15) && (fNPairsFitArea < 2.e+5))
//One needs both pairs
//(simulated and recontructed), thus function is of class AliHBTTwoPairFctn1D.
//Author: Ludmila Malinina, JINR (malinina@sunhe.jinr.ru)
-#include "AliHBTLLWeights.h"
#include "AliHBTLLWeightsPID.h"
//--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.)fNumerator->Fill(trackpair->GetQInv(),weight);
}
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.) fNumerator->Fill(trackpair->GetQOutCMSLC(),weight);
}
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.) fNumerator->Fill(trackpair->GetQLongCMSLC(),weight);
}
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.) fNumerator->Fill(trackpair->GetQSideCMSLC(),weight);
}
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.) fNumerator->Fill(2.0*(trackpair->GetKStar()),weight);
}
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.)
fNumerator->Fill(trackpair->GetQOutCMSLC(),trackpair->GetQSideCMSLC(),weight);
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.)
fNumerator->Fill(trackpair->GetQOutCMSLC(),trackpair->GetQLongCMSLC(),weight);
if ( trackpair && partpair)
{
Double_t weightPID=1.;
- Double_t weightHBT=AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weightHBT=partpair->GetLLWeight();
Double_t weight=weightHBT*weightPID;
if(TMath::Abs(weight)<=10.)
fNumerator->Fill(trackpair->GetQSideCMSLC(),trackpair->GetQLongCMSLC(),weight);
//-----------------------------------------------------------
#include "AliHBTLLWeightTheorFctn.h"
-#include "AliHBTLLWeights.h"
//--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
/*************************************************************/
//Processes Particles and tracks Same different even
partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weight = partpair->GetLLWeight();
if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQInv(),weight);
}
//Processes Particles and tracks Same different even
partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weight = partpair->GetLLWeight();
if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQOutCMSLC(),weight);
}
//Processes Particles and tracks Same different even
partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weight = partpair->GetLLWeight();
if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQSideCMSLC(),weight);
}
//Processes Particles and tracks Same different even
partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+ Double_t weight = partpair->GetLLWeight();
if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQLongCMSLC(),weight);
}
#include "AliHBTPair.h"
#include "AliHBTParticle.h"
+#include "AliHBTLLWeights.h"
ClassImp(AliHBTPair)
fMassSqrNotCalc(kTRUE),
fQInvL(0.0),
fQInvLNotCalc(kTRUE),
+ fLLWeight(0.0),
+ ffLLWeightNotCalc(kTRUE),
fPxSum(0.0),
fPySum(0.0),
fPzSum(0.0),
fMassSqrNotCalc(kTRUE),
fQInvL(0.0),
fQInvLNotCalc(kTRUE),
+ fLLWeight(0.0),
+ ffLLWeightNotCalc(kTRUE),
fPxSum(0.0),
fPySum(0.0),
fPzSum(0.0),
}
/************************************************************************/
-
-
-
-
-
-
+Double_t AliHBTPair::GetLLWeight()
+{
+ if (ffLLWeightNotCalc)
+ {
+ fLLWeight = AliHBTLLWeights::Instance()->GetWeight(this);
+ }
+ return fLLWeight;
+}
virtual Double_t GetDeltaPz();
virtual Double_t GetGammaToCMSLC();
+ Double_t GetLLWeight();
protected:
AliHBTParticle* fPart1; //pointer to first particle
AliHBTParticle* fPart2; //pointer to second particle
Double_t fQInvL;
Bool_t fQInvLNotCalc;
void CalculateQInvL();
+
+ Double_t fLLWeight;
+ Bool_t ffLLWeightNotCalc;
Double_t fPxSum;
Double_t fPySum;
fKStarNotCalc = kTRUE;
fQInvLNotCalc = kTRUE;
fGammaCMSLCNotCalc = kTRUE;
+ ffLLWeightNotCalc = kTRUE;
}
/****************************************************************/
inline