Changeset 135 in Idarraga
- Timestamp:
- Apr 15, 2011, 8:15:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/src/AllPixFEI3StandardDigitizer.cc
r134 r135 113 113 doFullField = false; 114 114 FEIX = 3; 115 116 switch (FEIX) { 117 118 case 3 : 119 MipTOT=60; 120 MipCharge=22000; 121 CounterDepth=255; 122 case 4 : 123 MipTOT=5; 124 MipCharge=22000; 125 CounterDepth=15; 126 default : 127 MipTOT=60; 128 MipCharge=22000; 129 CounterDepth=255; 130 131 } 132 133 134 135 115 136 } 116 137 … … 544 565 { 545 566 546 switch() 547 548 const G4double dEdt = (22000.*elec- threshold)/(60*25.*ns); 567 G4double dEdt = (MipCharge*elec- threshold)/(MipTOT*25.*ns); 549 568 G4int TOT = TMath::FloorInt((Energy-threshold)/(dEdt*25.*ns)); 550 569 if(Energy<threshold) TOT=0; 551 570 if (TOT<0) TOT=0; 552 if (TOT> 256) TOT=256;571 if (TOT>CounterDepth) TOT=CounterDepth; 553 572 554 573 return TOT;
Note: See TracChangeset
for help on using the changeset viewer.