86 pos = TVector3(richHit->GetX(),richHit->GetY(),richHit->GetZ());
87 TVector3
p = TVector3(richHit->GetPx(),richHit->GetPy(),richHit->GetPz());
90 tm = richHit->GetTime();
95 Float_t richThetaC = -1000, richThetaCErr = 0;
96 Float_t richQuality = 1000000;
99 richQuality,richThetaC,richThetaCErr,richPhot);
102 std::cout << std::setprecision(10) << std::endl;
103 std::cout <<
"PndRichRecoTask: " <<
fEvent <<
" " << richQuality <<
" " << richThetaC
104 <<
" " << richThetaCErr <<
" " << richPhot <<
" " << 1
105 <<
" " << mom <<
" " << dir.Phi() <<
" " << dir.Theta()
106 <<
" " << pos.X() <<
" " << pos.Y() <<
" " << pdg << std::endl;
107 Double_t mass[5] = {0.000510998961,0.1056583745,0.13957018,0.493667,0.9382720813};
111 for(Int_t
i=0;
i<5;
i++)
113 Float_t richThetaCx = richThetaC;
115 pnt.
beta = richThetaCx;
118 pnt.
theta = dir.Theta();
124 pnt.
beta <<
" " << pnt.
x <<
" " << pnt.
y <<
" " << pnt.
theta <<
" " << pnt.
phi << std::endl;
127 TF1 *gausPdf =
new TF1(
"gausPdf",
"gausn",0,1);
128 gausPdf->SetParameter(0,1);
129 gausPdf->SetParameter(1,richThetaCx);
130 gausPdf->SetParameter(2,richThetaCErr);
132 pdf[
i] = gausPdf->Eval(beta);
136 std::cout <<
"particles PID: ";
137 for(Int_t
i=0;
i<5;
i++)
138 std::cout << pdf[
i] <<
" " << (pdfsum?pdf[
i]/pdfsum:0.2) <<
" " ;
139 std::cout << std::endl;
141 vdth.insert(
vdth.end(),dth.begin(),dth.end());
142 vnhits.push_back(dth.size());
143 vmean.push_back(richThetaC);
144 vsigma.push_back(richThetaCErr);
148 vth.insert(
vth.end(),th.begin(),th.end());
149 vph.insert(
vph.end(),ph.begin(),ph.end());
151 for(
size_t i=0;
i<ph.size();
i++)
152 std::cout <<
"::HitPars() " <<
fEvent <<
" " << ph.at(
i) <<
" " <<
153 th.at(
i) <<
" " << dth.at(
i) << std::endl;
158 richQuality,richThetaC,richThetaCErr,richPhot);
159 std::cout <<
"PndRichRecoTask: " <<
fEvent <<
" " << richQuality <<
" " << richThetaC
160 <<
" " << richThetaCErr <<
" " << richPhot <<
" " << 2 << std::endl;
TVector3 fTrackDirectionSecond
std::vector< double > GetDThetas()
std::vector< Double_t > vsigma
PndRichResolution * fRichResolution
static T Sqrt(const T &x)
std::vector< double > GetThetas()
void RichFullReconstruction(TVector3 pos, TVector3 dir, Float_t ts, Float_t &chi2, Float_t &chTh, Float_t &dChTh, Int_t &nph)
std::vector< Double_t > vmean
std::vector< Double_t > vth
Double_t Shift(dbpoint pnt)
TClonesArray * fRichBarPoint
std::vector< Double_t > vdth
std::vector< UInt_t > vnhits
TVector3 fTrackPositionSecond
std::vector< double > GetPhis()
Double_t Sigma(dbpoint pnt)
std::vector< Double_t > vph