ATLAS Offline Software
ALFA_RawDataContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GaudiKernel/Bootstrap.h"
6 #include "GaudiKernel/ISvcLocator.h"
7 #include "GaudiKernel/IMessageSvc.h"
9 
12 #include <map>
13 #include <cassert>
14 #include <iostream>
15 
16 using std::ostream;
17 using std::endl;
18 
19 //**********************************************************************
20 // Local definitions
21 //**********************************************************************
22 
23 //**********************************************************************
24 // Member functions.
25 //**********************************************************************
26 
27 
28 // Default constructor.
29 
31  //: IdentifiableContainer<ALFA_RawDataCollection>()
33  m_wordMarker(0),
34  //m_dataWord(0),
35  m_subdetId(0),
36  m_mrodId(0),
37  m_lvl1Id(0),
38  m_ecrId(0),
39  m_bcId(0),
40  m_runNum(0),
41  m_runType(0),
42  m_triggerTypeId(0),
43  m_DetEventType(0),
44  m_TimeStamp(0),
45  m_TimeStampns(0),
46  m_BCId(0),
47  m_LumiBlock(0),
48  m_lvl1Pattern()
49 {
50 }
51 
52 
53 //**********************************************************************
54 
55 // Destructor.
56 
58 
59 }
60 
61 //**********************************************************************
62 
63 
64 // Return the total number of digits in the container.
65 
70 
71  for (; it != iend; ++it ) {
72  count += (*it)->size();
73  }
74  return count;
75 }
76 
77 
79 {
80  m_TimeStamp=tmpTimeStamp;
81 }
82 
84 {
85  m_TimeStampns=tmpTimeStampns;
86 }
87 
89 {
90  m_LumiBlock=tmpLumiBlock;
91 }
92 
94 {
95  m_BCId=tmpBCId;
96 }
97 
98 void ALFA_RawDataContainer::SetLvl1Pattern(const std::vector<bool>& tmplvl1_pattern)
99 {
100  m_lvl1Pattern = tmplvl1_pattern;
101 }
102 
103 void ALFA_RawDataContainer::SetLvl2Pattern(const std::vector<bool>& tmplvl2_pattern)
104 {
105  m_lvl2Pattern = tmplvl2_pattern;
106 }
107 
108 void ALFA_RawDataContainer::SetEFPattern(const std::vector<bool>& tmpef_pattern)
109 {
110  m_efPattern = tmpef_pattern;
111 }
112 
113 
114 
116 {
117  m_subdetId = 0;
118  m_mrodId = 0;
119  m_runNum = 0;
120  m_runType = 0;
121  m_lvl1Id = 0;
122  m_ecrId = 0;
123  m_bcId = 0;
124  m_triggerTypeId = 0;
125  m_DetEventType = 0;
126 
127  m_TimeStamp=0;
128  m_TimeStampns=0;
129  m_LumiBlock=0;
130  m_BCId=0;
131  m_lvl1Pattern.clear();
132  m_lvl2Pattern.clear();
133  m_efPattern.clear();
134 
135 }
136 
ALFA_RawDataContainer::~ALFA_RawDataContainer
~ALFA_RawDataContainer()
Definition: ALFA_RawDataContainer.cxx:57
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
ALFA_RawDataContainer::m_TimeStamp
uint32_t m_TimeStamp
Definition: ALFA_RawDataContainer.h:57
ALFA_RawDataContainer.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ALFA_RawDataContainer::m_DetEventType
uint32_t m_DetEventType
Definition: ALFA_RawDataContainer.h:42
ALFA_RawDataContainer::SetTimeStamp
void SetTimeStamp(uint32_t tmpTimeStamp)
Definition: ALFA_RawDataContainer.cxx:78
skel.it
it
Definition: skel.GENtoEVGEN.py:396
ALFA_RawDataContainer::m_efPattern
std::vector< bool > m_efPattern
Definition: ALFA_RawDataContainer.h:69
ALFA_RawDataContainer::m_triggerTypeId
uint16_t m_triggerTypeId
Definition: ALFA_RawDataContainer.h:41
ALFA_RawDataContainer::setZero
void setZero()
Definition: ALFA_RawDataContainer.cxx:115
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
ALFA_RawDataContainer::m_runNum
uint32_t m_runNum
Definition: ALFA_RawDataContainer.h:39
ALFA_RawDataContainer::SetTimeStampns
void SetTimeStampns(uint32_t tmpTimeStampns)
Definition: ALFA_RawDataContainer.cxx:83
ALFA_RawDataContainer::m_lvl2Pattern
std::vector< bool > m_lvl2Pattern
Definition: ALFA_RawDataContainer.h:67
ALFA_RawDataContainer::m_bcId
uint16_t m_bcId
Definition: ALFA_RawDataContainer.h:38
ALFA_RawDataContainer::m_lvl1Pattern
std::vector< bool > m_lvl1Pattern
Definition: ALFA_RawDataContainer.h:65
ALFA_RawDataContainer::m_lvl1Id
uint32_t m_lvl1Id
Definition: ALFA_RawDataContainer.h:36
ALFA_RawDataContainer::m_TimeStampns
uint32_t m_TimeStampns
Definition: ALFA_RawDataContainer.h:59
ALFA_RawDataContainer::m_LumiBlock
uint32_t m_LumiBlock
Definition: ALFA_RawDataContainer.h:63
ALFA_RawDataCollection
RDOs : Chamber Service Module, collection of RawData.
Definition: ALFA_RawDataCollection.h:19
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
ALFA_RawDataContainer::SetLumiBlock
void SetLumiBlock(uint32_t tmpLumiBlock)
Definition: ALFA_RawDataContainer.cxx:88
ALFA_RawDataContainer::SetLvl2Pattern
void SetLvl2Pattern(const std::vector< bool > &tmplvl2_pattern)
Definition: ALFA_RawDataContainer.cxx:103
ALFA_RawDataContainer::SetEFPattern
void SetEFPattern(const std::vector< bool > &tmpef_pattern)
Definition: ALFA_RawDataContainer.cxx:108
ALFA_RawDataContainer::m_runType
uint16_t m_runType
Definition: ALFA_RawDataContainer.h:40
ALFA_RawDataContainer::ALFA_RawDataContainer
ALFA_RawDataContainer()
Definition: ALFA_RawDataContainer.cxx:30
DataVector< ALFA_RawDataCollection >::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
ALFA_RawDataContainer::m_ecrId
uint16_t m_ecrId
Definition: ALFA_RawDataContainer.h:37
ALFA_RawDataContainer::m_BCId
uint32_t m_BCId
Definition: ALFA_RawDataContainer.h:61
ALFA_RawDataContainer::m_mrodId
uint16_t m_mrodId
Definition: ALFA_RawDataContainer.h:35
ALFA_RawDataContainer::SetLvl1Pattern
void SetLvl1Pattern(const std::vector< bool > &tmplvl1_pattern)
Definition: ALFA_RawDataContainer.cxx:98
ALFA_RawDataContainer::SetBCId
void SetBCId(uint32_t tmpBCId)
Definition: ALFA_RawDataContainer.cxx:93
SelectAllObject.h
ALFA_RawDataContainer::digit_size
size_type digit_size() const
Definition: ALFA_RawDataContainer.cxx:66
StoreGateSvc.h
DataVector< ALFA_RawDataCollection >::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ALFA_RawDataContainer::size_type
ALFA_RawDataCollection::size_type size_type
Definition: ALFA_RawDataContainer.h:76
ALFA_RawDataContainer::m_subdetId
uint16_t m_subdetId
Definition: ALFA_RawDataContainer.h:34