//
// file: AliHBTPIDPurityFctns.cxx AliHBTPIDPurityFctns.h
//
-// Caution: On 2D plots on X axis in simulated values
-// That is contrary to two-particle resolutions where it is reconstructed one
+// Classes for calculating PID purity, efficiency and other things connected with PID
+// xxx
+// xxx
//
// added by Piotr.Skowronski@cern.ch
-//
//
//////////////////////////////////////////////////////////////////////////////////
/******************************************************************/
/******************************************************************/
/******************************************************************/
-AliHBTQInvCorrelFctnPerfectPID f;
ClassImp(AliHBTMonPIDPurityVsPtFctn)
}
/******************************************************************/
+AliHBTMonPIDPurityVsPtFctn::AliHBTMonPIDPurityVsPtFctn(const AliHBTMonPIDPurityVsPtFctn& /*in*/):
+ AliHBTMonTwoParticleFctn1D(),
+ AliHBTCorrelFunction(),
+ fGood(0x0),
+ fAll(0x0)
+{
+ //cpy constructor
+ Error("AliHBTMonPIDPurityVsPtFctn(const AliHBTMonPIDPurityVsPtFctn&",
+ "Functions can not be copied because of histogram names clashes");
+}
+
+/******************************************************************/
+
AliHBTMonPIDPurityVsPtFctn::~AliHBTMonPIDPurityVsPtFctn()
{
//dtor
delete fAll;
}
/******************************************************************/
+
+AliHBTMonPIDPurityVsPtFctn& AliHBTMonPIDPurityVsPtFctn::operator=
+ (const AliHBTMonPIDPurityVsPtFctn& /*in*/)
+{
+//assigment operator
+ Error("operator=","Functions can not be copied because of histogram names clashes");
+ return *this;
+}
+/******************************************************************/
+
void AliHBTMonPIDPurityVsPtFctn::Write()
{
+//Writes a fucntion results
AliHBTMonitorFunction::Write();
fGood->Write();
fAll->Write();
}
/******************************************************************/
+AliHBTMonPIDContaminationVsPtFctn::AliHBTMonPIDContaminationVsPtFctn
+ (const AliHBTMonPIDContaminationVsPtFctn& /*in*/):
+ AliHBTMonTwoParticleFctn1D(),
+ AliHBTCorrelFunction(),
+ fWrong(0x0),
+ fAll(0x0)
+{
+ //cpy constructor
+ Error("AliHBTMonPIDContaminationVsPtFctn(const AliHBTMonPIDContaminationVsPtFctn&",
+ "Functions can not be copied because of histogram names clashes");
+}
+
+/******************************************************************/
+
AliHBTMonPIDContaminationVsPtFctn::~AliHBTMonPIDContaminationVsPtFctn()
{
//dtor
}
/******************************************************************/
+AliHBTMonPIDContaminationVsPtFctn& AliHBTMonPIDContaminationVsPtFctn::operator=
+ (const AliHBTMonPIDContaminationVsPtFctn& /*in*/)
+{
+//assigment operator
+ Error("operator=","Functions can not be copied because of histogram names clashes");
+ return *this;
+}
+/******************************************************************/
+
void AliHBTMonPIDContaminationVsPtFctn::Write()
{
//Writes the function results
//
// file: AliHBTPIDPurityFctns.cxx AliHBTPIDPurityFctns.h
//
-// Caution: On 2D plots on X axis in simulated values
-// That is contrary to two-particle resolutions where it is reconstructed one
+// Classes for calculating PID purity, efficiency and other things connected with PID
+// xxxxxxxxxx
+// xxxxxxxxxx
+// xxxxxxxxxx
+// xxxxxxxxxx
+// xxxxxxxxxx
//
// added by Piotr.Skowronski@cern.ch
-//
//
//////////////////////////////////////////////////////////////////////////////////
{
public:
AliHBTMonPIDPurityVsPtFctn(Int_t nbins = 20, Double_t maxXval = 2.0, Double_t minXval = 0.0);
+ AliHBTMonPIDPurityVsPtFctn(const AliHBTMonPIDPurityVsPtFctn& /*in*/);
virtual ~AliHBTMonPIDPurityVsPtFctn();
+
+ AliHBTMonPIDPurityVsPtFctn& operator=(const AliHBTMonPIDPurityVsPtFctn& /*in*/);
+
void Init();
void Write();
void Rename(const Char_t * name);
Double_t GetValue(AliVAODParticle * /*track*/,AliVAODParticle * /*part*/) const { return 0.0; }
void Process(AliVAODParticle * track,AliVAODParticle * part);
protected:
- TH1D* fGood;
- TH1D* fAll;
+ TH1D* fGood;//histogram filled with correctly identified particles
+ TH1D* fAll;//histogram filled with all particles
ClassDef(AliHBTMonPIDPurityVsPtFctn,1)
};
/***********************************************************************/
{
public:
AliHBTMonPIDContaminationVsPtFctn(Int_t nbins = 20, Double_t maxXval = 2.0, Double_t minXval = 0.0);
- virtual ~AliHBTMonPIDContaminationVsPtFctn();
+ AliHBTMonPIDContaminationVsPtFctn(const AliHBTMonPIDContaminationVsPtFctn& /*in*/);
+ virtual ~AliHBTMonPIDContaminationVsPtFctn();
+
+ AliHBTMonPIDContaminationVsPtFctn& operator=(const AliHBTMonPIDContaminationVsPtFctn& /*in*/);
+
void Init();
void Write();
void Rename(const Char_t * name);
Double_t GetValue(AliVAODParticle * /*track*/,AliVAODParticle * /*part*/) const { return 0.0; }
void Process(AliVAODParticle * track,AliVAODParticle * part);
protected:
- TH1D* fWrong;
- TH1D* fAll;
+ TH1D* fWrong;//histogram filled with wrongly identified particles
+ TH1D* fAll;//histogram filled with all particles
ClassDef(AliHBTMonPIDContaminationVsPtFctn,1)
};
/*************************************************************************************/