ATLAS Offline Software
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 
13 void
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
33 }
34 
35 void
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
53 }
CscRawDataCollectionCnv_p4::transToPers
virtual void transToPers(const CscRawDataCollection *transColl, CscRawDataCollection_p4 *persColl, MsgStream &log)
Definition: CscRawDataCollectionCnv_p4.cxx:36
CscRawDataCollectionCnv_p4.h
CscRawDataCollection::set_triggerType
void set_triggerType()
Definition: CscRawDataCollection.h:156
CscRawDataCollection::identify
uint16_t identify() const
access methods
Definition: CscRawDataCollection.h:107
CscRawDataCollection::set_spuCount
void set_spuCount(unsigned int i, uint16_t count)
Definition: CscRawDataCollection.h:162
CscRawDataCollection::set_eventType
void set_eventType(const uint32_t eventType)
Definition: CscRawDataCollection.h:159
CscRawDataCollection::setSubDetectorId
void setSubDetectorId(uint16_t subDetectorId)
Definition: CscRawDataCollection.h:149
TPCnvVector::persToTrans
virtual void persToTrans(const PERS *persVect, TRANS *transVect, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
CscRawDataCollection::rpuID
const std::vector< uint16_t > & rpuID() const
Definition: CscRawDataCollection.h:115
CscRawDataCollection_p4::m_rodId
uint16_t m_rodId
online ROD Identifier
Definition: CscRawDataCollection_p4.h:47
CscRawDataCollection::samplingPhase
bool samplingPhase() const
Definition: CscRawDataCollection.h:117
CscRawDataCollection_p4::m_numRPU
uint16_t m_numRPU
number of RPU
Definition: CscRawDataCollection_p4.h:51
CscRawDataCollection_p4::m_dataType
std::vector< uint8_t > m_dataType
Definition: CscRawDataCollection_p4.h:67
CscRawDataCollection::set_samplingPhase
void set_samplingPhase()
Definition: CscRawDataCollection.h:154
CscRawDataCollection::eventType
uint32_t eventType() const
Definition: CscRawDataCollection.h:120
CscRawDataCollection::set_firstBitSummary
void set_firstBitSummary(const uint8_t summary)
Definition: CscRawDataCollection.h:158
CscRawDataCollection::setOnlineId
void setOnlineId(uint16_t id)
Definition: CscRawDataCollection.h:150
CscRawDataCollection_p4::m_subDetectorId
uint16_t m_subDetectorId
Definition: CscRawDataCollection_p4.h:48
CscRawDataCollection::triggerType
bool triggerType() const
Definition: CscRawDataCollection.h:118
CscRawDataCollection::identifyHash
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
Definition: CscRawDataCollection.h:110
CscRawDataCollection::dataType
const std::vector< uint8_t > & dataType() const
Definition: CscRawDataCollection.h:116
CscRawDataCollection::setIdentifyHash
void setIdentifyHash(const IdentifierHash &idHash)
sets the OFFLINE IdentifierHash for this collection
Definition: CscRawDataCollection.h:153
TPCnvVector::transToPers
virtual void transToPers(const TRANS *transVect, PERS *persVect, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...
CscRawDataCollection::firstBitSummary
uint8_t firstBitSummary() const
Definition: CscRawDataCollection.h:119
CscRawDataCollection::rodId
uint16_t rodId() const
Definition: CscRawDataCollection.h:112
CscRawDataCollection::setRodId
void setRodId(uint16_t rodId)
set methods - the name should be self-descriptive
Definition: CscRawDataCollection.h:148
CscRawDataCollection::scaAddress
uint32_t scaAddress() const
Definition: CscRawDataCollection.h:123
CscRawDataCollection::set_scaAddress
void set_scaAddress(const uint32_t sca)
Definition: CscRawDataCollection.h:161
CscRawDataCollection_p4::m_rpuID
std::vector< uint16_t > m_rpuID
RPU ID and data type.
Definition: CscRawDataCollection_p4.h:66
CscRawDataCollection::setRPUID
void setRPUID(const std::vector< uint16_t > &rpuID)
Definition: CscRawDataCollection.h:187
CscRawDataCollection
Collection of CSC Raw Hits, arranged according to CSC Detector Elements Author: Ketevi A.
Definition: CscRawDataCollection.h:24
CscRawDataCollection_p4::m_spuCount
std::vector< uint16_t > m_spuCount
cluster counts for 10 SPU: 5 SPU in each chamber or RPU! For Chamber CSS, RPU ID = 5 and for CSL RPU ...
Definition: CscRawDataCollection_p4.h:73
CscRawDataCollectionCnv_p4::persToTrans
virtual void persToTrans(const CscRawDataCollection_p4 *persColl, CscRawDataCollection *transColl, MsgStream &log)
Definition: CscRawDataCollectionCnv_p4.cxx:14
CscRawDataCollection::set_dataType
void set_dataType(const unsigned int i, const uint8_t dataType)
Definition: CscRawDataCollection.h:190
CscRawDataCollection_p4::m_samplingPhase
bool m_samplingPhase
sampling phase
Definition: CscRawDataCollection_p4.h:54
CscRawDataCollection_p4::m_eventType
uint32_t m_eventType
event type/data type
Definition: CscRawDataCollection_p4.h:63
CscRawDataCollection::numRPU
uint16_t numRPU() const
Definition: CscRawDataCollection.h:114
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CscRawDataCollection_p4::m_triggerType
bool m_triggerType
trigger Type
Definition: CscRawDataCollection_p4.h:57
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CscRawDataCollection_p4::m_firstBitSummary
uint8_t m_firstBitSummary
First Bit Summary.
Definition: CscRawDataCollection_p4.h:60
CscRawDataCollection_p4::m_scaAddress
uint32_t m_scaAddress
SCA Address.
Definition: CscRawDataCollection_p4.h:76
CscRawDataCollection_p4
Persistent represenation of the Collection of CSC Raw Hits.
Definition: CscRawDataCollection_p4.h:19
CscRawDataCollection::spuCount
uint16_t spuCount(unsigned int i) const
return the SPU cluster counts For all the non-precision layers,
Definition: CscRawDataCollection.h:139
CscRawDataCollection::subDetectorId
uint16_t subDetectorId() const
Definition: CscRawDataCollection.h:113
CscRawDataCollection_p4::m_id
uint32_t m_id
Identifier of this collection.
Definition: CscRawDataCollection_p4.h:44
CscRawDataCollection::setNumDPU
void setNumDPU(const uint16_t numDPU)
obsolete - just backward compatibility with old data
Definition: CscRawDataCollection.cxx:110