38 #include "StPidAmpNetOut.h"
47 mGeantID =netOut.mGeantID;
48 mBandParArray=netOut.mBandParArray;
49 mAmpParArray =netOut.mAmpParArray;
50 mResoParArray=netOut.mResoParArray;
51 mCalibConst =netOut.mCalibConst;
52 SetName(netOut.GetName());
53 SetTitle(netOut.GetTitle());
57 StPidAmpNetOut::StPidAmpNetOut(Text_t* name,Text_t* title,Int_t
id,TArrayD bandParAry, TArrayD ampParAry, TArrayD linrParAry) : TNamed(name,title) {
60 mBandParArray=bandParAry;
61 mAmpParArray=ampParAry;
62 mResoParArray=linrParAry;
65 StPidAmpNetOut::StPidAmpNetOut(
const char* name,
const char* title,Int_t
id,TArrayD bandParAry, TArrayD ampParAry, TArrayD linrParAry) : TNamed(name,title) {
68 mBandParArray=bandParAry;
69 mAmpParArray=ampParAry;
70 mResoParArray=linrParAry;
73 StPidAmpNetOut::~StPidAmpNetOut(){}
75 void StPidAmpNetOut::SetBandParArray(TArrayD bandParAry){
76 mBandParArray=bandParAry;
79 void StPidAmpNetOut::SetAmpParArray(TArrayD ampParAry){
80 mAmpParArray=ampParAry;
83 void StPidAmpNetOut::SetResoParArray(TArrayD linrParAry){
84 mResoParArray=linrParAry;
87 void StPidAmpNetOut::SetGeantID(Int_t
id){
90 void StPidAmpNetOut::SetCalibConst(Double_t cal){
93 void StPidAmpNetOut::PrintContent(){
95 cout<<GetName()<<
" Geant ID: "<<mGeantID<<endl;
96 cout<<
"Calibration constant: "<<mCalibConst<<endl;
97 cout<<
"band Parameters: { ";
100 for (i=0; i<mBandParArray.GetSize();i++){
102 cout<<mBandParArray.At(i);
104 if ( i!=(mBandParArray.GetSize()-1)) cout<<
", ";
110 cout<<
"amplitude Parameters: { ";
114 for (i=0; i<mAmpParArray.GetSize();i++){
116 cout<<mAmpParArray.At(i);
118 if ( i!=(mAmpParArray.GetSize()-1)) cout<<
", ";
124 cout<<
"resolution Parameters: { ";
127 for (i=0; i<mResoParArray.GetSize();i++){
129 cout<<mResoParArray.At(i);
131 if ( i!=(mResoParArray.GetSize()-1)) cout<<
", ";
147 TArrayD* StPidAmpNetOut::GetBandParArray() {
return &mBandParArray;}
148 TArrayD* StPidAmpNetOut::GetAmpParArray() {
return &mAmpParArray;}
149 TArrayD* StPidAmpNetOut::GetResoParArray() {
return &mResoParArray;}
150 Int_t StPidAmpNetOut::GetNBandPars()
const{
return mBandParArray.GetSize();}
151 Int_t StPidAmpNetOut::GetNAmpPars()
const{
return mAmpParArray.GetSize();}
152 Int_t StPidAmpNetOut::GetNResoPars()
const{
return mResoParArray.GetSize();}
154 Int_t StPidAmpNetOut::GetGeantID()
const{
return mGeantID;}
155 Double_t StPidAmpNetOut::GetCalibConst()
const{
return mCalibConst;}
159 s<<netOut.GetName()<<
" Geant ID: "<<netOut.GetGeantID()<<endl;
160 s<<
"Calibration constant: "<<netOut.GetCalibConst()<<endl;
162 s<<
"band Parameters: { ";
164 TArrayD* theBandParArray=netOut.GetBandParArray();
166 for (i=0; i<theBandParArray->GetSize();i++){
168 s<<theBandParArray->At(i);
170 if ( i!=(theBandParArray->GetSize()-1)) s<<
", ";
176 s<<
"amplitude Parameters: { ";
178 TArrayD* theAmpParArray=netOut.GetAmpParArray();
181 for (i=0; i<theAmpParArray->GetSize();i++){
183 s<<theAmpParArray->At(i);
185 if ( i!=(theAmpParArray->GetSize()-1)) s<<
", ";
191 s<<
"resolution Parameters: { ";
193 TArrayD* theResoParArray=netOut.GetResoParArray();
195 for (i=0; i<theResoParArray->GetSize();i++){
197 s<<theResoParArray->At(i);
199 if ( i!=(theResoParArray->GetSize()-1)) s<<
", ";