13 #include <digtransport.h>
26 #include <TClonesArray.h>
45 DIGTransport::DIGTransport(Float_t myvar)
51 DIGTransport::~DIGTransport() {
58 DIGTransport::DIGTransport(
DIGTransport & adigtransport) : TObject()
60 fMyvar = adigtransport.GetMyvar();
65 void DIGTransport::Clear(
const Option_t *)
72 void DIGTransport::SetLorentz2DModel_Cp0(Float_t Lorentz2DModel_Cp0){
73 fLorentz2DModel_Cp0 = Lorentz2DModel_Cp0;
77 void DIGTransport::SetLorentz2DModel_Cp1(Float_t Lorentz2DModel_Cp1){
78 fLorentz2DModel_Cp1 = Lorentz2DModel_Cp1;
82 void DIGTransport::SetRangeLimit_InPitchUnit(Float_t RangeLimit_InPitchUnit){
83 fRangeLimit_InPitchUnit = RangeLimit_InPitchUnit;
87 void DIGTransport::SetChargeModel(Int_t ChargeModel){
88 fChargeModel = ChargeModel;
92 void DIGTransport::SetGauss2DModel_sigma1_Cp0(Float_t Gauss2DModel_sigma1_Cp0){
93 fGauss2DModel_sigma1_Cp0 = Gauss2DModel_sigma1_Cp0;
97 void DIGTransport::SetGauss2DModel_sigma1_Cp1(Float_t Gauss2DModel_sigma1_Cp1){
98 fGauss2DModel_sigma1_Cp1 = Gauss2DModel_sigma1_Cp1;
102 void DIGTransport::SetGauss2DModel_sigma2_Cp0(Float_t Gauss2DModel_sigma2_Cp0){
103 fGauss2DModel_sigma2_Cp0 = Gauss2DModel_sigma2_Cp0;
107 void DIGTransport::SetGauss2DModel_sigma2_Cp1(Float_t Gauss2DModel_sigma2_Cp1){
108 fGauss2DModel_sigma2_Cp1 = Gauss2DModel_sigma2_Cp1;
112 void DIGTransport::SetGauss2DModel_weight(Float_t Gauss2DModel_weight){
113 fGauss2DModel_weight = Gauss2DModel_weight;
117 void DIGTransport::SetLorGaussModel_Norm1_Cp0(Float_t LorGaussModel_Norm1_Cp0){
118 fLorGaussModel_Norm1_Cp0=LorGaussModel_Norm1_Cp0 ;
122 void DIGTransport::SetLorGaussModel_Norm1_Cp1(Float_t LorGaussModel_Norm1_Cp1){
123 fLorGaussModel_Norm1_Cp1=LorGaussModel_Norm1_Cp1 ;
128 void DIGTransport::SetLorGaussModel_Norm1_Cp2(Float_t LorGaussModel_Norm1_Cp2){
129 fLorGaussModel_Norm1_Cp2=LorGaussModel_Norm1_Cp2 ;
134 void DIGTransport::SetLorGaussModel_sigma_Cp0(Float_t LorGaussModel_sigma_Cp0){
135 fLorGaussModel_sigma_Cp0=LorGaussModel_sigma_Cp0 ;
140 void DIGTransport::SetLorGaussModel_sigma_Cp1(Float_t LorGaussModel_sigma_Cp1){
141 fLorGaussModel_sigma_Cp1=LorGaussModel_sigma_Cp1 ;
146 void DIGTransport::SetLorGaussModel_C_Cp0(Float_t LorGaussModel_C_Cp0){
147 fLorGaussModel_C_Cp0=LorGaussModel_C_Cp0 ;
152 void DIGTransport::SetLorGaussModel_C_Cp1(Float_t LorGaussModel_C_Cp1){
153 fLorGaussModel_C_Cp1=LorGaussModel_C_Cp1 ;
158 void DIGTransport::SetLorGaussModel_Norm_Cp0(Float_t LorGaussModel_Norm_Cp0){
159 fLorGaussModel_Norm_Cp0=LorGaussModel_Norm_Cp0 ;
163 void DIGTransport::SetLorGaussModel_Norm_Cp1(Float_t LorGaussModel_Norm_Cp1){
164 fLorGaussModel_Norm_Cp1 = LorGaussModel_Norm_Cp1;
168 void DIGTransport::PrintInfo() {
169 std::cout<<
"---------DIGTransport properties------------- "<<endl;
170 std::cout<<
"fChargeModel"<<endl;
171 std::cout<<fChargeModel<<endl;
173 std::cout<<
"fLorentz2DModel_Cp0"<<endl;
174 std::cout<<fLorentz2DModel_Cp0<<endl;
175 std::cout<<
"fLorentz2DModel_Cp1"<<endl;
176 std::cout<<fLorentz2DModel_Cp1<<endl;
177 std::cout<<
"fRangeLimit_InPitchUnit"<<endl;
178 std::cout<<fRangeLimit_InPitchUnit<<endl;
179 }
else if(fChargeModel==2){
181 std::cout<<
"fGauss2DModel_sigma1_Cp0"<<endl;
182 std::cout<<fGauss2DModel_sigma1_Cp0 <<endl;
183 std::cout<<
"fGauss2DModel_sigma1_Cp1"<<endl;
184 std::cout<< fGauss2DModel_sigma1_Cp1 <<endl;
185 std::cout<<
"fGauss2DModel_sigma2_Cp0"<<endl;
186 std::cout<<fGauss2DModel_sigma2_Cp0 <<endl;
187 std::cout<<
"fGauss2DModel_sigma2_Cp1"<<endl;
188 std::cout<< fGauss2DModel_sigma2_Cp1 <<endl;
189 std::cout<<
"fGauss2DModel_weight"<<endl;
190 std::cout<< fGauss2DModel_weight <<endl;
201 void DIGTransport::SetMyvar(Float_t Myvar){