Changes from tdaq-01-08-01 to tdaq-01-08-04
New plugin API
- Removed entries:
- setBranch (use 'init' instead)
- bookHisto (use 'startOfRun')
- deleteHisto (use 'end')
- Typedef for gnam histogram lists:
- typedef std::vector<class GnamHisto *> gnamList_t;
- New prototype for startOfRun (get runType, return histolist):
- extern "C" const gnamList_t * startOfRun (int runNo, std::string runType);
New GnamHisto features
- Added ROOT-equivalent methods for handling bin errors:
- void SetBinError(Int_t bin, Double_t error)
- void SetBinError(Int_t binx, Int_t biny, Double_t error)
- void SetBinError(Int_t binx, Int_t biny, Int_t binz, Double_t error)
- New API for histories (buffer flushing internally handled):
- Removed:
- void SetHistory (UInt_t new_hist_size)
- void UnsetHistory (void)
- void FillFromHistory (UInt_t n_entries)
- void FillAsHistory (void) throw (daq::gnamlib::DimNumMismatch)
- Added:
- bool IsHistory (void) const
// query status
- bool AsHistory (void) const
// query status
- bool FromHistory (void) const
// query status
- void IsHistory (bool on_off)
// define behaviour (AsHistory)
- void AsHistory (bool on_off)
// define behaviour (AsHistory)
- void FromHistory (bool on_off, UInt_t hist_size=0)
// define behaviour (FromHistory)
- New flags for GnamHisto constructors:
-
- GnamHisto::NOTPUBLISHED
// disable publishing
- GnamHisto::NOTFILLED
// disable filling
- GnamHisto::NOTDUMPED
// disable dumping
- GnamHisto::NOTREFRESHED
// disable refreshing at EoR
- GnamHisto::ASHISTORY
// set AsHistory
- GnamHisto::FROMHISTORY
// set FromHistory
- New function for behaviour at EOR:
- bool IsRefreshedAtEor (void) const
// query status
- void IsRefreshedAtEor (bool on_off)
// define behaviour
- Added optional parameter (to all constructors) for 'FromHistory' buffer
size, e.g.:
- GnamHisto (const char *name, const char *title,
Int_t nbinsx, Axis_t xlow, Axis_t xup,
int hflags=SHORTBIN,
const GNAM_ann_t &ann = oh::util::EmptyAnnotation,
Int_t from_history_size = 0)
- Example:
- GnamHisto( hname, htitle, nbinx, xlo, xup, GnamHisto::SHORTBIN | GnamHisto::FROMHISTORY | GnamHisto::NOTDUMPED, oh::util::EmptyAnnotation, fromhistorysz);
Improved Start of Run transition
- In order to prevent possible clashes with the new OH cleaning application (which will run at the SOR as well), histogram publishing on the OH and dumping on ROOT file have been disabled. As a side effect, the SOR transition is faster.
New file sampler
- New features:
- new name: fileSampler
- much faster startup
- castor access (N.B.: rfio ==> need libshift.so)
- file or file list (-f list:file_list_name) handling
- can cycle forever (-w 1)
- can stop after a given number of events (0=end of file)
- can run signal driven (SIGUSR1)
- Example, to define a signal driven forever cycling:
- fileSampler -p part_localhost -k K -v V -f list:my_list -w 1 -r 0