ATLAS Offline Software
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 
10 void
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
32 
33 }
34 
35 
36 
37 void
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
55 }
56 
CscRawDataCollection::set_triggerType
void set_triggerType()
Definition: CscRawDataCollection.h:156
CscRawDataCollection_p3::m_eventType
uint32_t m_eventType
event type/data type
Definition: CscRawDataCollection_p3.h:62
CscRawDataCollection_p3::m_scaAddress
uint32_t m_scaAddress
SCA Address.
Definition: CscRawDataCollection_p3.h:75
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_p3
Persistent represenation of the Collection of CSC Raw Hits.
Definition: CscRawDataCollection_p3.h:18
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_p3::m_dataType
std::vector< uint8_t > m_dataType
Definition: CscRawDataCollection_p3.h:66
CscRawDataCollection::rpuID
const std::vector< uint16_t > & rpuID() const
Definition: CscRawDataCollection.h:115
CscRawDataCollection_p3::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_p3.h:72
CscRawDataCollection::samplingPhase
bool samplingPhase() const
Definition: CscRawDataCollection.h:117
CscRawDataCollection::set_samplingPhase
void set_samplingPhase()
Definition: CscRawDataCollection.h:154
CscRawDataCollection_p3::m_subDetectorId
uint16_t m_subDetectorId
Definition: CscRawDataCollection_p3.h:47
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_p3::m_firstBitSummary
uint8_t m_firstBitSummary
First Bit Summary.
Definition: CscRawDataCollection_p3.h:59
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_p3::m_numRPU
uint16_t m_numRPU
number of RPU
Definition: CscRawDataCollection_p3.h:50
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_p3::m_samplingPhase
bool m_samplingPhase
sampling phase
Definition: CscRawDataCollection_p3.h:53
CscRawDataCollection_p3::m_triggerType
bool m_triggerType
trigger Type
Definition: CscRawDataCollection_p3.h:56
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::set_dataType
void set_dataType(const unsigned int i, const uint8_t dataType)
Definition: CscRawDataCollection.h:190
CscRawDataCollectionCnv_p3::persToTrans
virtual void persToTrans(const CscRawDataCollection_p3 *persColl, CscRawDataCollection *transColl, MsgStream &log)
Definition: CscRawDataCollectionCnv_p3.cxx:11
CscRawDataCollectionCnv_p3::transToPers
virtual void transToPers(const CscRawDataCollection *transColl, CscRawDataCollection_p3 *persColl, MsgStream &log)
Definition: CscRawDataCollectionCnv_p3.cxx:38
CscRawDataCollection::numRPU
uint16_t numRPU() const
Definition: CscRawDataCollection.h:114
CscRawDataCollection_p3::m_rodId
uint16_t m_rodId
online ROD Identifier
Definition: CscRawDataCollection_p3.h:46
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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_p3::m_rpuID
std::vector< uint16_t > m_rpuID
RPU ID and data type.
Definition: CscRawDataCollection_p3.h:65
CscRawDataCollection_p3::m_id
uint32_t m_id
Identifier of this collection.
Definition: CscRawDataCollection_p3.h:43
CscRawDataCollectionCnv_p3.h
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::setNumDPU
void setNumDPU(const uint16_t numDPU)
obsolete - just backward compatibility with old data
Definition: CscRawDataCollection.cxx:110