Changeset 209 in Idarraga
- Timestamp:
- Jul 14, 2011, 5:49:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/src/AllPixFEI3StandardDigitizer.cc
r198 r209 43 43 ////////////////////////// 44 44 45 biasVoltage=1 50.0; //[V]45 biasVoltage=100.0; //[V] 46 46 Temperature = 300.0; 47 47 detectorThickness = gD->GetSensorZ(); 48 resistivity= 5000;48 resistivity=9000; 49 49 50 50 // true = p-type … … 150 150 dtIni = 0.01*ns; 151 151 152 precision = 5;152 precision = 1; 153 153 154 154 … … 166 166 */ 167 167 168 FEIX = 3;168 FEIX = 4; 169 169 170 170 switch (FEIX) { … … 177 177 chipNoise = 300*elec; 178 178 m_digitIn.thl = 3500*elec; 179 chargeSharingConstant =0.0 2;179 chargeSharingConstant =0.0; 180 180 break; 181 181 182 182 183 183 case 4 : 184 MipTOT= 5;185 MipCharge= 20000;184 MipTOT=10; 185 MipCharge=40000; 186 186 CounterDepth=15; 187 187 Lv1Unit = 25*ns; 188 188 chipNoise = 125*elec; 189 m_digitIn.thl = 2000*elec;189 m_digitIn.thl = 3200*elec; 190 190 chargeSharingConstant =0.02; 191 191 break; … … 446 446 eHitTotal = eHitTotal*depletedDepth/detectorThickness; 447 447 448 tempPixel.first = (*hitsCollection)[itr]->GetPixelNbX(); 449 tempPixel.second = (*hitsCollection)[itr]->GetPixelNbY(); 450 451 G4double xpos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().x(); 452 G4double ypos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().y(); 453 G4double zpos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().z()+detectorThickness/2.; 454 //cout << TString::Format("x,y,z : %5.5f %5.5f %5.5f",xpos/um,ypos/um,zpos/um)<<endl; 455 456 448 457 for(G4int nQ = 0 ; nQ < precision ; nQ++) { 449 458 450 459 double eHit = double(eHitTotal)/precision; 451 460 // Hit Info 452 453 tempPixel.first = (*hitsCollection)[itr]->GetPixelNbX();454 tempPixel.second = (*hitsCollection)[itr]->GetPixelNbY();455 456 G4double xpos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().x();457 458 461 //Ugly Hack !!! 459 462 if(xpos>0)xpos=-pitchX/2+xpos; 460 463 else xpos=pitchX/2+xpos; 461 464 462 G4double ypos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().y(); 463 //G4double zpos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().z(); 464 G4double zpos = CLHEP::RandFlat::shoot()*depletedDepth; 465 G4double zpos = CLHEP::RandGauss::shoot(zpos,10*um); 465 466 466 467 … … 620 621 digit->SetPixelCounts(EnergyToTOT((*pCItr).second,threshold)); 621 622 //digit->IncreasePixelCounts(); // Counting mode 623 cout << "TOT= "<< EnergyToTOT((*pCItr).second,threshold) << endl; 624 cout << "Energy= "<< (*pCItr).second/elec << endl; 622 625 623 626 // MC only // … … 748 751 { 749 752 750 G4double dEdt = (MipCharge*elec- threshold)/(MipTOT*Lv1Unit*ns); 751 G4int TOT = TMath::FloorNint((Energy-threshold)/(dEdt*Lv1Unit*ns)); 753 G4double dEdt = (MipCharge*elec- threshold)/(MipTOT*Lv1Unit); 754 //G4int TOT = TMath::FloorNint((Energy-threshold)/(dEdt*Lv1Unit*ns)); 755 G4int TOT = TMath::FloorNint((Energy-threshold)/(dEdt*Lv1Unit)); 756 752 757 if(Energy<threshold) TOT=0; 753 758 if (TOT<0) TOT=0;
Note: See TracChangeset
for help on using the changeset viewer.