Changeset 232 in Idarraga
- Timestamp:
- Sep 5, 2011, 5:23:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/src/AllPixFEI3StandardDigitizer.cc
r231 r232 188 188 MipTOT=10; 189 189 MipCharge=40000; 190 //MipCharge=20000; 190 191 CounterDepth=15; 191 Lv1Unit = 25 ;192 Lv1Unit = 25*ns; 192 193 chipNoise = 125*elec; 193 194 m_digitIn.thl = 3200*elec; … … 443 444 //TF1 * f1 = new TF1("expint","exp((x-[0])*(x-[0])/2.*[1])",-100.,100.); 444 445 446 G4double hitsETotal = 0.; 447 445 448 for(G4int itr = 0 ; itr < nEntries ; itr++) { 446 449 447 450 G4double eHitTotal = elec*CLHEP::RandGauss::shoot((*hitsCollection)[itr]->GetEdep()/elec,TMath::Sqrt((*hitsCollection)[itr]->GetEdep()/elec)*0.118); 451 hitsETotal += eHitTotal; 448 452 449 453 //under-depletion … … 453 457 tempPixel.second = (*hitsCollection)[itr]->GetPixelNbY(); 454 458 455 G4cout << "x : " << tempPixel.first << " , y : " << tempPixel.second << G4endl; 459 G4cout << "x : " << tempPixel.first << " , y : " << tempPixel.second << ", E = " << eHitTotal/keV << G4endl; 460 456 461 457 462 G4double xpos = (*hitsCollection)[itr]->GetPosWithRespectToPixel().x(); … … 566 571 567 572 } 573 574 G4cout << "total = " << hitsETotal/keV << " keV" << G4endl; 575 568 576 // Now create digits. One per pixel 569 577 map<pair<G4int, G4int>, G4double >::iterator pCItr = pixelsContent.begin(); … … 573 581 // If the charge in a given pixel is over the threshold 574 582 double threshold =CLHEP::RandGauss::shoot(m_digitIn.thl,chipNoise); 575 //cout << TString::Format("Threshold= %f", threshold/keV) << endl; 583 584 G4cout << "pixel : " << (*pCItr).first.first << " , " << (*pCItr).first.second 585 << ", E = " << ((*pCItr).second)/keV << " keV | thl = " 586 << TString::Format("Threshold= %f keV", threshold/keV) << G4endl; 576 587 //if((*pCItr).second > m_digitIn.thl) 577 588 if((*pCItr).second > threshold)
Note: See TracChangeset
for help on using the changeset viewer.