Detector Drawing in Besvis

Slides:



Advertisements
Similar presentations
Unit 4 Finding your way Integrated skills New words and phrases: past prep. 在另一边,到另一侧 treasure n. 宝藏 turning n. 转弯处 traffic n. 交通,来往车辆 traffic lights.
Advertisements

Chapter 2 Combinatorial Analysis 主講人 : 虞台文. Content Basic Procedure for Probability Calculation Counting – Ordered Samples with Replacement – Ordered.
期末考试作文讲解 % 的同学赞成住校 30% 的学生反对住校 1. 有利于培养我们良好的学 习和生活习惯; 1. 学生住校不利于了解外 界信息; 2 可与老师及同学充分交流有 利于共同进步。 2. 和家人交流少。 在寄宿制高中,大部分学生住校,但仍有一部分学生选 择走读。你校就就此开展了一次问卷调查,主题为.
智慧老伯的一席話 原稿 : 溫 Sir 中譯 : 老柳 A man of 92 years, short, very well- presented, who takes great care in his appearance, is moving into an old people’s.
大胆作为 勇于承担  建立安全监管新常态 市安全监管局 林凯军.
小一家長注意事項 九龍塘天主教華德學校.
Directions: Print slides 2-7 single sided in color.
Related Provisions in National Standards 国家标准有关规定
道路交通管理 授课教师:于远亮.
CATIA V5 Training CATIA V5 装配设计 Assembly Design.
-Artificial Neural Network- Hopfield Neural Network(HNN) 朝陽科技大學 資訊管理系 李麗華 教授.
摘要的开头: The passage mainly tells us sth.
How can we be a member of the Society? You should finish the following tasks if you want to be a member of the Birdwatching Society.
沐阳老年社区.
Minimum Spanning Trees
Homework 4 an innovative design process model TEAM 7
! 温故知新 上下文无关文法 最左推导 最右推导 自上而下 自下而上 句柄 归约 移进-归约冲突 移进-归约分析 递归下降预测分析
模式识别 Pattern Recognition
樹狀結構 陳怡芬 2018/11/16 北一女中資訊專題研究.
(Exec1) GIS 空间分析-使用ArcGIS (Exec1)
第五讲 数据的分组、合并与转换.
中国散裂中子源小角谱仪 的实验数据格式与处理算法 报告人:张晟恺 中国科学院高能物理研究所 SCE 年8月18日
第二章 共轴球面系统的物像关系 Chapter 2: Object-image relations of coaxial spheric system.
Decision Support System (靜宜資管楊子青)
第4章 网络互联与广域网 4.1 网络互联概述 4.2 网络互联设备 4.3 广域网 4.4 ISDN 4.5 DDN
Unit 4 My day Reading (2) It’s time for class.
XBRL未來發展趨勢 2009年12月 For information on applying this template onto existing presentations, refer to the notes on slide 3 of this presentation. The Input.
普通物理 General Physics 29 - Current-Produced Magnetic Field
The Wise Old Man 智慧老伯的一席話 原稿: 溫Sir 中譯 : 老柳 中譯潤稿:風刀雨箭
子博弈完美Nash均衡 我们知道,一个博弈可以有多于一个的Nash均衡。在某些情况下,我们可以按照“子博弈完美”的要求,把不符合这个要求的均衡去掉。 扩展型博弈G的一部分g叫做一个子博弈,如果g包含某个节点和它所有的后继点,并且一个G的信息集或者和g不相交,或者整个含于g。 一个Nash均衡称为子博弈完美的,如果它在每.
參加2006 SAE年會-與會心得報告 臺灣大學機械工程系所 黃元茂教授
重點 資料結構之選定會影響演算法 選擇對的資料結構讓您上天堂 程式.
校園網路架構介紹與資源利用 主講人:趙志宏 圖書資訊館網路通訊組.
Decision Support System (靜宜資管楊子青)
樹 2 Michael Tsai 2013/3/26.
Study for Specification of EPG EPG规范研究
句子成分的省略(1).
A high payload data hiding scheme based on modified AMBTC technique
Version Control System Based DSNs
指令篇 Draw 作圖 6-1 Lines(直線) Line by Centers(中心連線)
UNIT 3.
ATLAS Phase 1 sTGC 探测器 读出电子学
BORROWING SUBTRACTION WITHIN 20
3.5 Region Filling Region Filling is a process of “coloring in” a definite image area or region. 2019/4/19.
中国科学技术大学计算机系 陈香兰 2013Fall 第七讲 存储器管理 中国科学技术大学计算机系 陈香兰 2013Fall.
The Wise Old Man 智慧老伯的一席話 原稿: 溫Sir 中譯 : 老柳
Unit 7 Lesson 20 九中分校 刘秀芬.
Google Local Search API Research and Implementation
计算机问题求解 – 论题 算法方法 2016年11月28日.
A Data Mining Algorithm for Generalized Web Prefetching
手绘风 夏日火烈鸟.
Q & A.
MDC重建 袁野 张瑶 年粒子物理实验计算软件与技术研讨会威海.
中学英语教学中如何培养核心素养? ---基于学科关键问题的思考与实践
计算机问题求解 – 论题1-5 - 数据与数据结构 2018年10月16日.
冀教版 九年级 Lesson 20: Say It in Five.
Efficient Query Relaxation for Complex Relationship Search on Graph Data 李舒馨
TinyDB資料庫 靜宜大學資管系 楊子青.
唐常杰 四川大学计算机学院 计算机科学技术系
名词从句(2).
SLIQ:一种快速可伸缩分类器 Manish Mehta, Rakesh Agrawal, Jorma Rissanen IBM Almaden Research Center, 1996 报告人:郭新涛
5. Combinational Logic Analysis
2012 程式設計比賽 Openfind 天使帝國 v2.0 (蓋亞的紋章).
The Wise Old Man 智慧老伯的一席話 原稿: 溫Sir 中譯 : 老柳
Arguments to the main Function and Final Project
Example for CIC Report CIS-I.
Introduction to Computer Security and Cryptography
Principle and application of optical information technology
BESIII MDC 模拟与调试 袁野 年粒子物理实验计算软件与技术研讨会 威海.
Presentation transcript:

Detector Drawing in Besvis Long Peixun 2017.12.14

Outline Structure of geom.root Detector drawing About geom.root Analyzing geom.root Mdc, Tof, Emc, Muc and Beam Pipe Detector drawing 2 user-defined geometry classes Process of drawing detectors from geom.root Algorithm of deciding whether a point is in a polygon

About geom.root To use Besvis, we usually load the geometry file – geom.root. In order to analyze the code of drawing detectors, we should comprehend geometry structure first.

Analyzing Code

<NodeName>_<Index> Analyzing Result Including 92390 nodes. Tree-like structure, the root node named volBes. Naming rule of nodes <NodeName>_<Index> First layer of the tree volBes logicalMdc_0 … logicalTof_1 … logicalEMC_2 … logicalMuc_3 … volBeamPipe_4 volBeamPipe_4 node has no child.

logicalMdc_0 logicalMdc_0 logicalMdcStereoLayer0_0 … logicalMdcStereoLayer7_7 logicalMdcAxialLayer8_8 … logicalMdcAxialLayer19_19 logicalMdcStereoLayer20_20 … logicalMdcStereoLayer35_35 logicalMdcAxialLayer36_0_36 … logicalMdcAxialLayer42_1_49 logicalMdcSegment66_50 … logicalMdcSegment1_179 180 children, including 24 stereo layers, 25 axial layers and 130 segments. Segments are not displayed. Each layer has several replicas (wires). Layer-Replica, two-tier structure.

logicalTof_1 logicalTof_1 logicalEcTofEast_0 logicalBucketEc_0 logicalPVFEcEast_1 … logicalBucketEc_94 logicalPVFEcEast_95 logicalEcTofWest_1 … logicalBrTof_2 logicalBucketBr2_0 logicalBucketBr2_1 logicalPVFBr2_2 … logicalBucketBr1_525 logicalBucketBr1_526 logicalPVFBr1_527 Each Endcap has 48 buckets and 48 PVFs. Barrel has 176 PVFs and 352 buckets, which spread in 2 layers, i.e., each Barrel layer has 88 PVFs and 176 buckets. Buckets are not displayed. Each PVF contains a scin (scintillation), and the scin will be drawn. Part-Layer-Scin, three-tier structure.

logicalEMC_2 logicalEMC_2 logicalEndWorld_0 logicalEndPhi2_0 … logicalEndPhi0_15 logicalEndWorld_1 … logicalBSCWorld_2 gears,rings,bars logicalBSCPhi_189 … logicalBSCPhi_308 Each Endcap has 16 children, which represent 16 sectors of EC. Each sector has several casing child nodes. There is a function to compute theta, phi of each Endcap casing. Sector-Casing → Phi-Theta. Barrel has 120 phi child nodes. For each phi node, the casing child node whose name contains “logicalBSCCasing” (theta nodes) will be drawn. Other nodes are not displayed. Part-Phi-Theta, three-tier structure.

logicalMuc_3 lMucP*S*G* nodes represent gaps. logicalMuc_3 lMucP0S0G0_0 … lMucP2S3G7_135 lMucP0S0Ab0_136 … lMucP2S3Ab8_279 volumeSmallBlockGap0SB0_280 … volumeSmallBlockGap8SB1_423 lMucP*S*G* nodes represent gaps. P: part S: segment G: gap lMucP*S*Ab* nodes represent absorbers. Absorbers are not displayed, we just need their size information. Ab: absorber VolumeSmallBlockGap*SB* nodes are not displayed. SB: small block

logicalMuc_3 gaps and strips lMucP0S0G0−lMucP0S0G0Al−lMucP0S0G0SP lMucP0S0G0s000_0 … lMucP0S0G0s063_63 P: part S: segment G: gap s: strip Endcap has 8 gaps, and Barrel has 9 gaps. Each gap has several strips. Barrel gap: 48 strips; EC gap: 64 strips. A strip is perpendicular to its neighbor strip. Part-Segment-Gap-Strip, four-tier structure.

2 user-defined geometry classes BesPolygon2D Constructor parameters: points number, points’ coordinates array. The coordinate of input point is World Coordinate(3D), and it can be convert to Pixel Coordinate(2D) automatically. Including an algorithm of deciding whether a point is in this polygon. BesCircle2D Constructor parameters: inner radius, outer radius, center coordinate. Dividing circle into several sectors. The default dividing number is 40. Using a quadrilateral to approach each sector.

Process of drawing detectors Load detector geometry ROOT file. Parse geometry file, get all necessary nodes and fill them into several arrays. For each node in step 2, get out the geometry data of this node. And then, construct geometry shapes using ROOT geometry classes. Convert World Coordinates to Pixel Coordinates. Draw detectors onto the canvas on demand.

判断一点是否在多边形内的算法 BesPolygon2D类目前使用的算法如下: 该算法存在的问题 输入:待检测点坐标P(x,y) 首先找出多边形的中心C(各个顶点坐标取平均值); 对多边形的每条边,检测P与C是否在这条边的同一侧: 如果存在一条边,P与C不在这条边的同一侧,则P位于多边形外; 如果对所有边,P与C都在同一侧,则P位于多边形内. 该算法存在的问题 对凹多边形可能会得到错误的结果,因为凹多边形的中心可能在多边形外 部.

判断一点是否在多边形内的算法 射线法 由待检测点P向任意方向作射线,若射线与多边形的边的交点个数为奇数, 则P在多边形内;为偶数,P在多边形外. 若射线恰好经过多边形的某一个或某几个顶点,则任意选取射线的一侧, 对于射线经过的顶点的两条边,只计数该侧的边与射线的交点. P P

判断一点是否在多边形内的算法 弧长法 规定边的左侧为多边形内部的方向为多边形的正向. 以待检测点P为圆心作单位圆,将多边形的全部有向边向单位圆作径向投 影,计算其在单位圆上弧长的代数和: 代数和为0,P在多边形外部; 代数和为2π,P在多边形内部. A B C D E P P

Reference 孙家广,胡事民. 计算机图形学基础教程[M]. 第2版. 北京: 清华大学 出版社, 2009, 48~50.