10/28/031 NICADD Test Beam Simulator J. McCormick Jeremy I. McCormick Project Description Geometry Hits Processing Command Interface Particle Generation Text Output Format Histograms Visualization Obtaining Test Beam NICADD Test Beam Simulator
10/28/031 NICADD Test Beam Simulator J. McCormick Project Description Test Beam Prototype Hadron & EM Calorimeters, Tail Catcher HCal & ECal layering similar to SDJan03 Polystyrene and Silicon sensitive regions one volume per cell geometries aggregate step hits by cell with track contributions
10/28/031 NICADD Test Beam Simulator J. McCormick Libraries Geant4.5.2.p01 GPS g4phys SO popt for CL Composite Materials def from PEGS4 (CERN)
10/28/031 NICADD Test Beam Simulator J. McCormick Classes 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
10/28/031 NICADD Test Beam Simulator J. McCormick Class Diagram: Associations
10/28/031 NICADD Test Beam Simulator J. McCormick GeometryMap ComputeWorldVectors() AddDaughters(vol, layno) PhysVolInfo GetLayNo() GetVolType() GetGlobId() GetHit() GetThreeVector() ComputeWorldVector() TBCellHit TBDetectorConstruction TBSensitiveDetector
10/28/031 NICADD Test Beam Simulator J. McCormick Detector Geometry ECalHCal TC ~2 m 1.5 m 1 m
10/28/031 NICADD Test Beam Simulator J. McCormick Geometry Overview 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
10/28/031 NICADD Test Beam Simulator J. McCormick Cells 323, Total 90156Tail Catcher 300,00010,00030ECal 23, inner outer = HCal Total CellsCells / Layer LayersComponent 1.5 m
10/28/031 NICADD Test Beam Simulator J. McCormick HCal Front Side (Angled) 1 m 1.25 m 30 cm
10/28/031 NICADD Test Beam Simulator J. McCormick ECal FrontSide 1 m ~6 cm
10/28/031 NICADD Test Beam Simulator J. McCormick Tail Catcher Front (Hor) Front (Vert) Side Front (transparent) 1.5 m 63 cm
10/28/031 NICADD Test Beam Simulator J. McCormick Command Interface Command-line Usage: -?print usage -cvisualize cells -tvisualize tracks -hvisualize 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 /tbeam/doRun no_events
10/28/031 NICADD Test Beam Simulator J. McCormick Particle Generation General Particle Source 1 to n MC particles random starting regions random theta / phi within max / min random energy /tbeam/doRun no_events for multiple events
10/28/031 NICADD Test Beam Simulator J. McCormick GPS Conical Example Pi+ pos = (0, 0,1990) theta = 0-10 phi = all e = 2-10 GeV charged traj only
10/28/031 NICADD Test Beam Simulator J. McCormick GPS Square Example Pi+ pos = (rX,rY,1990) square = 15 cm / side e = GeV charged traj only
10/28/031 NICADD Test Beam Simulator J. McCormick Hits Processing 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); }
10/28/031 NICADD Test Beam Simulator J. McCormick End of Event TBSensitiveDetector::EndOfEvent() { Copy Hits to HC } TBEventAction::EndOfEventAction() WriteEvent(evt) WriteHitsCollection(HC) aHit->Write(ostr) TrackEdep->Write(ostr) aHit->Draw() VisualizeTrajectories(evt)
10/28/031 NICADD Test Beam Simulator J. McCormick Text Output Format EVENT evt_no ECAL no_hits layer_no … x y z cell_edep abs_edep track_no track_edep … HCAL … … TAILCATCHER … …
10/28/031 NICADD Test Beam Simulator J. McCormick Output Example EVENT 0 HCAL ECAL TAILCATCHER
10/28/031 NICADD Test Beam Simulator J. McCormick ***Hist 1
10/28/031 NICADD Test Beam Simulator J. McCormick ***Hist 2
10/28/031 NICADD Test Beam Simulator J. McCormick Visualization Scheme Cell Hits (all layers) Tracks Blue: positive Red: negative Green: neutral Trajectory Charge Color (front view of HCal & ECal hits)
10/28/031 NICADD Test Beam Simulator J. McCormick All Trajectories and Lit Cells: Side View pi+ pos = (0, 0, 1990) mom = (0, 0, -1) E = 20 GeV all traj & lit cells
10/28/031 NICADD Test Beam Simulator J. McCormick GPS Square: Side View
10/28/031 NICADD Test Beam Simulator J. McCormick GPS Cone: Top View 20 pi+ theta = 0-10 phi = all mom = (0, 0, -1) E = 5-10 GeV charged traj & lit cells
10/28/031 NICADD Test Beam Simulator J. McCormick GPS Cone: Front View 100 pi+ charged traj
10/28/031 NICADD Test Beam Simulator J. McCormick Hits and Tracks in ECal e- pos = (0, 0, 1990) mom = (0, 0, -1) E = 50 GeV all traj & hits
10/28/031 NICADD Test Beam Simulator J. McCormick Additional Information ● Homepage: Source Browser: CVS_RSH=ssh Password = lcd_2004 g4phys: popt: