Index: /trunk/Mars/datacenter/db/mcdefs.php
===================================================================
--- /trunk/Mars/datacenter/db/mcdefs.php	(revision 9895)
+++ /trunk/Mars/datacenter/db/mcdefs.php	(revision 9896)
@@ -16,4 +16,5 @@
      "fRunTypeName"                      => CheckWhere("fRunTypeKEY"),
      "fAtmosphericModelName"             => CheckWhere("fAtmosphericModelKEY"),
+     "fCeresSetupName"                   => CheckWhere("fCeresSetupKEY"),
     );
 
@@ -23,4 +24,5 @@
      "fRunTypeName"                      => CheckGroup("fRunTypeKEY"),
      "fAtmosphericModelName"             => CheckGroup("fAtmosphericModelKEY"),
+     "fCeresSetupName"                   => CheckGroup("fCeresSetupKEY"),
     );
 
@@ -46,4 +48,5 @@
      "fRunTypeName"             => "RunType",
      "fAtmosphericModelName"    => "Atm.Model",
+     "fCeresSetupName"          => "CeresSetup",
      "fCorsikaInputCreated"     => "Input",
      "Corsika"                  => "Corsika",
@@ -95,4 +98,5 @@
          "fRunTypeName"              => "RunType.fRunTypeKEY",
          "fAtmosphericModelName"     => "AtmosphericModel.fAtmosphericModelKEY",
+         "fCeresSetupName"           => "CeresSetup.fCeresSetupKEY",
         );
 
@@ -116,4 +120,5 @@
          "fRunTypeName"                      => "RunType.fRunTypeName",
          "fAtmosphericModelName"             => "AtmosphericModel.fAtmosphericModelName",
+         "fCeresSetupName"                   => "CeresSetup.fCeresSetupName",
          "fAzimuthMin"                       => "CorsikaInfo.fAzimuthMin",
          "fAzimuthMax"                       => "CorsikaInfo.fAzimuthMax",
@@ -161,7 +166,9 @@
          "fRunTypeKEY"                => " LEFT JOIN RunType              USING(fRunTypeKEY) ",
          "fAtmosphericModelKEY"       => " LEFT JOIN AtmosphericModel     USING(fAtmosphericModelKEY) ",
+         "fCeresSetupKEY"             => " LEFT JOIN CeresSetup           USING(fCeresSetupKEY) ",
          "fParticleTypeName"          => " LEFT JOIN ParticleType         USING(fParticleTypeKEY) ",
          "fRunTypeName"               => " LEFT JOIN RunType              USING(fRunTypeKEY) ",
          "fAtmosphericModelName"      => " LEFT JOIN AtmosphericModel     USING(fAtmosphericModelKEY) ",
+         "fCeresSetupName"            => " LEFT JOIN CeresSetup           USING(fCeresSetupKEY) ",
          "CorsikaStatus"              => " LEFT JOIN CorsikaStatus        USING(fRunNumber, fFileNumber) ",
          "CeresStatus"                => " LEFT JOIN CeresStatus          USING(fRunNumber, fFileNumber, fCeresSetupKEY) ",
Index: /trunk/Mars/datacenter/db/menu.php
===================================================================
--- /trunk/Mars/datacenter/db/menu.php	(revision 9895)
+++ /trunk/Mars/datacenter/db/menu.php	(revision 9896)
@@ -38,4 +38,6 @@
     printf("  </td><td>\n");
     PrintPullDown($host, $user, $pw, $db, "AtmosphericModel",     "fAtmosphericModelName",     "fAtmosphericModelKEY", "Atm. model");
+    printf("  </td><td>\n");
+    PrintPullDown($host, $user, $pw, $db, "CeresSetup",     "fCeresSetupName",     "fCeresSetupKEY", "Ceres setup");
     printf("  </td>\n");
 
@@ -1672,4 +1674,7 @@
         $_GET["fAtmosphericModelName"]="Off";
 
+    if (empty($_GET["fCeresSetupName"]))
+        $_GET["fCeresSetupName"]=$first?"On":"";
+
     if (empty($_GET["fNumEvents"]))
         $_GET["fNumEvents"]=$first?"On":"";
