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  January 2015

LCDET-SVN January 2015

Subject:

r3475 - /projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/AbstractClusterPropertyCalculator.java

From:

[log in to unmask]

Reply-To:

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

Date:

Wed, 7 Jan 2015 00:52:34 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (75 lines)

Author: [log in to unmask]
Date: Tue Jan  6 16:52:29 2015
New Revision: 3475

Log:
Add abstract implementation of ClusterPropertyCalculator.

Added:
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/AbstractClusterPropertyCalculator.java   (with props)

Added: projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/AbstractClusterPropertyCalculator.java
 =============================================================================
--- projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/AbstractClusterPropertyCalculator.java	(added)
+++ projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/AbstractClusterPropertyCalculator.java	Tue Jan  6 16:52:29 2015
@@ -0,0 +1,53 @@
+package org.lcsim.event.base;
+
+import java.util.List;
+
+import org.lcsim.event.CalorimeterHit;
+
+/**
+ * An abstract implementation of {@link ClusterPropertyCalculator}. 
+ * 
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public abstract class AbstractClusterPropertyCalculator implements ClusterPropertyCalculator {
+
+    protected double[] position;
+    protected double[] positionError;
+    protected double iphi;
+    protected double itheta;
+    protected double[] directionError;
+    protected double[] shapeParameters;
+    
+    @Override
+    public abstract void calculateProperties(List<CalorimeterHit> hits);
+
+    @Override
+    public double[] getPosition() {
+        return position;
+    }
+
+    @Override
+    public double[] getPositionError() {
+        return positionError;
+    }
+
+    @Override
+    public double getIPhi() {
+        return iphi;
+    }
+
+    @Override
+    public double getITheta() {
+        return itheta;
+    }
+
+    @Override
+    public double[] getDirectionError() {
+        return directionError;
+    }
+
+    @Override
+    public double[] getShapeParameters() {
+        return shapeParameters;
+    }
+}

########################################################################
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