Changeset 261 in Idarraga
- Timestamp:
- Nov 21, 2011, 7:07:58 PM (13 years ago)
- Location:
- allpix
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/allpix.cc
r260 r261 138 138 // Hits ! --> Ntuple to store hits 139 139 // creates AllPixRun to analyze hits at the end of event 140 TString dataset = " AllPix";140 TString dataset = "allPix"; 141 141 TString tempdir = ""; 142 142 AllPixRunAction * run_action = new AllPixRunAction(detector, dataset, tempdir, -
allpix/include/AllPixDetectorConstruction.hh
r257 r261 42 42 #include "G4Colour.hh" 43 43 #include "G4PVDivision.hh" 44 #include "G4VSolid.hh" 44 45 45 46 #include "AllPixTrackerSD.hh" … … 110 111 void SetOutputFilePrefix(G4String); 111 112 G4String GetOutputFilePrefix(){return m_outputFilePrefix;}; 113 114 G4VSolid * GetVSolidDetector (G4int detId) { 115 // Check first if the detId is good 116 // otherwise return null pointer 117 return m_Box_log[detId]->GetSolid(); 118 }; 112 119 113 120 // Specific EUTelescope -
allpix/include/AllPixRun.hh
r260 r261 31 31 class WriteToNtuple; 32 32 class SimpleHits; 33 class AllPixDetectorConstruction; 33 34 34 35 #ifdef _EUTELESCOPE … … 40 41 public: 41 42 42 AllPixRun( TString, TString, TString);43 AllPixRun(AllPixDetectorConstruction *, TString, TString, TString); 43 44 virtual ~AllPixRun(); 44 45 … … 54 55 private: 55 56 57 AllPixDetectorConstruction * m_detectorPtr; 56 58 AllPixTrackerHitsCollection * m_hitsCollection; 57 59 -
allpix/macros/oneDetector_Inventor_vis.in
r260 r261 98 98 /gps/source/list 99 99 100 /run/beamOn 2100 /run/beamOn 1 101 101 102 102 # video -
allpix/macros/telescope1_Inventor_vis.in
r260 r261 162 162 #/vis/open OGLIQt 163 163 #/vis/open OGLSQt 164 #/vis/open OIX165 /vis/open OGLIX 1024x768-100+100164 /vis/open OIX 165 #/vis/open OGLIX 1024x768-100+100 166 166 #/vis/open OGLSXm 167 167 #/vis/open DAWNFILE -
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++) { -
allpix/src/AllPixRunAction.cc
r260 r261 83 83 G4Run * AllPixRunAction::GenerateRun(){ 84 84 85 m_AllPixRun = new AllPixRun(m_detectorPtr ->GetOutputFilePrefix(), m_dataset, m_tempdir); // keep this pointer85 m_AllPixRun = new AllPixRun(m_detectorPtr, m_detectorPtr->GetOutputFilePrefix(), m_dataset, m_tempdir); // keep this pointer 86 86 m_AllPixRun->SetLCIOBridgeFileDsc(m_lciobridge_f, m_lciobridge_dut_f); 87 87
Note: See TracChangeset
for help on using the changeset viewer.