CMS 3D CMS Logo

TotemDAQMapping.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Maciej Wróbel (wroblisko@gmail.com)
6 * Jan Kašpar (jan.kaspar@cern.ch)
7 *
8 ****************************************************************************/
9 
10 #ifndef CondFormats_PPSObjects_TotemDAQMapping
11 #define CondFormats_PPSObjects_TotemDAQMapping
12 
17 #include <map>
18 #include <cstdint>
19 
20 //----------------------------------------------------------------------------------------------------
21 
26 public:
29 
31  unsigned int hwID;
32 
33  friend std::ostream& operator<<(std::ostream& s, const TotemVFATInfo& fp);
34 
35  void print(std::ostream& os, std::string subSystemName) const;
36 
38 };
39 
40 //----------------------------------------------------------------------------------------------------
41 
46 public:
47  std::map<TotemFramePosition, TotemVFATInfo> VFATMapping;
48 
51  int plane;
52  int channel;
53 
54  TotemTimingPlaneChannelPair(const int& plane = -1, const int& channel = -1) : plane(plane), channel(channel){};
56  };
57  std::map<uint8_t, TotemTimingPlaneChannelPair> totemTimingChannelMap;
58 
59  void insert(const TotemFramePosition& fp, const TotemVFATInfo& vi);
60  void insert(const TotemT2FramePosition& fp2, const TotemVFATInfo& vi);
61  void print(std::ostream& os, std::string subSystemName) const;
62 
64  const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const;
65 
67 };
68 
69 std::ostream& operator<<(std::ostream& os, TotemDAQMapping mapping);
70 
71 #endif
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
friend std::ostream & operator<<(std::ostream &s, const TotemVFATInfo &fp)
TotemSymbID symbolicID
the symbolic id
void print(std::ostream &os, std::string subSystemName) const
TotemTimingPlaneChannelPair(const int &plane=-1, const int &channel=-1)
void print(std::ostream &os, std::string subSystemName) const
void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi)
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:18
The mapping between FramePosition and VFATInfo.
std::ostream & operator<<(std::ostream &os, TotemDAQMapping mapping)
Hw Id mapping for Totem Timing (dynamical mapping in Sampic)
unsigned int hwID
the hardware ID (16 bit)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping
Contains mappind data related to a VFAT.
const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const
Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair) ...