Changeset 9599 for trunk/MagicSoft/Mars/datacenter/db/mcdefs.php
- Timestamp:
- 06/28/10 17:47:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/mcdefs.php
r9498 r9599 1 1 <?php 2 3 $needs = array4 (5 "fCorsikaInputCreated" => "MCRunProcessStatus.fMCRunNumber",6 "fCorsikaFileAvail" => "MCRunProcessStatus.fCorsikaInputCreated",7 );8 9 2 10 3 $timelimits = array 11 4 ( 12 "fCorsikaInputCreated" => "1", 13 "fCorsikaFileAvail" => "60", 5 "Corsika" => "60", 6 "Ceres" => "1", 7 "SequenceFile" => "1", 8 "Callisto" => "1", 9 "Star" => "1", 14 10 ); 15 11 … … 18 14 ( 19 15 "fParticleTypeName" => CheckWhere("fParticleTypeKEY"), 16 "fRunTypeName" => CheckWhere("fRunTypeKEY"), 20 17 "fAtmosphericModelName" => CheckWhere("fAtmosphericModelKEY"), 21 18 ); … … 24 21 ( 25 22 "fParticleTypeName" => CheckGroup("fParticleTypeKEY"), 23 "fRunTypeName" => CheckGroup("fRunTypeKEY"), 26 24 "fAtmosphericModelName" => CheckGroup("fAtmosphericModelKEY"), 27 25 ); … … 30 28 $checkstatusgroup = array 31 29 ( 32 "fCorsikaInputCreated" => CheckStatusGroup("fCorsikaInputCreatedStatus"), 33 "fCorsikaFileAvail" => CheckStatusGroup("fCorsikaFileAvailStatus"), 30 "Corsika" => CheckStatusGroup("Corsika"), 31 "Ceres" => CheckStatusGroup("Ceres"), 32 "SequenceFile" => CheckStatusGroup("SequenceFile"), 33 "Callisto" => CheckStatusGroup("Callisto"), 34 "Star" => CheckStatusGroup("Star"), 34 35 ); 35 36 … … 38 39 $alias = array 39 40 ( 40 // "fRunNumber" => "Run#", 41 "Run#" => "Run#", 42 "fNumEvents" => "#Evts", 43 "SUM(fNumEvents)" => "Evts", 44 "fParticleTypeName" => "Particle", 45 "fAtmosphericModelName" => "Atm.Model", 46 "fCorsikaInputCreated" => "Input", 47 "fCorsikaFileAvail" => "Corsika", 48 "fStartTime" => "Process", 49 "fFailedTime" => "Failed", 50 "fReturnCode" => "Ret<br>Code", 51 "fProgramId" => "Prgr<br>Id", 52 "fZenithDistanceMin" => "Zd<br>Min", 53 "fZenithDistanceMax" => "Zd<br>Max", 54 "fAzimuthMin" => "Az<br>Min", 55 "fAzimuthMax" => "Az<br>Max", 56 "Min(fZenithDistanceMin)" => "ZDMin", 57 "Max(fZenithDistanceMax)" => "ZDMax", 58 "fEnergyMin" => "EMin<br>[GeV]", 59 "fEnergyMax" => "EMax<br>[GeV]", 60 "fImpactMax" => "Impact<br>[cm]", 61 "fViewConeMax" => "View<br>cone<br>[deg]", 62 "fEnergySlope" => "Slope", 63 "fNumReUseShower" => "#ShowerReUse", 64 "fStartingAltitude" => "Altitude<br>[g/sqcm]", 65 "fMirrorDiameter" => "Mirror<br>diam.<br>[cm]", 41 "Run.File" => "Run.File", 42 "fNumEvents" => "#Evts", 43 "SUM(fNumEvents)" => "Evts", 44 "fParticleTypeName" => "Particle", 45 "fRunTypeName" => "RunType", 46 "fAtmosphericModelName" => "Atm.Model", 47 "fCorsikaInputCreated" => "Input", 48 "Corsika" => "Corsika", 49 "Ceres" => "Ceres", 50 "SequenceFile" => "SequenceFile", 51 "Callisto" => "Callisto", 52 "Star" => "Star", 53 "fStartTime" => "Process", 54 "fFailedTime" => "Failed", 55 "fReturnCode" => "Ret<br>Code", 56 "fProgramId" => "Prgr<br>Id", 57 "fZenithDistanceMin" => "Zd<br>Min", 58 "fZenithDistanceMax" => "Zd<br>Max", 59 "fAzimuthMin" => "Az<br>Min", 60 "fAzimuthMax" => "Az<br>Max", 61 "Min(fZenithDistanceMin)" => "ZDMin", 62 "Max(fZenithDistanceMax)" => "ZDMax", 63 "fEnergyMin" => "EMin<br>[GeV]", 64 "fEnergyMax" => "EMax<br>[GeV]", 65 "fImpactMax" => "Impact<br>[cm]", 66 "fViewConeMax" => "View<br>cone<br>[deg]", 67 "fEnergySlope" => "Slope", 68 "fStartingAltitude" => "Altitude<br>[g/sqcm]", 69 "fMirrorDiameter" => "Mirror<br>diam.<br>[cm]", 66 70 ); 67 71 … … 80 84 $alias["fViewConeMax"] => "1", 81 85 $alias["fEnergySlope"] => "1", 82 $alias["fNumReUseShower"] => "1",83 86 $alias["fStartingAltitude"] => "1", 84 87 $alias["fMirrorDiameter"] => "1", … … 92 95 $checks = array 93 96 ( 94 "fParticleTypeName" => $fromtable . ".fParticleTypeKEY", 95 "fAtmosphericModelName" => $fromtable . ".fAtmosphericModelKEY", 97 "fParticleTypeName" => "ParticleType.fParticleTypeKEY", 98 "fRunTypeName" => "RunType.fRunTypeKEY", 99 "fAtmosphericModelName" => "AtmosphericModel.fAtmosphericModelKEY", 96 100 ); 97 101 … … 117 121 "fProgramId" => "fProgramId", 118 122 "fParticleTypeName" => "ParticleType.fParticleTypeName", 123 "fRunTypeName" => "RunType.fRunTypeName", 119 124 "fAtmosphericModelName" => "AtmosphericModel.fAtmosphericModelName", 120 "fAzimuthMin" => $fromtable . ".fAzimuthMin", 121 "fAzimuthMax" => $fromtable . ".fAzimuthMax", 122 "fZenithDistanceMin" => $fromtable . ".fZenithDistanceMin", 123 "fZenithDistanceMax" => $fromtable . ".fZenithDistanceMax", 124 "fEnergyMin" => $fromtable . ".fEnergyMin", 125 "fEnergyMax" => $fromtable . ".fEnergyMax", 126 "fImpactMax" => $fromtable . ".fImpactMax", 127 "fViewConeMax" => $fromtable . ".fViewConeMax", 128 "fEnergySlope" => $fromtable . ".fEnergySlope", 129 "fNumReUseShower" => $fromtable . ".fNumReUseShower", 130 "fStartingAltitude" => $fromtable . ".fStartingAltitude", 131 "fMirrorDiameter" => $fromtable . ".fMirrorDiameter", 125 "fAzimuthMin" => "CorsikaInfo.fAzimuthMin", 126 "fAzimuthMax" => "CorsikaInfo.fAzimuthMax", 127 "fZenithDistanceMin" => "CorsikaInfo.fZenithDistanceMin", 128 "fZenithDistanceMax" => "CorsikaInfo.fZenithDistanceMax", 129 "fEnergyMin" => "CorsikaInfo.fEnergyMin", 130 "fEnergyMax" => "CorsikaInfo.fEnergyMax", 131 "fImpactMax" => "CorsikaInfo.fImpactMax", 132 "fViewConeMax" => "CorsikaInfo.fViewConeMax", 133 "fEnergySlope" => "CorsikaInfo.fEnergySlope", 134 "fStartingAltitude" => "CorsikaInfo.fStartingAltitude", 135 "fMirrorDiameter" => "CorsikaInfo.fMirrorDiameter", 132 136 "Min(fZenithDistanceMin)" => "'ZDMin'", 133 137 "Max(fZenithDistanceMax)" => "'ZDMax'", … … 137 141 if (!empty($tables[$val])) 138 142 $table=$tables[$val]; 139 if ($val==" Tel:Run/File")140 $table="' Tel:Run/File'";143 if ($val=="Run.File") 144 $table="'Run.File'"; 141 145 if ($val=="Tel:Sequ") 142 146 $table="CONCAT('M', Sequences.fTelescopeNumber, ':', LPAD(Sequences.fSequenceFirst, 8, '0'))"; … … 147 151 if ($val=="NumDS") 148 152 $table="'# Datasets'"; 153 if ($val=="# Files") 154 $table="'# Files'"; 149 155 if ($val=="NumDays") 150 156 $table="'# days'"; … … 160 166 ( 161 167 "fParticleTypeName" => " LEFT JOIN ParticleType USING(fParticleTypeKEY) ", 168 "fRunTypeName" => " LEFT JOIN RunType USING(fRunTypeKEY) ", 162 169 "fAtmosphericModelName" => " LEFT JOIN AtmosphericModel USING(fAtmosphericModelKEY) ", 170 "Corsika" => " LEFT JOIN CorsikaStatus USING(fRunNumber, fFileNumber) ", 171 "Ceres" => " LEFT JOIN CeresStatus USING(fRunNumber, fFileNumber, fCeresSetupKEY) ", 172 "SequenceFile" => " LEFT JOIN SequenceFileStatus USING(fSequenceNumber) ", 173 "Callisto" => " LEFT JOIN CallistoStatus USING(fSequenceNumber, fCeresSetupKEY) ", 174 "Star" => " LEFT JOIN StarStatus USING(fSequenceNumber, fCeresSetupKEY) ", 163 175 ); 164 176
Note:
See TracChangeset
for help on using the changeset viewer.