|
ATLAS Offline Software
|
#include <ALFA_Decoder_charge.h>
|
| ALFA_Decoder_charge (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~ALFA_Decoder_charge () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | finalize () |
|
StatusCode | fillCollection (const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFrag, ALFA_RawDataContainer_charge *rdoCont, std::vector< unsigned int > *vecHash=NULL) |
|
ALFA_RawDataCollection_charge * | getCollection (unsigned int MotherBoardId, ALFA_RawDataContainer_charge *cont) |
|
ALFA_RawData_charge * | getRawData_charge (unsigned int PMFId, ALFA_RawDataCollection_charge *coll) |
|
const eformat::FullEventFragment< const uint32_t * > * | eventFragment () const |
|
const eformat::ROBFragment< const uint32_t * > * | robFragment () const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 37 of file ALFA_Decoder_charge.h.
◆ m_ALFA_RawData_charge
◆ m_ALFA_RawDataCollection_charge
◆ StoreGateSvc_t
◆ ALFA_Decoder_charge()
ALFA_Decoder_charge::ALFA_Decoder_charge |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~ALFA_Decoder_charge()
ALFA_Decoder_charge::~ALFA_Decoder_charge |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ eventFragment()
const eformat::FullEventFragment<const uint32_t*>* ALFA_Decoder_charge::eventFragment |
( |
| ) |
const |
|
inline |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillCollection()
Definition at line 97 of file ALFA_Decoder_charge.cxx.
104 std::vector<uint32_t> VData;
161 robFrag->rod_data(vint);
167 uint32_t ROD_source_ID = robFrag->rod_source_id();
170 uint32_t ROD_LVL1_ID = robFrag->rod_lvl1_id();
172 msg(
MSG::DEBUG) <<
"============================" << std::endl;
179 msg(
MSG::DEBUG) <<
"============================" << std::endl;
182 uint32_t evt_Id = ((robFrag->rod_lvl1_id()) & 0xFF000000) >> 24;
183 uint32_t lvl1_Id = ((robFrag->rod_lvl1_id()) & 0x00FFFFFF) ;
211 if (
n==0) Event_num = LvL1;
212 else Event_num = ((robFrag->rod_lvl1_id()) & 0x00FFFFFF) + Event_num;
214 LvL1 = ((robFrag->rod_lvl1_id()) & 0x00FFFFFF)+1 ;
215 EcrId = ((robFrag->rod_lvl1_id()) & 0xFF000000) >> 24;
217 if(
l==1) Event_num_max=Event_num;
219 Event_num = ((robFrag->rod_lvl1_id()) & 0x00FFFFFF)+1 + Event_num_max;
224 msg(MSG::INFO) <<
" Event_num " << Event_num <<
" Count_evt " << Count_evt <<
endmsg;
248 msg(MSG::ERROR)<<
" Error: data corrupted" <<
endmsg;
249 return StatusCode::FAILURE;
265 return StatusCode::FAILURE;
270 if (wordPos >=
size) {
271 msg(MSG::ERROR)<<
" Error: data corrupted"<<
endmsg;
272 return StatusCode::FAILURE;
294 return StatusCode::FAILURE;
319 for (
unsigned int i=0;
i<8;
i++){
321 charge_hit = (
char) tmpCharge & 0x00000001;
327 if(CountPMF0==1) collection =
getCollection(MBIdNum,rdoCont );
351 auto rawData_charge = std::make_unique< ALFA_RawData_charge >(PMFIdNum);
353 rawData_charge->SetChannelNum_PMF(ChannelIdNum);
354 rawData_charge->SetPMFId_PMF(PMFIdNum);
355 rawData_charge->SetMBId_PMF(MBIdNum);
356 rawData_charge->SetChargeChan_PMF(ChargeNum);
359 msg(
MSG::DEBUG)<<
" PMFIdNum = " << PMFIdNum <<
" ChannelIdNum = " << ChannelIdNum <<
" chargeNum = " << ChargeNum <<
endmsg;
361 std::vector<uint16_t> ChargeHitId;
362 ChargeHitId.push_back(ChargeNum);
363 rawData_charge->SetChargeChanVect_PMF(ChargeHitId);
365 rawData_charge->addData(vint[wordPos]);
366 rawData_charge->PushBack_PMF(ChargeNum);
368 if(collection) collection->
push_back(rawData_charge.release());
393 if (wordPos >=
size) {
395 return StatusCode::FAILURE;
408 return StatusCode::FAILURE;
416 const eformat::FullEventFragment<const uint32_t*> *
event =
m_robDataProvider->getEvent(Gaudi::Hive::currentContext());
418 msg(
MSG::DEBUG) <<
"========FULL Event=============" << std::endl;
429 msg(
MSG::DEBUG) <<
"============================" << std::endl;
431 uint32_t Time_StampID =
event->bc_time_seconds();
454 return StatusCode::SUCCESS;
◆ finalize()
StatusCode ALFA_Decoder_charge::finalize |
( |
| ) |
|
|
virtual |
◆ getCollection()
◆ getRawData_charge()
◆ initialize()
StatusCode ALFA_Decoder_charge::initialize |
( |
| ) |
|
|
virtual |
Definition at line 41 of file ALFA_Decoder_charge.cxx.
47 if (
sc.isFailure())
return sc;
52 return StatusCode::FAILURE;
67 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & ALFA_Decoder_charge::interfaceID |
( |
| ) |
|
|
static |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ robFragment()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_ALFA_RawDataCollectionReadOut
◆ m_ALFA_RawDataContainerReadOut
◆ m_ALFA_RawDataReadOut_charge
◆ m_detStore
◆ m_event
const eformat::FullEventFragment<const uint32_t*>* ALFA_Decoder_charge::m_event = nullptr |
|
private |
◆ m_evtStore
◆ m_fragment_number
unsigned int ALFA_Decoder_charge::m_fragment_number = 0U |
|
private |
◆ m_robDataProvider
◆ m_robFrag
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
uint16_t ChargeChanId() const
RDOs : Chamber Service Module, collection of RawData.
void decodeWord(uint32_t dataWord)
unsigned int m_fragment_number
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
uint16_t ChannelNumId() const
ALFA_RawDataCollection_charge * getCollection(unsigned int MotherBoardId, ALFA_RawDataContainer_charge *cont)
virtual void setOwner(IDataHandleHolder *o)=0
const DataType * PointerType
void SetTimeStamp_POT(uint32_t TimeStamp)
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
void decodeWord(uint32_t dataWord)
const eformat::ROBFragment< const uint32_t * > * m_robFrag
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const eformat::FullEventFragment< const uint32_t * > * m_event
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void SetBCId_POT(uint32_t BCId)
uint16_t ecnt_EOT() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void SetMBId_POT(uint16_t MB_number)
uint16_t RODinput() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
void decodeWord(uint32_t dataWord)
ALFA_RawDataContainerReadOut * m_ALFA_RawDataContainerReadOut
ALFA_RawDataReadOut_charge * m_ALFA_RawDataReadOut_charge
ALFA_RawDataCollectionReadOut * m_ALFA_RawDataCollectionReadOut
uint16_t bit24_27() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.