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_CTPPSReadoutObjects_TotemDAQMapping
11 #define CondFormats_CTPPSReadoutObjects_TotemDAQMapping
12 
14 
16 
17 #include <map>
18 
19 //----------------------------------------------------------------------------------------------------
20 
25 {
26  public:
29 
31  unsigned int hwID;
32 
33  friend std::ostream& operator << (std::ostream& s, const TotemVFATInfo &fp);
34 };
35 
36 //----------------------------------------------------------------------------------------------------
37 
42 {
43  public:
44  std::map<TotemFramePosition, TotemVFATInfo> VFATMapping;
45 
48  {
49  int plane;
50  int channel;
51 
52  TotemTimingPlaneChannelPair(const int& plane=-1, const int& channel=-1) : plane(plane), channel(channel) {};
53  };
54  std::map<uint8_t, TotemTimingPlaneChannelPair> totemTimingChannelMap;
55 
56  void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi);
57 
59  const TotemTimingPlaneChannelPair getTimingChannel( const uint8_t hwId ) const;
60 };
61 
62 #endif
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
friend std::ostream & operator<<(std::ostream &s, const TotemVFATInfo &fp)
TotemSymbID symbolicID
the symbolic id
TotemTimingPlaneChannelPair(const int &plane=-1, const int &channel=-1)
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:17
The mapping between FramePosition and VFATInfo.
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:50
Hw Id mapping for Totem Timing (dynamical mapping in Sampic)
unsigned int hwID
the hardware ID (16 bit)
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping
Contains mappind data related to a VFAT.