10/28/03 1NICADD Test Beam Simulator Jeremy I. McCormick Project Description Classes Geometry Hits Processing Command Interface Particle Generation Text Output Format Histograms Visualization Additional Information NICADD Test Beam Simulator
10/28/03 2NICADD Test Beam Simulator Test Beam Prototype: HCal, ECal, Tail Catcher Sensitive Material: Polystyrene, Silicon HCal & ECal layering similar to SDJan03 Single volume per cell geometry Edep by cell with track contributions Investigate E-flow & cluster separability Project Description and Goals
10/28/03 3NICADD Test Beam Simulator Geant4.5.2.p01 GPS g4phys SO (Mokka v01-04 Physics List) popt for CL Composite Materials def from PEGS4 (CERN) Software Libraries
10/28/03 4NICADD Test Beam Simulator G4 Utility Cellulizer BoxCellulizer MaterialMap User TBEventAction TBPrimaryGeneratorAction TBRunAction TBSteppingAction TBTracking Action TBVisManager Geometry GeometryMap PhysVolInfo TBDetectorConstruction TBCal TBTailCatcher TBECal TBHCal Hits and Tracks TBCellHit TBSensitiveDetector TBTrackInformation TBEdepMap Classes
10/28/03 5NICADD Test Beam Simulator Class Diagram Directed Assoc. Association Inheritance
10/28/03 6NICADD Test Beam Simulator GeometryMap ComputeWorldVectors() AddDaughters(vol, layno) PhysVolInfo GetLayNo() GetVolType() GetGlobId() GetHit() GetThreeVector() ComputeWorldVector() TBCellHit TBDetectorConstruction TBSensitiveDetector GeometryMap
10/28/03 7NICADD Test Beam Simulator ECalHCal TC ~2 m 1.5 m 1 m Detector Geometry
10/28/03 8NICADD Test Beam Simulator Same as HCal1.5 x * 10.5 cm = 63 cm Tail Catcher -max 1.5 x cm Total Materials X x Y dim. (m) No. Layers * thickness = total thickness Component Stainless Steel, Polystyrene 1 x 1 50 * 2.5 cm = 125 cm HCal W, G10, Si, Cu, Air 1 x 1 30 * 5 mm = 15 cm ECal Geometry Overview
10/28/03 9NICADD Test Beam Simulator 323, Total 90156Tail Catcher 300,00010,00030ECal 23, inner outer = HCal Total CellsCells / Layer LayersComponent 1.5 m Cells
10/28/03 10NICADD Test Beam Simulator Front Side (Angled) 1 m 1.25 m 30 cm HCal
10/28/03 11NICADD Test Beam Simulator FrontSide (partial) 1 m ~6 cm ECal
10/28/03 12NICADD Test Beam Simulator Front (Horizontal Layer) Front (Vertical Layer) Side Front (transparent) 1.5 m 63 cm Tail Catcher
10/28/03 13NICADD Test Beam Simulator Command-line Usage: -?: print usage -c: visualize cells -t: visualize tracks -h: visualize hits -o outfile_path : output filepath -m macro_file : macro -v : start with vis.mac All Options Example: testbeam -vhtc -o outfile_txt -m run.mac Command Interface
10/28/03 14NICADD Test Beam Simulator General Particle Source 1 to n MC particles fixed or random E, pos & mom theta, phi within min, max energy spectra /tbeam/doRun no_events for multiple events Particle Generation
10/28/03 15NICADD Test Beam Simulator 10 pi+ pos = (0, 0,1990) theta = 0-10 phi = all E = 2-10 GeV charged traj only GPS Conical Example
10/28/03 16NICADD Test Beam Simulator 10 pi+ pos = (rX,rY,1990) square = 15 cm / side E = GeV charged traj only GPS Square Example
10/28/03 17NICADD Test Beam Simulator TBSensitiveDetector::ProcessHits() PhysVolInfo *pinfo = PhysVolMap->GetPhysVolInfo(physVol); TBCellHit *theHit = CellHit(physVol); if (!theHit) { theHit = new TBCellHit(); if (pinfo) { theHit->SetPhysVolInfo(pinfo); mapHits.insert(HitMapPair(physVol,theHit)); PhysVolInfo::PhysVolType vtype = pinfo->GetVolType(); if (vtype == PhysVolInfo::CELL) { theHit->IncrEdep(edep); TBTrackInformation *tinfo = (TBTrackInformation*)(aStep->GetTrack()->GetUserInformation()); theHit->IncrTrkEdep(tinfo->GetTrackID(),edep); } else if (vtype == PhysVolInfo::ABSORBER) { theHit->IncrAbsEdep(edep); } Hits Processing
10/28/03 18NICADD Test Beam Simulator TBSensitiveDetector::EndOfEvent() { Copy Hits to HC } TBEventAction::EndOfEventAction() WriteEvent(evt) WriteHitsCollection(HC) aHit->Write(ostr) TrackEdep->Write(ostr) aHit->Draw() VisualizeTrajectories(evt) End of Event
10/28/03 19NICADD Test Beam Simulator EVENT evt_no ECAL no_hits layer_no … x y z cell_edep abs_edep track_no track_edep … HCAL … … TAILCATCHER … … Text Output Format
10/28/03 20NICADD Test Beam Simulator EVENT 0 HCAL ECAL TAILCATCHER Output Example
10/28/03 21NICADD Test Beam Simulator HCal Live Edep: 20 GeV Pi+
10/28/03 22NICADD Test Beam Simulator HCal Abs. Edep: 20 GeV Pi+
10/28/03 23NICADD Test Beam Simulator Edep in Inner Cells: 20 GeV Pi+
10/28/03 24NICADD Test Beam Simulator ECal Live Edep: 20 GeV Pi+
10/28/03 25NICADD Test Beam Simulator Cell Hits (all layers) Tracks Blue: positive Red: negative Green: neutral Trajectory Charge Color (front view of HCal & ECal hits) Visualization Scheme (Geant4 defaults)
10/28/03 26NICADD Test Beam Simulator pi+ pos = (0, 0, 1990) mom = (0, 0, -1) E = 20 GeV all traj & lit cells All Trajectories and Lit Cells: Side View
10/28/03 27NICADD Test Beam Simulator 100 pi+ small square charged traj and hits GPS Square: Side View
10/28/03 28NICADD Test Beam Simulator 20 pi+ theta = 0-10 phi = all mom = (0, 0, -1) E = 5-10 GeV charged traj & lit cells GPS Cone: Top View
10/28/03 29NICADD Test Beam Simulator 100 pi+ random circle charged traj GPS Cone: Front View
10/28/03 30NICADD Test Beam Simulator Hits and Tracks in ECal e- pos = (0, 0, 1990) mom = (0, 0, -1) E = 50 GeV all traj & hits
10/28/03 31NICADD Test Beam Simulator Homepage: Source Browser: CVS (bash): export export CVS_RSH=ssh cvs co tbeam password: lcd_2004 g4phys: popt: Additional Information