32 #include "StPidAmpChannelInfoOut.h"
38 mNHitsStart=infoOut.mNHitsStart;
39 mNHitsEnd =infoOut.mNHitsEnd;
40 mPtStart =infoOut.mPtStart;
41 mPtEnd =infoOut.mPtEnd;
42 mDcaStart =infoOut.mDcaStart;
43 mDcaEnd =infoOut.mDcaEnd;
47 StPidAmpChannelInfoOut::StPidAmpChannelInfoOut(Int_t nhitsStart, Int_t nhitsEnd, Double_t ptStart, Double_t ptEnd){
49 mNHitsStart=nhitsStart;
55 StPidAmpChannelInfoOut::~StPidAmpChannelInfoOut(){}
57 StPidAmpChannelInfoOut::StPidAmpChannelInfoOut(Int_t nhitsStart, Int_t nhitsEnd, Double_t ptStart, Double_t ptEnd, Double_t dcaStart, Double_t dcaEnd){
59 mNHitsStart = nhitsStart;
67 void StPidAmpChannelInfoOut::SetNHitsRange(Int_t nhitsStart, Int_t nhitsEnd){
68 mNHitsStart=nhitsStart;
72 void StPidAmpChannelInfoOut::SetPtRange(Double_t ptStart, Double_t ptEnd){
77 void StPidAmpChannelInfoOut::SetDcaRange(Double_t dcaStart, Double_t dcaEnd){
82 Int_t StPidAmpChannelInfoOut::NHitsStart()
const {
return mNHitsStart;}
86 Int_t StPidAmpChannelInfoOut::NHitsEnd()
const {
return mNHitsEnd;}
90 Double_t StPidAmpChannelInfoOut::PtStart()
const {
return mPtStart;}
94 Double_t StPidAmpChannelInfoOut::PtEnd()
const {
return mPtEnd;}
98 Double_t StPidAmpChannelInfoOut::DcaStart()
const {
return mDcaStart;}
99 Double_t StPidAmpChannelInfoOut::DcaEnd()
const {
return mDcaEnd;}
101 Bool_t StPidAmpChannelInfoOut::IsInChannel(Int_t nhits,Double_t pt){
103 return ((nhits<mNHitsEnd)&&(nhits>=mNHitsStart)&&(pt<mPtEnd)&&(pt>=mPtStart));
106 Bool_t StPidAmpChannelInfoOut::IsInChannel(Int_t nhits,Double_t pt,Double_t dca){
108 return ((nhits<mNHitsEnd)&&(nhits>=mNHitsStart)&&(pt<mPtEnd)&&(pt>=mPtStart)&&(dca<mDcaEnd)&&(dca>=mDcaStart));
111 void StPidAmpChannelInfoOut::PrintContent(){
112 cout<<
"NHitsStart: "<<NHitsStart()<<
" NHitsEnd: "<<NHitsEnd()<<endl;
113 cout<<
"PtStart: "<<PtStart() <<
" PtEnd: "<<PtEnd()<<endl;
114 cout<<
"DcaStart: "<<DcaStart() <<
" DcaEnd: "<<DcaEnd()<<endl;
121 s<<
"NHitsStart: "<<infoOut.NHitsStart()<<
" NHitsEnd: "<<infoOut.NHitsEnd()<<endl;
122 s<<
"PtStart: "<<infoOut.PtStart() <<
" PtEnd: "<<infoOut.PtEnd()<<endl;
124 s<<
"DcaStart: "<<infoOut.DcaStart() <<
" DcaEnd: "<<infoOut.DcaEnd()<<endl;