ATLAS Offline Software
Loading...
Searching...
No Matches
CscRawDataCollectionCnv_p3.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
6#include "GaudiKernel/MsgStream.h"
8#include <sstream>
9
10void
12{
13 //log << MSG::DEBUG << " *** Reading CscRawDataCollection" << endmsg;
14
15 IdentifierHash idhash = transColl->identifyHash();
16 transColl->setOnlineId (persColl->m_id);
17 transColl->setIdentifyHash (idhash);
18 transColl->setRodId (persColl->m_rodId);
19 transColl->setSubDetectorId (persColl->m_subDetectorId);
20 transColl->setNumDPU (persColl->m_numRPU);
21 transColl->set_samplingPhase (persColl->m_samplingPhase);
22 transColl->set_triggerType (persColl->m_triggerType);
23 transColl->set_firstBitSummary (persColl->m_firstBitSummary);
24 transColl->set_eventType (persColl->m_eventType);
25 transColl->setRPUID (persColl->m_rpuID);
26 transColl->set_dataType (persColl->m_dataType);
27 transColl->set_spuCount (persColl->m_spuCount);
28 transColl->set_scaAddress (persColl->m_scaAddress);
29
30 // Invoke vector converter from the base template
31 CscRawDataCollection_Cnv_p3_base_t::persToTrans( persColl, transColl, log );
32
33}
34
35
36
37void
39{
40 persColl->m_id = transColl->identify();
41 persColl->m_rodId = transColl->rodId() ;
42 persColl->m_subDetectorId = transColl->subDetectorId();
43 persColl->m_numRPU = transColl->numRPU();
44 persColl->m_samplingPhase = transColl->samplingPhase() ;
45 persColl->m_triggerType = transColl->triggerType() ;
46 persColl->m_firstBitSummary= transColl->firstBitSummary();
47 persColl->m_eventType = transColl->eventType();
48 persColl->m_rpuID = transColl->rpuID();
49 persColl->m_dataType = transColl->dataType();
50 persColl->m_spuCount = transColl->spuCount();
51 persColl->m_scaAddress = transColl->scaAddress();
52
53 // Invoke vector converter from the base template
54 CscRawDataCollection_Cnv_p3_base_t::transToPers( transColl, persColl, log );
55}
56
virtual void persToTrans(const CscRawDataCollection_p3 *persColl, CscRawDataCollection *transColl, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
virtual void transToPers(const CscRawDataCollection *transColl, CscRawDataCollection_p3 *persColl, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...
Persistent represenation of the Collection of CSC Raw Hits.
uint16_t m_numRPU
number of RPU
std::vector< uint16_t > m_spuCount
cluster counts for 10 SPU: 5 SPU in each chamber or RPU!
std::vector< uint16_t > m_rpuID
RPU ID and data type.
uint32_t m_id
Identifier of this collection.
uint16_t m_rodId
online ROD Identifier
uint32_t m_scaAddress
SCA Address.
uint8_t m_firstBitSummary
First Bit Summary.
std::vector< uint8_t > m_dataType
uint32_t m_eventType
event type/data type
Collection of CSC Raw Hits, arranged according to CSC Detector Elements Author: Ketevi A.
void set_scaAddress(const uint32_t sca)
void set_eventType(const uint32_t eventType)
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
void setRodId(uint16_t rodId)
set methods - the name should be self-descriptive
void set_spuCount(unsigned int i, uint16_t count)
uint8_t firstBitSummary() const
uint16_t identify() const
access methods
void setIdentifyHash(const IdentifierHash &idHash)
sets the OFFLINE IdentifierHash for this collection
uint16_t spuCount(unsigned int i) const
return the SPU cluster counts For all the non-precision layers,
void setRPUID(const std::vector< uint16_t > &rpuID)
uint16_t subDetectorId() const
const std::vector< uint16_t > & rpuID() const
void setNumDPU(const uint16_t numDPU)
obsolete - just backward compatibility with old data
void set_dataType(const unsigned int i, const uint8_t dataType)
const std::vector< uint8_t > & dataType() const
void set_firstBitSummary(const uint8_t summary)
void setOnlineId(uint16_t id)
void setSubDetectorId(uint16_t subDetectorId)
This is a "hash" representation of an Identifier.
virtual void persToTrans(const PERS *persVect, TRANS *transVect, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
virtual void transToPers(const TRANS *transVect, PERS *persVect, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...