* Returns the positive KF particle which belongs to fCurrentV0\r
*/\r
AliKFParticle* GetPositiveKFParticle() const{return fCurrentPositiveKFParticle;}\r
+\r
/*\r
* Returns the KFParticle object of the 2 tracks.\r
*/\r
AliKFParticle* GetMotherCandidateKFCombination() const{return fCurrentMotherKFCandidate;}\r
+\r
/*\r
* Checks the probablity that the PID of the particle is what we want it to be.\r
*/\r
Bool_t CheckPIDProbability(Double_t negProbCut, Double_t posProbCut);\r
+ \r
+ /*\r
+ * Checks if the PID of the two particles are within our cuts.\r
+ */\r
+ void GetPIDProbability(Double_t &negPIDProb, Double_t &posPIDProb);\r
\r
/*\r
*Get the negative MC TParticle from the stack \r
*/\r
TParticle * GetMotherMCParticle() const{return fMotherMCParticle;}\r
\r
+ /*\r
+ * Flag to see if the v0 particles share the same mother\r
+ */\r
Bool_t HasSameMCMother();\r
\r
+\r
+ /*\r
+ *Get the PID of the MC mother particle\r
+ */\r
+ Int_t GetMotherMCParticlePDGCode() const{if(fMotherMCParticle != NULL){ cout<<"MCParticle exists"<<endl;} return fMotherMCParticle->GetPdgCode();}\r
+\r
/*\r
*Get the MC stack \r
*/\r
*/\r
Double_t GetOpeningAngle(){return fNegativeTrackLorentzVector->Angle(fPositiveTrackLorentzVector->Vect());}\r
\r
+ /*\r
+ * Gets the Energy of the negative track.\r
+ */\r
Double_t GetNegativeTrackEnergy() const{return fCurrentNegativeKFParticle->E();}\r
+\r
+ /*\r
+ * Gets the Energy of the positive track.\r
+ */\r
Double_t GetPositiveTrackEnergy() const{return fCurrentPositiveKFParticle->E();}\r
+\r
+ /*\r
+ * Gets the Energy of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateEnergy() const{return fCurrentMotherKFCandidate->E();}\r
\r
+ /*\r
+ * Gets the Pt of the negative track.\r
+ */\r
Double_t GetNegativeTrackPt() const{return fNegativeTrackLorentzVector->Pt();}\r
+\r
+ /*\r
+ * Gets the Pt of the positive track.\r
+ */\r
Double_t GetPositiveTrackPt() const{return fPositiveTrackLorentzVector->Pt();}\r
+\r
+ /*\r
+ * Gets the Pt of the mother candidate.\r
+ */\r
Double_t GetMotherCandidatePt() const{return fMotherCandidateLorentzVector->Pt();}\r
\r
+ /*\r
+ * Gets the Eta of the negative track.\r
+ */\r
Double_t GetNegativeTrackEta() const{return fNegativeTrackLorentzVector->Eta();}\r
+ /*\r
+ * Gets the Eta of the positive track.\r
+ */\r
Double_t GetPositiveTrackEta() const{return fPositiveTrackLorentzVector->Eta();}\r
+ /*\r
+ * Gets the Eta of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateEta() const{return fMotherCandidateLorentzVector->Eta();}\r
\r
+ /*\r
+ * Gets the NDF of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateNDF() const{return fCurrentMotherKFCandidate->GetNDF();}\r
+\r
+ /*\r
+ * Gets the Chi2 of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateChi2() const{return fCurrentMotherKFCandidate->GetChi2();}\r
+\r
+ /*\r
+ * Gets the Mass of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateMass() const{return fMotherCandidateKFMass;}\r
+\r
+ /*\r
+ * Gets the Width of the mother candidate.\r
+ */\r
Double_t GetMotherCandidateWidth() const{return fMotherCandidateKFWidth;}\r
\r
+ /*\r
+ * Gets the Phi of the negative track.\r
+ */\r
Double_t GetNegativeTrackPhi() const;\r
+\r
+ /*\r
+ * Gets the Phi of the positive track.\r
+ */\r
Double_t GetPositiveTrackPhi() const;\r
+\r
+ /*\r
+ * Gets the Phi of the mother candidate.\r
+ */\r
Double_t GetMotherCandidatePhi() const;\r
\r
+ /*\r
+ * Update data which need to be updated every event.\r
+ */\r
void UpdateEventByEventData();\r
\r
+ /*\r
+ * Gets the MaxRCut value.\r
+ */\r
Double_t GetMaxRCut() const{return fMaxR;}\r
+\r
+ /*\r
+ * Gets the Eta cut value.\r
+ */\r
Double_t GetEtaCut() const{return fEtaCut;}\r
+\r
+ /*\r
+ * Gets the Pt cut value.\r
+ */\r
Double_t GetPtCut() const{return fPtCut;}\r
+\r
+ /*\r
+ * Gets the Chi2 cut value for the conversions.\r
+ */\r
Double_t GetChi2CutConversion() const{return fChi2CutConversion;}\r
+\r
+ /*\r
+ * Gets the Chi2 cut value for the mesons.\r
+ */\r
Double_t GetChi2CutMeson() const{return fChi2CutMeson;}\r
\r
+ /*\r
+ * Sets the MaxRCut value.\r
+ */\r
void SetMaxRCut(Double_t maxR){fMaxR=maxR;}\r
+\r
+ /*\r
+ * Sets the EtaCut value.\r
+ */\r
void SetEtaCut(Double_t etaCut){fEtaCut=etaCut;}\r
+\r
+ /*\r
+ * Sets the PtCut value.\r
+ */\r
void SetPtCut(Double_t ptCut){fPtCut=ptCut;}\r
+\r
+ /*\r
+ * Sets the Chi2Cut value for conversions.\r
+ */\r
void SetChi2CutConversion(Double_t chi2){fChi2CutConversion=chi2;}\r
+\r
+ /*\r
+ * Sets the Chi2Cut for the mesons.\r
+ */\r
void SetChi2CutMeson(Double_t chi2){fChi2CutMeson=chi2;}\r
\r
+ /*\r
+ * Sets the XVertexCut value.\r
+ */\r
void SetXVertexCut(Double_t xVtx){fCurrentXValue=xVtx;}\r
+\r
+ /*\r
+ * Sets the YVertexCut value.\r
+ */\r
void SetYVertexCut(Double_t yVtx){fCurrentYValue=yVtx;}\r
+\r
+ /*\r
+ * Sets the ZVertexCut value.\r
+ */\r
void SetZVertexCut(Double_t zVtx){fCurrentZValue=zVtx;}\r
+\r
+ /*\r
+ * Sets the PIDProbabilityCut value for track particles.\r
+ */\r
void SetPIDProbability(Double_t pidProb){fPIDProbabilityCutPositiveParticle=pidProb; fPIDProbabilityCutNegativeParticle=pidProb;}\r
+\r
+ /*\r
+ * Sets the PIDProbability cut value for the negative track.\r
+ */\r
void SetPIDProbabilityNegativeParticle(Double_t pidProb){fPIDProbabilityCutNegativeParticle=pidProb;}\r
+\r
+ /*\r
+ * Sets the PIDProbability cut value for the positive track.\r
+ */\r
void SetPIDProbabilityPositiveParticle(Double_t pidProb){fPIDProbabilityCutPositiveParticle=pidProb;}\r
+\r
+ /*\r
+ * Sets the SigmaMassCut value.\r
+ */\r
void SetSigmaMass(Double_t sigmaMass){fNSigmaMass=sigmaMass;}\r
\r
+ /*\r
+ * Sets the flag to enable/disable the usage of MC information. \r
+ */\r
void SetDoMCTruth(Bool_t doMC){fDoMC = doMC;}\r
\r
+ /*\r
+ * Updates the V0 information of the current V0.\r
+ */\r
void UpdateV0Information();\r
\r
+ /*\r
+ * Resets the V0 index.\r
+ */\r
+ void ResetV0IndexNumber(){fCurrentV0IndexNumber=0;}\r
+\r
+ /*\r
+ * Sets the histograms.\r
+ */\r
void SetHistograms(AliGammaConversionHistograms *histograms){fHistograms=histograms;}\r
\r
+ /*\r
+ * Check for primary vertex.\r
+ */\r
+ Bool_t CheckForPrimaryVertex();\r
+\r
+ /*\r
+ * Gets a vector of good v0s.\r
+ */\r
vector<AliKFParticle> GetCurrentEventGoodV0s() const{return fCurrentEventGoodV0s;}\r
+\r
+ /*\r
+ * Gets the vector of previous events v0s (for bacground analysis)\r
+ */\r
vector<AliKFParticle> GetPreviousEventGoodV0s() const{return fPreviousEventGoodV0s;}\r
\r
private:\r