Search/Navigation:
Related:
SLAC/EPP/HPS Public
Jefferson Lab/Hall B/HPS Run Wiki
S30XL-LESA/LDMX
...
When multiple collections of the same type are valid for the current run, the most recently added one will be used by default.
New conditions classes should follow a basic template which provides information about its associated database tables and columns.
For example, here is the definition for the BeamEnergy condition.
Code Block | ||||
---|---|---|---|---|
| ||||
@Table(names = {"beam_energies"})
public final class BeamEnergy extends BaseConditionsObject {
public static final class BeamEnergyCollection extends BaseConditionsObjectCollection<BeamEnergy> {
}
@Field(names = {"beam_energy"})
public Double getBeamEnergy() {
return this.getFieldValue("beam_energy");
}
} |
The @Table annotation on the class maps the class to its possible database tables. Typically, this is a single value.
The @Field annotation is applied to a method which should be mapped to a column in the database. The method must be public.