MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
ChannelTiming.hpp
Go to the documentation of this file.
1#ifndef CHANNEL_TIMING_HPP
2#define CHANNEL_TIMING_HPP
3
4#include "Constants.hpp"
5#include <Rtypes.h>
6#include <map>
7#include <utility>
8
13namespace Constants {
14
30inline Long64_t LookupTTFOffsetPs(Int_t board, Int_t channel) {
31 std::map<std::pair<Int_t, Int_t>, Long64_t>::const_iterator it =
32 cfg.ttfOffsetPs.find(std::pair<Int_t, Int_t>(board, channel));
33 return (it == cfg.ttfOffsetPs.end()) ? 0 : it->second;
34}
35
36} // namespace Constants
37
38#endif
The dataset configuration, and how it is layered.
Long64_t LookupTTFOffsetPs(Int_t board, Int_t channel)
Timing offset to apply to one channel's TTF timestamp.
const DatasetConfig & cfg
The active dataset's configuration, flat block.