4 added files
GeomConverter/sandbox
diff -N IHit.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ IHit.java 24 Jul 2007 23:43:05 -0000 1.1
@@ -0,0 +1,9 @@
+
+import org.lcsim.detector.identifier.IIdentifiable;
+
+public interface IHit
+extends IIdentifiable, IDetectorElementMixin
+{
+ public Hep3Vector getPosition();
+ public double getMeasurement();
+}
GeomConverter/sandbox
diff -N IMCHit.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ IMCHit.java 24 Jul 2007 23:43:05 -0000 1.1
@@ -0,0 +1,5 @@
+class IMCHit
+extends IHit
+{
+ public List<MCParticle> getMCParticles();
+}
GeomConverter/sandbox/detector
diff -N DetectorIdentifierHelper.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ DetectorIdentifierHelper.java 24 Jul 2007 23:43:05 -0000 1.1
@@ -0,0 +1,76 @@
+package org.lcsim.contrib.JeremyMcCormick;
+
+import org.lcsim.contrib.JeremyMcCormick.identifier.Identifier;
+
+/**
+ * Idea for a full detector identifier based on
+ * <a href="http://alxr.usatlas.bnl.gov/lxr/source/atlas/DetectorDescription/AtlasDetDescr/AtlasDetDescr/AtlasDetectorID.h">AtlasDetectorID</a>.
+ *
+ * @author Jeremy McCormick
+ */
+public interface DetectorIdentifierHelper
+extends IdentifierHelper
+{
+ int BARREL=0;
+ int ENDCAP_POSITIVE=1;
+ int ENDCAP_NEGATIVE=-1;
+
+ int UNKNOWN_SYSTEM=0;
+ int VERTEX=1;
+ int TRACKER=2;
+ int TPC=3;
+ int ECAL=4;
+ int HCAL=5;
+ int MUON=6;
+ int FORWARD=7;
+ int LUMI=8;
+
+ public int getSystemValue(Identifier i);
+ public int getSubSystemValue(Identifier i);
+ public int getBarrelValue(Identifier i);
+
+ public boolean isVertex(Identifier i);
+ public boolean isTracker(Identifier i);
+ public boolean isTPC(Identifier i);
+ public boolean isEcal(Identifier i);
+ public boolean isHcal(Identifier i);
+ public boolean isMuon(Identifier i);
+ public boolean isForwardCalorimeter(Identifier i);
+ public boolean isLuminosityMonitor(Identifier i);
+ public boolean isGammaCalorimeter(Identifier i);
+
+ public boolean isBarrel(Identifier i);
+ public boolean isEndcap(Identifier i);
+ public boolean isEndcapPositive(Identifier i);
+ public boolean isEndcapNegative(Identifier i);
+
+ public int getVertexValue();
+ public int getSiTrackerValue();
+ public int getTPCValue();
+ public int getEcalValue();
+ public int getHcalValue();
+ public int getMuonValue();
+ public int getForwardCalorimeterValue();
+ public int getLuminosityMonitorValue();
+ public int getGammCalorimeterValue();
+
+ public int getBarrelValue();
+ public int getEndcapValue();
+ public int getEndcapPositiveValue();
+ public int getEndcapNegativeValue();
+
+ public IIdentifier getVertexId();
+ public IIdentifier getSiTrackerId();
+ public IIdentifier getTPCId();
+ public IIdentifier getEcalId();
+ public IIdentifier getHcalId();
+ public IIdentifier getMuonId();
+ public IIdentifier getForwardCalorimeterId();
+ public IIdentifier getLuminosityMuonitorId();
+ public IIdentifier getGammaCalorimeterId();
+
+ public IIdentifier getBarrelId();
+ public IIdentifier getEndcapId();
+ public IIdentifier getEndcapPositiveId();
+ public IIdentifier getEndcapNegativeId();
+}
\ No newline at end of file
GeomConverter/sandbox/detector
diff -N IDetectorIdentifier.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ IDetectorIdentifier.java 24 Jul 2007 23:43:05 -0000 1.1
@@ -0,0 +1,114 @@
+public ISubdetectorIdentifier
+extends IIdentifier
+{
+ // Barrel or endcap -1, 0 , or 1.
+ int BARREL=0;
+ int ENDCAP_POSITIVE=1;
+ int ENDCAP_NEGATIVE=-1;
+
+ // Unknown subdetector type.
+ int UNKNOWN=0;
+
+ // Trackers between 1 and 3.
+ int VERTEX=1;
+ int TRACKER=2;
+ int TPC=3;
+
+ // Calorimeters between 4 and 8.
+ int ECAL=4;
+ int HCAL=5;
+ int MUON=6;
+ int FORWARD=7;
+ int LUMI=8;
+
+ // Barrel-endcap flag.
+ //public int getBarrelFlag();
+
+ // Generic barrel / endcap check.
+ public boolean isBarrel();
+ public boolean isEndcap();
+ public boolean isEndcapPositive();
+ public boolean isEndcapNegative();
+
+ // Get the system number identifying the sub-system.
+ //public int getSystemNumber();
+
+ // Is this a generic tracking detector?
+ public boolean isTracker();
+
+ // Barrel / endcap with generic tracker.
+ public boolean isTrackerBarrel();
+ public boolean isTrackerEndcap();
+ public boolean isTrackerEndcapPositive();
+ public boolean isTrackerEndcapNegative();
+
+ // Vertex detector with barrel / endcap.
+ public boolean isVertex();
+ public boolean isVertexBarrel();
+ public boolean isVertexEndcap();
+ public boolean isVertexEndcapPositive();
+ public boolean isVertexEndcapNegative();
+
+ // SiTracker with barrel / endcap.
+ public boolean isSiTracker();
+ public boolean isSiTrackerBarrel();
+ public boolean isSiTrackerEndcap();
+ public boolean isSiTrackerEndcapPositive();
+ public boolean isSiTrackerEndcapNegative();
+
+ // TPC with barrel.
+ public boolean isTPC();
+ public boolean isTPCBarrel();
+
+ // Generic calorimeter with barrel / endcap.
+ public boolean isCalorimeter();
+ public boolean isCalorimeterBarrel();
+ public boolean isCalorimeterEndcap();
+ public boolean isCalorimeterEndcapPositive();
+ public boolean isCalorimeterEndcapNegative();
+
+ // Ecal with barrel / endcap.
+ public boolean isEcal();
+ public boolean isEcalBarrel();
+ public boolean isEcalEndcap();
+ public boolean isEcalEndcapPositive();
+ public boolean isEcalEndcapNegative();
+
+ // Hcal with barrel / endcap.
+ public boolean isHcal();
+ public boolean isHcalBarrel();
+ public boolean isHcalEndcap();
+ public boolean isHcalEndcapPositive();
+ public boolean isHcalEndcapNegative();
+
+ // Muon with barrel / endcap.
+ public boolean isMuon();
+ public boolean isMuonBarrel();
+ public boolean isMuonEndcap();
+ public boolean isMuonEndcapPositive();
+ public boolean isMuonEndcapNegative();
+
+ // Forward with endcap.
+ public boolean isForward();
+ public boolean isForwardEndcap();
+ public boolean isForwardEndcapPositive();
+ public boolean isForwardEndcapNegative();
+
+ // Lumi with endcap.
+ public boolean isLumi();
+ public boolean isLumiEndcap();
+ public boolean isLumiEndcapPositive();
+ public boolean isLumiEndcapNegative();
+
+ // barrel / endcap id
+ public IIdentifier getBarrelIdentifier();
+ public IIdentifier getEndcapPositiveIdentifier();
+ public IIdentifier getEndcapNegativeIdentifier();
+
+ // TODO: ids for all of above .. or put into SubdetectorIdentifierFactory
+
+ // SiTracker id
+ public IIdentifier getSiTrackerBarrelIdentifier();
+ public IIdentifier getSiTrackerEndcapPositiveIdentifier();
+ public IIdentifier getSiTrackerEndcapNegativeIdentifier();
+}
CVSspam 0.2.8