LISTSERV mailing list manager LISTSERV 16.5

Help for LCDET-SVN Archives


LCDET-SVN Archives

LCDET-SVN Archives


LCDET-SVN@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCDET-SVN Home

LCDET-SVN Home

LCDET-SVN  December 2014

LCDET-SVN December 2014

Subject:

r3463 - in /projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event: HasMetaData.java HasPosition.java Hit.java

From:

[log in to unmask]

Reply-To:

Notification of commits to the lcdet svn repository <[log in to unmask]>

Date:

Wed, 17 Dec 2014 11:37:57 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (115 lines)

Author: [log in to unmask]
Date: Wed Dec 17 03:37:53 2014
New Revision: 3463

Log:
Move unnecessary mixin API to Hit interface.

Removed:
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/HasMetaData.java
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/HasPosition.java
Modified:
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/Hit.java

Modified: projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/Hit.java
 =============================================================================
--- projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/Hit.java	(original)
+++ projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/Hit.java	Wed Dec 17 03:37:53 2014
@@ -3,19 +3,82 @@
 import org.lcsim.detector.DetectorIdentifierHelper;
 import org.lcsim.detector.HasDetectorElement;
 import org.lcsim.detector.identifier.Identifiable;
+import org.lcsim.event.EventHeader.LCMetaData;
 import org.lcsim.geometry.subdetector.BarrelEndcapFlag;
+import org.lcsim.geometry.IDDecoder;
+import org.lcsim.geometry.Subdetector;
+import hep.physics.vec.Hep3Vector;
 
-public interface Hit extends HasMetaData, HasDetectorElement, HasPosition, Identifiable {
+/**
+ * This is a common API for hit objects in events such
+ * as CalorimeterHit, etc.
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public interface Hit extends HasDetectorElement, Identifiable {
+
+    /**
+     * Get the position vector of the hit.
+     * @return The position of the hit as a vector.
+     */
+    Hep3Vector getPositionVec();
+
+    /**
+     * Get the position of the hit as a double array of length 3.
+     * @return The position of the hit.
+     */
+    double[] getPosition();
 	
+    /**
+     * Convenience method to get the Subdetector's IdentifierHelper.
+     * @return The subdetector identifier helper.
+     */
     DetectorIdentifierHelper getDetectorIdentifierHelper();
+    
+    /**
+     * Get the collection meta data reference for this object.
+     * @return The collection meta data.
+     */
+    LCMetaData getMetaData();
+    
+    /**
+     * Set the collection meta data of this object.
+     */
+    void setMetaData(LCMetaData meta);
+   
+    /**
+     * Get the subdetector of this hit.
+     * @return The subdetector of the hit.
+     */
+    Subdetector getSubdetector();
+    
+    /**
+     * Get the IDDecoder for the hit.
+     * @return The IDDecoder for the hit.
+     */
+    IDDecoder getIDDecoder();
+    
+    /**
+     * Get the subdetector's system ID.
+     * @return The subdetector's system ID.
+     */
+    int getSystemId();
 	
-    // FIXME: I don't think none of this below belongs here!
-    
-	int getSystemId();
+    /**
+     * Get the barrel flag (collider-detector specific).
+     * @return The barrel flag.
+     */
+    BarrelEndcapFlag getBarrelEndcapFlag();
 	
-	BarrelEndcapFlag getBarrelEndcapFlag();
+    /**
+     * Get the layer number of the hit.
+     * @return The layer number.
+     */
+    int getLayerNumber();
 	
-	int getLayerNumber();
-	
-	int getIdentifierFieldValue(String field);
+    /**
+     * Get a field value using the helper.
+     * @param field The name of the field.
+     * @return A field value.
+     */
+    int getIdentifierFieldValue(String field);
 }

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use