ATLAS Offline Software
ALFA_CLinkEvent.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 // Default constructor needed by athenaroot/athenapool
10 {
11  memset(&m_DCSId,0,sizeof(DCSID));
12 }
13 
14 // destructor
16 {
17 
18 }
19 
21 {
22  switch(eType){
25  break;
28  break;
31  break;
34  break;
37  break;
40  break;
43  break;
44 // case EDVT_GLORECEVCOLLECTION:
45 // m_GloRecEvColl=DataLink<ALFA_GloRecEvCollection>(*((ALFA_GloRecEvCollection*)pObj));
46 // break;
47  default:
48  break;
49  }
50 
51  return StatusCode::SUCCESS;
52 }
53 
54 const void* ALFA_CLinkEvent::GetLinkedObject(eDVType eType) const
55 {
56  const void* pObj=nullptr;
57 
58  switch(eType){
61  break;
64  break;
67  break;
70  break;
73  break;
76  break;
79  break;
80 // case EDVT_GLORECEVCOLLECTION:
81 // pObj=m_GloRecEvColl.getDataPtr();
82 // break;
83  default:
84  break;
85  }
86 
87  return pObj;
88 }
89 
90 void ALFA_CLinkEvent::SetDCSFolderID(eDCSItem eItem, const unsigned long long ullID)
91 {
92  switch(eItem){
93  case EDCSI_BLM:
94  m_DCSId.ullBlmID=ullID;
95  break;
96  case EDCSI_HVCHANNEL:
97  m_DCSId.ullHVChannelID=ullID;
98  break;
101  break;
102  case EDCSI_MOVEMENT:
103  m_DCSId.ullMovementID=ullID;
104  break;
105  case EDCSI_RADMON:
106  m_DCSId.ullRadMonID=ullID;
107  break;
108  case EDCSI_TRIGGERRATES:
110  break;
113  break;
116  break;
117  default:
118  break;
119  }
120 }
121 
123 {
124  if(pDCSIds!=nullptr) memcpy(&m_DCSId,pDCSIds,sizeof(DCSID));
125 }
126 
127 unsigned long long ALFA_CLinkEvent::GetDCSFolderID(eDCSItem eItem) const
128 {
129  unsigned long long ullID=0;
130 
131  switch(eItem){
132  case EDCSI_BLM:
133  ullID=m_DCSId.ullBlmID;
134  break;
135  case EDCSI_HVCHANNEL:
136  ullID=m_DCSId.ullHVChannelID;
137  break;
140  break;
141  case EDCSI_MOVEMENT:
142  ullID=m_DCSId.ullMovementID;
143  break;
144  case EDCSI_RADMON:
145  ullID=m_DCSId.ullRadMonID;
146  break;
147  case EDCSI_TRIGGERRATES:
149  break;
152  break;
155  break;
156  default:
157  break;
158  }
159 
160  return ullID;
161 }
162 
ALFA_CLinkEvent::m_ODDigitEvColl
DataLink< ALFA_ODDigitCollection > m_ODDigitEvColl
Definition: ALFA_CLinkEvent.h:111
ALFA_CLinkEvent::SetDCSFolderIDs
void SetDCSFolderIDs(const DCSID *pDCSIds)
Definition: ALFA_CLinkEvent.cxx:122
ALFA_CLinkEvent::m_RawDataEvColl
DataLink< ALFA_RawDataContainer > m_RawDataEvColl
Definition: ALFA_CLinkEvent.h:109
ALFA_CLinkEvent::m_DigitEvColl
DataLink< ALFA_DigitCollection > m_DigitEvColl
Definition: ALFA_CLinkEvent.h:110
eDCSItem
eDCSItem
Definition: ALFA_CLinkEvent.h:47
ALFA_CLinkEvent::AddLink
StatusCode AddLink(eDVType eType, const void *pObj)
Definition: ALFA_CLinkEvent.cxx:20
EDCSI_RADMON
@ EDCSI_RADMON
Definition: ALFA_CLinkEvent.h:47
EDVT_LOCRECODEVCOLLECTION
@ EDVT_LOCRECODEVCOLLECTION
Definition: ALFA_CLinkEvent.h:44
ALFA_CLinkEvent::SetDCSFolderID
void SetDCSFolderID(eDCSItem eItem, const unsigned long long ullID)
Definition: ALFA_CLinkEvent.cxx:90
ALFA_CLinkEvent::GetDCSFolderID
unsigned long long GetDCSFolderID(eDCSItem eItem) const
Definition: ALFA_CLinkEvent.cxx:127
_DCSID::ullMovementID
unsigned long long ullMovementID
Definition: ALFA_CLinkEvent.h:54
_DCSID::ullFEConfigurationID
unsigned long long ullFEConfigurationID
Definition: ALFA_CLinkEvent.h:57
ALFA_CLinkEvent::m_LocRecCorrODEvColl
DataLink< ALFA_LocRecCorrODEvCollection > m_LocRecCorrODEvColl
Definition: ALFA_CLinkEvent.h:115
ALFA_LocRecCorrEvCollection
Definition: ALFA_LocRecCorrEvCollection.h:13
EDCSI_TRIGGERRATES
@ EDCSI_TRIGGERRATES
Definition: ALFA_CLinkEvent.h:48
EDCSI_TRIGGERSETTINGS
@ EDCSI_TRIGGERSETTINGS
Definition: ALFA_CLinkEvent.h:48
ALFA_CLinkEvent::~ALFA_CLinkEvent
~ALFA_CLinkEvent()
Definition: ALFA_CLinkEvent.cxx:15
_DCSID::ullHVChannelID
unsigned long long ullHVChannelID
Definition: ALFA_CLinkEvent.h:52
EDVT_LOCRECEVCOLLECTION
@ EDVT_LOCRECEVCOLLECTION
Definition: ALFA_CLinkEvent.h:44
ALFA_CLinkEvent::GetLinkedObject
const void * GetLinkedObject(eDVType eType) const
Definition: ALFA_CLinkEvent.cxx:54
ALFA_LocRecODEvCollection
Definition: ALFA_LocRecODEvCollection.h:13
ALFA_CLinkEvent::m_LocRecODEvColl
DataLink< ALFA_LocRecODEvCollection > m_LocRecODEvColl
Definition: ALFA_CLinkEvent.h:113
_DCSID::ullBlmID
unsigned long long ullBlmID
Definition: ALFA_CLinkEvent.h:51
ALFA_LocRecCorrODEvCollection
Definition: ALFA_LocRecCorrODEvCollection.h:13
EDVT_DIGITCOLLECTION
@ EDVT_DIGITCOLLECTION
Definition: ALFA_CLinkEvent.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EDVT_RAWDATAEVCOLLECTION
@ EDVT_RAWDATAEVCOLLECTION
Definition: ALFA_CLinkEvent.h:44
EDVT_ODDIGITCOLLECTION
@ EDVT_ODDIGITCOLLECTION
Definition: ALFA_CLinkEvent.h:44
EDVT_LOCRECCORREVCOLLECTION
@ EDVT_LOCRECCORREVCOLLECTION
Definition: ALFA_CLinkEvent.h:45
_DCSID::ullTriggerSettingsID
unsigned long long ullTriggerSettingsID
Definition: ALFA_CLinkEvent.h:58
ALFA_CLinkEvent.h
ALFA_CLinkEvent::m_DCSId
DCSID m_DCSId
Definition: ALFA_CLinkEvent.h:108
eDVType
eDVType
Definition: ALFA_CLinkEvent.h:44
EDVT_LOCRECCORRODEVCOLLECTION
@ EDVT_LOCRECCORRODEVCOLLECTION
Definition: ALFA_CLinkEvent.h:45
EDCSI_FECONFIGURATION
@ EDCSI_FECONFIGURATION
Definition: ALFA_CLinkEvent.h:48
ALFA_DigitCollection
Definition: ALFA_DigitCollection.h:15
EDCSI_MOVEMENT
@ EDCSI_MOVEMENT
Definition: ALFA_CLinkEvent.h:47
ALFA_LocRecEvCollection
Definition: ALFA_LocRecEvCollection.h:13
_DCSID::ullLocalMonitoringID
unsigned long long ullLocalMonitoringID
Definition: ALFA_CLinkEvent.h:53
EDCSI_HVCHANNEL
@ EDCSI_HVCHANNEL
Definition: ALFA_CLinkEvent.h:47
ALFA_CLinkEvent::m_LocRecEvColl
DataLink< ALFA_LocRecEvCollection > m_LocRecEvColl
Definition: ALFA_CLinkEvent.h:112
EDCSI_BLM
@ EDCSI_BLM
Definition: ALFA_CLinkEvent.h:47
ALFA_CLinkEvent::ALFA_CLinkEvent
ALFA_CLinkEvent()
Definition: ALFA_CLinkEvent.cxx:9
EDCSI_LOCALMONITORING
@ EDCSI_LOCALMONITORING
Definition: ALFA_CLinkEvent.h:47
ALFA_RawDataContainer
This container provides acces to the PMF RDOs.
Definition: ALFA_RawDataContainer.h:21
_DCSID::ullTriggerRatesID
unsigned long long ullTriggerRatesID
Definition: ALFA_CLinkEvent.h:56
_DCSID
Definition: ALFA_CLinkEvent.h:50
_DCSID::ullRadMonID
unsigned long long ullRadMonID
Definition: ALFA_CLinkEvent.h:55
ALFA_CLinkEvent::m_LocRecCorrEvColl
DataLink< ALFA_LocRecCorrEvCollection > m_LocRecCorrEvColl
Definition: ALFA_CLinkEvent.h:114
ALFA_ODDigitCollection
Definition: ALFA_ODDigitCollection.h:15