MUSIC
unknown
Analysis for the MUSIC active-target ionization chamber
Toggle main menu visibility
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
13
namespace
Constants
{
14
30
inline
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
Constants.hpp
The dataset configuration, and how it is layered.
Constants
Definition
ChannelTiming.hpp:13
Constants::LookupTTFOffsetPs
Long64_t LookupTTFOffsetPs(Int_t board, Int_t channel)
Timing offset to apply to one channel's TTF timestamp.
Definition
ChannelTiming.hpp:30
Constants::cfg
const DatasetConfig & cfg
The active dataset's configuration, flat block.
tooling
include
ChannelTiming.hpp
Generated by
1.17.0