4 #include "FairRootManager.h"
13 FairRootManager *fManager =FairRootManager::Instance();
36 std::cout <<
"InitStatus PndPidDrcAssociatorTask::Init()" << std::endl;
38 FairRootManager *fManager =FairRootManager::Instance();
42 std::cout <<
"-I- PndPidDrcAssociatorTask::Init: No PndPidCandidate array PidChargedCand there!" << std::endl;
48 std::cout <<
"-I- PndPidDrcAssociatorTask::Init: Success!" << std::endl;
60 if(
fVerbose>1) std::cout <<
"-I- Start PndPidDrcAssociatorTask. "<<std::endl;
82 sigma=0.001*(3.21659E-01 + 7.48416E-02*theta - 9.87561E-05*theta*theta - 2.47129E-06*theta*theta*
theta);
83 }
else if(theta>45. && theta<90.){
84 sigma=0.001*(3.21659E-01 + 7.48416E-02*theta - 9.87561E-05*theta*theta - 2.47129E-06*theta*theta*
theta);
86 sigma=0.001*( 2.34224e+01-3.52791e-01*theta+1.64046e-03*theta*theta-7.57365e-07*theta*theta*
theta)+0.0003;
92 Float_t mass = 0.0005;
106 Float_t mass = 0.140;
113 Float_t mass = 0.494;
120 Float_t mass = 0.938;
129 if ( (beta>0.) && ((1./1.47/beta)<1.) )
132 TF1 *gausPdf =
new TF1(
"gausPdf",
"gausn",0,1);
133 gausPdf->SetParameter(0,1);
134 gausPdf->SetParameter(1,center);
135 gausPdf->SetParameter(2,sigma);
150 FairRootManager::Instance()->
TClonesArray * fPidChargedCand
friend F32vec4 exp(const F32vec4 &a)
void SetPionPdf(Double_t val)
Double_t val[nBoxes][nFEBox]
static T Sqrt(const T &x)
virtual ~PndPidDrcAssociatorTask()
void SetKaonPdf(Double_t val)
Float_t GetDrcThetaC() const
void SetElectronPdf(Double_t val)
void SetMuonPdf(Double_t val)
h_MC_angle SetTitle("MC truth: opening angle of #pi^{0}")
virtual void SetParContainers()
TClonesArray * fPidChargedProb
PndPidCandidate TCA for charged particles.
PndPidDrcAssociatorTask()
Double_t GetPdf(Double_t thetaC, Double_t mom, Double_t mass, Double_t sigma)
void SetProtonPdf(Double_t val)
virtual InitStatus Init()
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
virtual void Exec(Option_t *option)
Int_t GetDrcIndex() const
TVector3 GetMomentum() const
TString fTrackBranchNamePidHypo
PndPidProbability TCA for charged particles.