Page History
...
Code Block |
---|
double* timeITof; // array: sample interval
double* voltageITof; // array: readout values
int channel = 0;
int fail = getAcqValue( AmoITof, channel, timeITof, voltageITof);
if ( fail != 0 )
{
printf( "event(): getAcqValue() failed, code = %d\n", fail );
}
else
{
for (i=0;i<numSamplesITof;i=i+1)
{
double t = timeITof[i];
double v = voltageITof[i];
profileITof->Fill(t,v);
}
}
|
The resulting histogram can be drawn in a root session and would look something like this:
Beamline data (Bld)
To read out energy, charge and position of the beam from the beamline data, use getEBeam(). The function returns 0 if data is available and assignes values to its arguments from the current event. Call from within event()
.
...
Overview
Content Tools