1 #include "/afs/rhic.bnl.gov/star/replicas/DEV/StRoot/StEventUtilities/BetheBlochFunction.hh"
3 void checkPIDInFlowPicoDST(){
6 TChain* chain =
new TChain(
"FlowTree");
8 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0001.event.root.flowpicoevent.root");
10 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0003.event.root.flowpicoevent.root");
11 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0005.event.root.flowpicoevent.root");
15 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0004.event.root.flowpicoevent.root");
16 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0008.event.root.flowpicoevent.root");
17 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0015.event.root.flowpicoevent.root");
21 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0009.event.root.flowpicoevent.root");
22 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0012.event.root.flowpicoevent.root");
23 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0016.event.root.flowpicoevent.root");
25 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0014.event.root.flowpicoevent.root");
26 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0013.event.root.flowpicoevent.root");
27 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0006.event.root.flowpicoevent.root");
28 chain->Add(
"/star/data10/GC/aihong/P01glPIDFlowPicoDST/st_physics_2269001_raw_0002.event.root.flowpicoevent.root");
34 float dedxEnd =1.0e-5;
39 new TH2D(
"PionHist",
"PionHist", 100, pBegin,pEnd, 100,dedxBegin,dedxEnd);
40 PionHist->SetMarkerColor(6);
44 KaonHist->SetName(
"KaonHist"); KaonHist->SetTitle(
"KaonHist");
45 KaonHist->SetMarkerColor(2);
50 ProtonHist->SetName(
"ProtonHist"); ProtonHist->SetTitle(
"ProtonHist");
51 ProtonHist->SetMarkerColor(3);
55 ElectronHist->SetName(
"ElectronHist"); ElectronHist->SetTitle(
"ElectronHist");
56 ElectronHist->SetMarkerColor(4);
61 LowProbHist->SetName(
"LowProbHist"); LowProbHist->SetTitle(
"LowProbHist");
62 LowProbHist->SetMarkerColor(1);
67 ExtrapHist->SetName(
"ExtrapHist"); ExtrapHist->SetTitle(
"ExtrapHist");
68 ExtrapHist->SetMarkerColor(7);
71 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>PionHist",
"mMostLikelihoodProb>0.25 && (mMostLikelihoodPID == 8 || mMostLikelihoodPID == 9) && mNdedxPts>15 && mCharge<5 && mDca >3 ");
73 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>KaonHist",
"mMostLikelihoodProb>0.25 && (mMostLikelihoodPID == 11 || mMostLikelihoodPID == 12) && mNdedxPts>15 && mCharge<5 && mDca >3");
75 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>ProtonHist",
"mMostLikelihoodProb>0.25 && (mMostLikelihoodPID == 14 || mMostLikelihoodPID == 15) && mNdedxPts>15 && mCharge<5 && mDca >3");
77 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>ElectronHist",
"mMostLikelihoodProb>0.25 && (mMostLikelihoodPID == 2 || mMostLikelihoodPID == 3) && mNdedxPts>15 && mCharge<5 && mDca >3");
79 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>LowProbHist",
"mMostLikelihoodProb<0.25 && mNdedxPts>15 && mCharge<5 && mDca >3");
80 chain->Draw(
"mDedx: (mPt/sqrt(1-(tanh(mEta)*tanh(mEta)))) >>ExtrapHist",
"mExtrapTag==1 && mCharge<5 && mDca >3");
84 KaonHist->Draw(
"SAME");
85 ProtonHist->Draw(
"SAME");
86 ElectronHist->Draw(
"SAME");
87 LowProbHist->Draw(
"SAME");
100 =
new TF1(
"EBandCenter",BetheBlochFunction, mPStart,mPEnd, NParameters);
102 =
new TF1(
"PiBandCenter",BetheBlochFunction, mPStart,mPEnd, NParameters);
104 =
new TF1(
"KBandCenter",BetheBlochFunction, mPStart,mPEnd, NParameters);
106 =
new TF1(
"PBandCenter",BetheBlochFunction, mPStart,mPEnd, NParameters);
109 double offsetPar = 3.01022e-07;
110 double scalePar = 4.68971e-07;
114 double turnOver = 0.0199;
115 double firstPar = 1.09344;
117 Double_t electronPars[7]
118 ={ firstPar, turnOver, offsetPar, 1, 0.511e-3, scalePar, 0.0005 };
120 ={ firstPar, turnOver, offsetPar, 1, 0.13957, scalePar, 0.0005 };
122 ={ firstPar, turnOver, offsetPar, 1, 0.49368, scalePar, 0.0005 };
123 Double_t antiprotonPars[7]
124 ={ firstPar, turnOver, offsetPar, 1, 0.93827, scalePar, 0.0005 };
126 EBandCenter->SetParameters(&electronPars[0]);
127 PiBandCenter->SetParameters(&pionPars[0]);
128 KBandCenter->SetParameters(&kaonPars[0]);
129 PBandCenter->SetParameters(&antiprotonPars[0]);
132 EBandCenter->Draw(
"SAME");
133 PiBandCenter->Draw(
"SAME");
134 KBandCenter->Draw(
"SAME");
135 PBandCenter->Draw(
"SAME");