ATLAS Offline Software
TgcRdoCnv_p1.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 #include "MuonRDO/TgcRdo.h"
6 #include "GaudiKernel/MsgStream.h"
8 #include "TgcRdoCnv_p1.h"
9 #include "TgcRawDataCnv_p1.h"
10 
11 void
12 TgcRdoCnv_p1::transToPers(const TgcRdo* /*transColl*/, TgcRdo_p1* /*persColl*/, MsgStream &log)
13 {
14  log << MSG::ERROR << "TgcRdoCnv_p1::transToPers should not be called. _p2 exists!" << endmsg;
15 }
16 
17 void
18 TgcRdoCnv_p1::persToTrans(const TgcRdo_p1* persColl, TgcRdo* transColl, MsgStream &log)
19 {
20  if (log.level() <= MSG::DEBUG)
21  log << MSG::DEBUG << " *** Reading TgcRdo P1" << endmsg;
22 // log << MSG::INFO << " *** Reading TgcRdo P1" << endmsg;
23 
24  // Invoke vector converter from the base template
25  TgcRdoCnv_p1_basetype::persToTrans(persColl, transColl, log);
26 
27  transColl->setOnlineId(persColl->subDetectorId(),
28  persColl->rodId());
29  transColl->setTriggerType(persColl->triggerType());
30  transColl->setBcId(persColl->bcId());
31  transColl->setL1Id(persColl->l1Id());
32  transColl->setVersion(0);
33 
34  if (log.level() <= MSG::DEBUG)
35  std::cout << "After conversion " << *transColl << std::endl;
36 }
37 
TgcRdo_p1::subDetectorId
uint16_t subDetectorId() const
Definition: TgcRdo_p1.h:35
TgcRdo::setL1Id
void setL1Id(uint32_t v)
Definition: TgcRdo.h:119
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,...
TgcRdo::setTriggerType
void setTriggerType(uint16_t v)
Definition: TgcRdo.h:127
TgcRdo_p1
Definition: TgcRdo_p1.h:22
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TgcRdo_p1::triggerType
uint16_t triggerType() const
Definition: TgcRdo_p1.h:37
TgcRdoCnv_p1::transToPers
virtual void transToPers(const TgcRdo *transColl, TgcRdo_p1 *persColl, MsgStream &log)
Definition: TgcRdoCnv_p1.cxx:12
TgcRdo.h
TgcRdo_p1::bcId
uint16_t bcId() const
Definition: TgcRdo_p1.h:38
TgcRdo_p1::l1Id
uint16_t l1Id() const
Definition: TgcRdo_p1.h:39
TgcRdo::setOnlineId
void setOnlineId(uint16_t subDetectorId, uint16_t rodId)
Definition: TgcRdo.cxx:35
TgcRawDataCnv_p1.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TgcRdo::setVersion
void setVersion(uint16_t version)
Definition: TgcRdo.h:220
TgcRdo::setBcId
void setBcId(uint16_t v)
Definition: TgcRdo.h:123
TgcRdo
Definition: TgcRdo.h:22
TgcRdo_p1::rodId
uint16_t rodId() const
Definition: TgcRdo_p1.h:36
TgcRdoCnv_p1.h
TgcRdoCnv_p1::persToTrans
virtual void persToTrans(const TgcRdo_p1 *persColl, TgcRdo *transColl, MsgStream &log)
Definition: TgcRdoCnv_p1.cxx:18
TgcRdo_p1.h