Changeset 261 in Idarraga for allpix/src/AllPixRun.cc
- Timestamp:
- Nov 21, 2011, 7:07:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/src/AllPixRun.cc
r260 r261 9 9 #include "G4SDManager.hh" 10 10 #include "G4DigiManager.hh" 11 #include "G4Trajectory.hh" 11 12 12 13 // digits, frames … … 29 30 * This constructor is called once per run 30 31 */ 31 AllPixRun::AllPixRun(TString ofp, TString dataset, TString tempDir){ 32 AllPixRun::AllPixRun(AllPixDetectorConstruction * det, TString ofp, TString dataset, TString tempDir){ 33 34 m_detectorPtr = det; 32 35 33 36 // Call for an instance to write. Need to know how … … 387 390 *m_lciobridge_dut_f << "R " << GetRunID() << endl; 388 391 392 // check event for information about the track 393 //G4TrajectoryContainer * tC = evt->GetTrajectoryContainer(); 394 //G4Trajectory * tr; 395 G4TrajectoryContainer * tC = evt->GetTrajectoryContainer(); 396 G4cout << "Trajectories : " << tC->GetVector()->size() << G4endl; 397 TrajectoryVector * tV = tC->GetVector(); 398 TrajectoryVector::iterator tI = tV->begin(); 399 TrajectoryVector::iterator tIE = tV->end(); 400 401 G4Trajectory * tr; 402 G4TrajectoryPoint* tP; 403 for ( ; tI != tIE ; tI++ ) { 404 tr = static_cast<G4Trajectory*>(*tI); 405 //G4cout << " " << tr->GetPDGEncoding() << G4endl; 406 //G4cout << " " << tr->GetPointEntries() << G4endl; 407 tP = static_cast<G4TrajectoryPoint*>((*tI)->GetPoint(0)); 408 409 // Check which of the points is at the interior of the sensor 410 // Use the G4VSolid::Inside(const G4ThreeVector& p) 411 // Find first the Silicon G4VSolids (sensors). 412 413 414 //G4VSolid * sol = m_detectorPtr->GetVSolidDetector(100); 415 //G4cout << " " << tP->GetPosition().z()/mm << G4endl; 416 /* 417 if(sol->Inside(tP->GetPosition()) == kInside){ 418 G4cout << " inside !!" << G4endl; 419 } else { 420 G4cout << " outside !!" << G4endl; 421 } 422 */ 423 } 424 389 425 // Ok, I have to match the right detector m_frames with the digit collection 390 426 for (G4int i = 0 ; i < nDC ; i++) {
Note: See TracChangeset
for help on using the changeset viewer.