24 #include <TClonesArray.h>
47 void DIGADC::SetNbits(Int_t Nbits){
52 void DIGADC::SetNThresholds(Int_t NThresholds){
53 fNThresholds = NThresholds;
57 void DIGADC::SetADC_linear(Bool_t ADC_linear){
58 fADC_linear = ADC_linear;
62 void DIGADC::SetLSB(Float_t LSB){
67 void DIGADC::SetElectron_Conversion(Float_t Electron_Conversion){
68 fElectron_Conversion = Electron_Conversion;
72 void DIGADC::SetADC_thresholds(Float_t ADC_thresholds[], Int_t NThresholds){
73 for (Int_t i = 0; i <NThresholds ; i++){
74 fADC_thresholds[i] = ADC_thresholds[i];
79 void DIGADC::PrintInfo(){
80 std::cout<<
"-------- ADC INFOS "<<endl;
81 std::cout<<
"fNbits fNThresholds fADC_linear fLSB fElectron_Conversion"<<endl;
82 std::cout<<fNbits<<
" "<< fNThresholds<<
" "<< fADC_linear<<
" "<< fLSB<<
" "<< fElectron_Conversion<<endl;
83 Int_t Nthtoprint = fNThresholds;
85 for (Int_t i = 0; i <Nthtoprint; i++){
86 std::cout<<i<<
" "<<fADC_thresholds[i] <<endl;
90 for (Int_t i = 0; i <Nthtoprint; i++){
91 std::cout<<i<<
" "<<fADC_thresholds[i] <<endl;
93 std::cout<<
" etc. "<<endl;