Using ROOT geometry for FVTX reconstruction Zhengyun You Peking University Los Alamos National Lab Jan 22, 2007.

Slides:



Advertisements
Similar presentations
Calibration for different trigger sources (DT,CSC,RPC) S.Bolognesi for the Torino group (with a big help from M. Dalla Valle) DT Cosmic Analysis meeting.
Advertisements

Using subversion COMP 2400 Prof. Chris GauthierDickey.
LHCb Simulation Tutorial CERN, 21 st -22 nd February B 00 l e How to pass a detector geometry to.
SubVersioN – the new Central Service at DESY by Marian Gawron.
8/16/2015alicewebmaster1 Create contents with the new Content Management System (Drupal): Workflow for page editors.
Identifiers for Everyone J. Bogart Core Software Workshop April
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
May 29 - Jun 4 , 2005BESIII Annual Meeting , Beijing 1 The BESIII Detector Description With XML Jun 1, 2005 Zhengyun You , Yajun Mao (School of Physics,
SCRAM Software Configuration, Release And Management Background SCRAM has been developed to enable large, geographically dispersed and autonomous groups.
STAR C OMPUTING Maker and I/O Model in STAR Victor Perevoztchikov.
SVX Software Overview Sasha Lebedev VTX meeting 09/07/ SVX Software web page:
Introduction to Hall-D Software February 27, 2009 David Lawrence - JLab.
M. Brooks, LANL 1 Physics and Simulation Status and To-Dos Physics Section could probably use a top-down re-write. Most of the info is probably there but.
ALICE Offline week, CERN 21 February 2005 I. Hrivnacova 1 New geometry framework in MUON I.Hrivnacova IPN, Orsay ALICE Offline week, CERN 21 February 2005.
Simulation issue Y. Akiba. Main goals stated in LOI Measurement of charm and beauty using DCA in barrel –c  e + X –D  K , K , etc –b  e + X –B 
By Sky Rolnick UC Riverside HBD Software Status Update 5/13/09 1Sky Rolnick, UC Riverside.
BES Ⅲ Detector Description and Event Display Zhengyun YOU, Yajun Mao School of Physics, Peking University Jan.10th, 2006.
Chris Onions Getting started with CVS in ATLAS 11 Getting started with CVS in ATLAS Chris Onions (Tutorial based on that of Raúl Ramos Pollán CERN / IT.
Progress with migration to SVN Part3: How to work with g4svn and geant4tags tools. Geant4.
CVS – concurrent versions system Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
CSE 219 Computer Science III CVS
Unit Testing Maintaining Quality. How do you test? Testing to date…
RPC DQA but also Monitoring for the DCS group: status and prospective for Marcello Bindi RPC L1MU Barrel DQM - 08/05/2013.
24/06/03 ATLAS WeekAlexandre Solodkov1 Status of TileCal software.
Experience With CBM Muon Simulation Partha Pratim Bhaduri.
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
BesMUC Reconstruction Current Status You zhengyun, Mao yajun School of Physics, PKU
CVS – concurrent versions system AROC Guatemala July 19-23, 2010 Guatemala City, Guatemala.
BesVis An Visualization software for BESIII experiment Zhengyun YOU School of Physics, PKU
Jump to first page The new ROOT geometry package Andrei Gheata - ALICE Institute of Space Sciences, Bucharest.
STAR Event data storage and management in STAR V. Perevoztchikov Brookhaven National Laboratory,USA.
GDB Meeting - 10 June 2003 ATLAS Offline Software David R. Quarrie Lawrence Berkeley National Laboratory
Integrated Tracker (progress, status, plans) Y. Fisyak.
Louis Nicolas – LPHE-EPFL T-Alignment: Track Selection December 11, 2006 Track Selection for T-Alignment studies Louis Nicolas EPFL Monday Seminar December.
GLAST LAT Offline SoftwareCore review, Jan. 17, 2001 Review of the “Core” software: Introduction Environment: THB, Thomas, Ian, Heather Geometry: Joanne.
Linda R. Coney – 5 November 2009 Online Reconstruction Linda R. Coney 5 November 2009.
21 Sep 2009Paul Dauncey1 Status of Imperial tasks Paul Dauncey.
Use new detector description in Reconstruction You Zhengyun School of Physics, PKU
12 CVS Mauro Jaskelioff (originally by Gail Hopkins)
+ Hbd Software Update By Sky Rolnick 8/04/09 Hbd Group Meeting 1/9/2016.
Physics Analysis inside the Oracle DB Progress report 10 Octobre 2013.
Rawhits Status A short update on only pattgen “sector mode” Kohei Yorita University of Chicago March 13 th FTK Meeting.
Simulation Status for Year2 Running Charles F. Maguire Software Meeting May 8, 2001.
Page 1 of 18 Bjorn S. Nilsen, ALICE November 16 ITS Software meeting ITS Alignment Status Plus other things By Bjørn S. Nilsen The Ohio State University.
Level 1-2 Trigger Data Base development Current status and overview Myron Campbell, Alexei Varganov, Stephen Miller University of Michigan August 17, 2000.
LAV Simulation Emanuele Leonardi INFN Roma Photon Veto meeting 08/02/2011.
I. BelikovALICE Offline Week, CERN, 12 June ESD Classes and the Combined Reconstruction What is the ESD ? Two new classes AliESD and AliESDtrack.
27/02/04 ATLAS weekTileCal Athena tutorial, part 21 TileCal Athena tutorial Part 2: Reading GEANT hits from ZEBRA and POOL Reading HLT and testbeam ByteStream.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
Algebra Tiles How to sort, making the equation smaller and easier: 2x+1x+3 to 3x+3 How to make zero pairs, 1x+-1x=0, then take them away from the equation.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
Graphics Lab: MyPaint Dan Maselko 1. MyPaint Description  For this assignment you will be implementing a very simple paint program.  You should be able.
Source Control Repositories for Enabling Team Working Doncho Minkov Telerik Corporation
Analysis Model Zhengyun You University of California Irvine Mu2e Computing Review March 5-6, 2015 Mu2e-doc-5227.
AliRoot survey: Calibration P.Hristov 11/06/2013.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
4 Dec., 2001 Software Week Data flow in the LArG Reconstruction software chain Updated status for various reconstruction algorithm LAr Converters and miscellaneous.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
Simulation and reconstruction of CLAS12 Electromagnetic Calorimeter in GSIM12 S. Stepanyan (JLAB), N. Dashyan (YerPhI) CLAS12 Detector workshop, February.
MUC Reconstruction status and GDML Management You Zhengyun School of Physics, PKU
1 April 2, Software Packaging and Releasing Best Practices William Cohen NCSU CSC 591W April 2, 2008.
JUNO Offline Geometry Management
SNiPER在LHAASO实验中的应用: LodeStar
C.Cheshkov 15/09/2005 Weekly Offline Meeting
A C++ generic model for the GLAST Geometric Description
AliRoot status and PDC’04
Subversion.
Amandeep Jawa Worker Bee Software
MUC simulation and reconstruction
You zhengyun, Mao yajun School of Physics , PKU
Presentation transcript:

Using ROOT geometry for FVTX reconstruction Zhengyun You Peking University Los Alamos National Lab Jan 22, 2007

Outline Detector data flow ( pisa -> ROOT -> offline); Work plan and current status; Advantages; Summary;  Automatic detector construction;  Consistency in simulation and reconstruction;  Powerful support from ROOT;

2. A simple command “g2root” to convert it to root file; Detector description Using PISA detector geometry to construct geometry in offline automatically PISAGeom.dat Zebra (RZ) file Geom.root ROOT Object Persistency Offline 1. Turn on switch in configuration to export 3. Retrieve all detector info. No more construction;

ROOT initialization in offline Geom.root Offline (FvtxGeom) Set TGeoPhysicalNode to each GeomObject in Offline Arm Station Sector Plane Radius Column Strip

ROOT initialization in offline Geom.root FvtxRadius (SI Sensor) 1. Path name is the only TAG to identify an unique phy_node; 2. From phy_node, get everything you need…; proteced : TGeoPhysicalNode *_phy_node; *_phy_node = gGeoManager->MakePhyscialNode ( “HALL_1/SIEN_1/SICG_1/SI05_1/SIPB_06/SISI_2” )

Advantage 1 : detector construction Old mode set ( values ); ROOT mode set ( TGeoPhysicalNode * ); FvtxStation : set_z(); set_inner_radius(); set_outer_radius(); … FvtxSector : set_z(); set_deltaz(); set_inner_radius(); set_outer_radius(); set_phi_begin(); set_phi_end(); … FvtxPlane : set_z(); set_inner_radius(); set_outer_radius(); … FvtxRadius : set_z(); set_inner_radius(); set_outer_radius(); set_phi_begin(); FvtxStation : set_phy_node(); FvtxSector : set_phy_node(); FvtxRadius : set_phy_node(); Hard construction work by hand, still lost much detector info; Construction done automatically by ROOT, keep all detector info;

Advantage 2 : detector consistency Old mode ROOT mode Almost impossible to exactly describe a geom object by yourself; All geom object are exactly consistent with those in simulation; Example : a sensor set_phi_begin() set_phi_end() set_outer_radius() set_inner_radius()

Advantage 2 : detector consistency ROOT mode : change detector geometry to whatever you want in PISA; PositionRotationMaterialAnything …… Shape Without changing any line of code in offline packages; Because … Path name is the only TAG to identify an unique phy_node, You don’t work with values, but work with pointers. So that... Very useful for detector concept design it becomes easy to compare performance of two different geometry design after reconstruction, Simply replace geom_v1.root with geom_v2.root, Without modifying code;

Advantage 3 : using ROOT functions 1.Hard work; 2.Bugs, not enough test; 3.Desperate when complicate; strange shape, many levels of coordinate transform, composite materials, … Writing your own functionsUsing ROOT functions 1.Easy work (1 line of code in most cases) 2.Trustworthy (tested in many programs) 3.Resolve complicate problems; a standard geometry system, supporting many kinds of shapes, supporting any level of coordinate transform, a standard material description system; …

3.1 Coordinate transformation Using local coordinate makes work easier; “HALL_1/SIEN_1/SICG_1/SI05_1/SIPB_06/SISI_2” 5 times transformation looks difficult; But how easy in ROOT… phy_node -> GetHMatrix( -1 * phy_node->GetLevel() ) -> LocalToGlobal( point ); Vice verse, …… -> GlobalToLocal( point ); Digitization

3.2 Shape contains a point We can only judge with simple shapes; FvtxSector : set_z(); set_deltaz(); set_inner_radius(); set_outer_radius(); set_phi_begin(); set_phi_end(); FvtxSector : contains (point) ROOT support > 20 basic shapes; phy_node -> GetShape() -> Contains (point) More boolean shapes;

3.3 Get material info phy_node -> InspectMaterial();

3.4 Checkng overlaps Check overlaps and extrusions between nodes by setting limit;

float Stereo angle= " "

double Stereo angle= " "

Work plan Step 1 : Modify geometry package FvtxGeom only; Keep all current functions and data initialization mode for each class; Add ROOT initialization mode and add get_...() functions in ROOT mode; All current macros still run with old mode; To switch to ROOT initialization and getting info mode, simply add FVTXGEOM::set_root_initialized(); FvtxRadius : set_z(); get_z(); set_inner_radius(); get…(); set_outer_radius(); get…(); set_phi_begin(); … FvtxRadius : contains( point ); { … } FvtxRadius : contains( point ); { _phy_node -> GetShape() -> Contains( point); } If _root_initialized … FvtxRadius : get_z(); { transform local center to global coordinate and get z_global; }

Test FVTXGEOM::set_root_initialized(); Test 1 : Print all get_ info to compare directly… They are close but different. Test 2 : Use reconstructed track eval ntuples to compare… Match MuReco tracks and FvtxReco tracks. Test with 30k mu tracks in W events with old mode, 57% no matching svx tracsk; Reason 1 : 25% muon’s parents are neutral in fvtx and not hits. 2 : geometry inconsistency makes hits lost; (offline geometry not up-to-date) Switch to ROOT initialized, 20% no match, due to neutral parent; check nhitsf and nPisaHit, Correct detector response hits ratio > 99%;

Work plan Step 1 : finished, code committed into cvs, but more test is necessary. Step 2 : Use coordinate transformation and contains to do most work in fvtxoo and fvtx_subsysreco; Use set_() and get_() values as little as possible; If possible, and after enough test (several months), switch to ROOT mode;

Summary Use PISA geometry for offline reconstruction realized in first step; Always keep geometry consistency in simu and reco; Easy to compare performance of simu. and reco. between two geometry designs; Decease work of writing and maintaining offline code; Use ROOT functions to do difficult work in an easy way; Reconstruction could focus on algorithm but not geometry;

Tips on using ROOT mode to see how to get the geom_1.root, Rename it to fvtxgeom.root and put it in your working directory. 2. Check out fvtxgeom package, make, (maybe fvtxoo, fvtx_subsysreco should be rebuild) Copy fvtxgeom.dat to your working directory. (PISA only construct to SI sensor, (FvtxRadius), Column and Strips still need fvtxgeom.dat) 3. Add FVTXGEOM::set_root_initialized(); to your current macros (Fun4Muons_Pisa.C Fun4Muons_RecoDST_sim.C) Or you can get them from /direct/phenix+data12/youzy/fvtxtest/wrk 4. If FVTXGEOM::set_root_initialized(); is not added, everything keeps the same as before so that you can compare between the two modes; 5. A macro root_geom_test.C in fvtxgeom package could print values for comparison; (// FVTXGEOM::set_root_initialized(); to switch)