ATLAS Offline Software
Loading...
Searching...
No Matches
CscRawDataCollectionCnv_p4.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5// NOTE: This is an exact copy of CscRawDataCollectionCnv_p3, since from p3 to p4 only the meaning of the m_hashId changed:
6// Until p3, the m_hashId stores the identifier hash which encodes the geometrical position of the CSC
7// From p4 onwards, the m_hashId stores the position of the CSC identifier in the vector of identifiers
8
9#include "GaudiKernel/MsgStream.h"
11#include <sstream>
12
13void
15{
16 IdentifierHash idhash = transColl->identifyHash();
17 transColl->setOnlineId (persColl->m_id);
18 transColl->setIdentifyHash (idhash);
19 transColl->setRodId (persColl->m_rodId);
20 transColl->setSubDetectorId (persColl->m_subDetectorId);
21 transColl->setNumDPU (persColl->m_numRPU);
22 transColl->set_samplingPhase (persColl->m_samplingPhase);
23 transColl->set_triggerType (persColl->m_triggerType);
24 transColl->set_firstBitSummary (persColl->m_firstBitSummary);
25 transColl->set_eventType (persColl->m_eventType);
26 transColl->setRPUID (persColl->m_rpuID);
27 transColl->set_dataType (persColl->m_dataType);
28 transColl->set_spuCount (persColl->m_spuCount);
29 transColl->set_scaAddress (persColl->m_scaAddress);
30
31 // Invoke vector converter from the base template
32 CscRawDataCollection_Cnv_p4_base_t::persToTrans( persColl, transColl, log );
33}
34
35void
37{
38 persColl->m_id = transColl->identify();
39 persColl->m_rodId = transColl->rodId() ;
40 persColl->m_subDetectorId = transColl->subDetectorId();
41 persColl->m_numRPU = transColl->numRPU();
42 persColl->m_samplingPhase = transColl->samplingPhase() ;
43 persColl->m_triggerType = transColl->triggerType() ;
44 persColl->m_firstBitSummary= transColl->firstBitSummary();
45 persColl->m_eventType = transColl->eventType();
46 persColl->m_rpuID = transColl->rpuID();
47 persColl->m_dataType = transColl->dataType();
48 persColl->m_spuCount = transColl->spuCount();
49 persColl->m_scaAddress = transColl->scaAddress();
50
51 // Invoke vector converter from the base template
52 CscRawDataCollection_Cnv_p4_base_t::transToPers( transColl, persColl, log );
53}
virtual void transToPers(const CscRawDataCollection *transColl, CscRawDataCollection_p4 *persColl, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...
virtual void persToTrans(const CscRawDataCollection_p4 *persColl, CscRawDataCollection *transColl, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
Persistent represenation of the Collection of CSC Raw Hits.
uint16_t m_rodId
online ROD Identifier
uint8_t m_firstBitSummary
First Bit Summary.
std::vector< uint16_t > m_spuCount
cluster counts for 10 SPU: 5 SPU in each chamber or RPU!
std::vector< uint8_t > m_dataType
uint32_t m_scaAddress
SCA Address.
uint16_t m_numRPU
number of RPU
uint32_t m_id
Identifier of this collection.
uint32_t m_eventType
event type/data type
std::vector< uint16_t > m_rpuID
RPU ID and 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,...