FembMappedAdcModifier.h
Go to the documentation of this file.
1 // FembMappedAdcModifier.h
2 
3 // David Adams
4 // November, 2017
5 //
6 // TpcDataTool that calls another modifier based on FEMB ID.
7 // The name of the called modifier is ToolBaseFFF where FFF is the FembID.
8 // If the FEMB ID is not set, the tool ToolBaseDefault is used.
9 //
10 // If the string DirName is not empty, then tool definition is taken from
11 // the fcl file DirName/ToolBaseFFF.fcl found on the usual fcl path.
12 // Otherwise, the tool definition must already exist.
13 //
14 // Parameters:
15 // LogLevel - 0=silent, 1=init, 2=errors each event, 3=call each event
16 // ToolBase - Prefix of the tool name.
17 // DirName - Location for the tool fcl file.
18 //
19 // Output (appended to that from the called tool):
20 // fembID - the FEMB ID
21 
22 #ifndef FembMappedAdcModifier_H
23 #define FembMappedAdcModifier_H
24 
26 #include "fhiclcpp/ParameterSet.h"
28 
30 : public TpcDataTool {
31 
32 public:
33 
35 
36  DataMap view(const AdcChannelData& acd) const override;
37 
38  DataMap update(AdcChannelData& acd) const override;
39 
40 private:
41 
42  using Name = std::string;
43 
44  // Parameters.
48 
49 };
50 
51 
52 #endif
DataMap view(const AdcChannelData &acd) const override
std::string string
Definition: nybbler.cc:12
FembMappedAdcModifier(fhicl::ParameterSet const &ps)
static constexpr double ps
Definition: Units.h:99
DataMap update(AdcChannelData &acd) const override