ATLAS Offline Software
ALFA_RawDataCollectionCnv_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 
6 #include "GaudiKernel/MsgStream.h"
8 
9 #include <sstream>
10 
11 
13 
14  if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataCollectionCnv_p1::transToPers" << endmsg;
15 
16  // Invoke vector converter from the base template
18 
19 
20  persColl->MBId_POT = transColl->GetMBId_POT();
21  persColl->EventCount_POT = transColl->GetEventCount_POT();
22  persColl->patternId = transColl->Get_pattern_POT();
23  persColl->scalerId = transColl->Get_scaler_POT();
24  persColl->ADC1Id = transColl->Get_ADC1_POT();
25  persColl->ADC2Id = transColl->Get_ADC2_POT();
26  persColl->TrigSyncErrId = transColl->GetTrigSyncErr();
27 
28 }
29 
31 
32  if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataCollectionCnv_p1::persToTrans" << endmsg;
33 
34 
35  // Invoke vector converter from the base template
37 
38  transColl->SetMBId_POT (persColl->MBId_POT);
39  transColl->SetEventCount_POT (persColl->EventCount_POT);
40  transColl->Set_pattern_POT (persColl->patternId);
41  transColl->Set_scaler_POT (persColl->scalerId);
42  transColl->Set_ADC1_POT (persColl->ADC1Id);
43  transColl->Set_ADC2_POT (persColl->ADC2Id);
44  transColl->SetTrigSyncErr (persColl->TrigSyncErrId);
45 }
46 
ALFA_RawDataCollection::GetTrigSyncErr
bool GetTrigSyncErr() const
Definition: ALFA_RawDataCollection.h:87
ALFA_RawDataCollection::Set_ADC2_POT
void Set_ADC2_POT(uint16_t ADC2_number)
Definition: ALFA_RawDataCollection.cxx:84
ALFA_RawDataCollection_p1::TrigSyncErrId
bool TrigSyncErrId
Definition: ALFA_RawDataCollection_p1.h:42
ALFA_RawDataCollection_p1::ADC2Id
uint16_t ADC2Id
Definition: ALFA_RawDataCollection_p1.h:39
ALFA_RawDataCollection::Get_ADC1_POT
uint16_t Get_ADC1_POT() const
Definition: ALFA_RawDataCollection.h:85
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,...
ALFA_RawDataCollection::Set_ADC1_POT
void Set_ADC1_POT(uint16_t ADC1_number)
Definition: ALFA_RawDataCollection.cxx:79
ALFA_RawDataCollection::Get_pattern_POT
const std::vector< bool > & Get_pattern_POT() const
Definition: ALFA_RawDataCollection.h:83
ALFA_RawDataCollectionCnv_p1::transToPers
virtual void transToPers(const ALFA_RawDataCollection *transColl, ALFA_RawDataCollection_p1 *persColl, MsgStream &log)
Definition: ALFA_RawDataCollectionCnv_p1.cxx:12
ALFA_RawDataCollection::SetTrigSyncErr
void SetTrigSyncErr(bool bit)
Definition: ALFA_RawDataCollection.cxx:89
ALFA_RawDataCollection::GetMBId_POT
uint16_t GetMBId_POT() const
Definition: ALFA_RawDataCollection.h:80
ALFA_RawDataCollection::Set_scaler_POT
void Set_scaler_POT(uint16_t scaler_number)
Definition: ALFA_RawDataCollection.cxx:74
ALFA_RawDataCollection_p1::EventCount_POT
uint32_t EventCount_POT
Definition: ALFA_RawDataCollection_p1.h:31
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,...
ALFA_RawDataCollection::SetMBId_POT
void SetMBId_POT(uint16_t MB_number)
Definition: ALFA_RawDataCollection.cxx:52
ALFA_RawDataCollection_p1::ADC1Id
uint16_t ADC1Id
Definition: ALFA_RawDataCollection_p1.h:37
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ALFA_RawDataCollection
RDOs : Chamber Service Module, collection of RawData.
Definition: ALFA_RawDataCollection.h:19
ALFA_RawDataCollection::Get_ADC2_POT
uint16_t Get_ADC2_POT() const
Definition: ALFA_RawDataCollection.h:86
ALFA_RawDataCollection_p1::MBId_POT
uint16_t MBId_POT
Definition: ALFA_RawDataCollection_p1.h:29
ALFA_RawDataCollection::Get_scaler_POT
uint16_t Get_scaler_POT() const
Definition: ALFA_RawDataCollection.h:84
ALFA_RawDataCollectionCnv_p1.h
ALFA_RawDataCollection::SetEventCount_POT
void SetEventCount_POT(uint32_t Event_number)
Definition: ALFA_RawDataCollection.cxx:64
ALFA_RawDataCollection::Set_pattern_POT
void Set_pattern_POT(const std::vector< bool > &pattern_number)
Definition: ALFA_RawDataCollection.cxx:69
ALFA_RawDataCollection::GetEventCount_POT
uint32_t GetEventCount_POT() const
Definition: ALFA_RawDataCollection.h:82
ALFA_RawDataCollectionCnv_p1::persToTrans
virtual void persToTrans(const ALFA_RawDataCollection_p1 *persColl, ALFA_RawDataCollection *transColl, MsgStream &log)
Definition: ALFA_RawDataCollectionCnv_p1.cxx:30
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
ALFA_RawDataCollection_p1::scalerId
uint16_t scalerId
Definition: ALFA_RawDataCollection_p1.h:35
ALFA_RawDataCollection_p1::patternId
std::vector< bool > patternId
Definition: ALFA_RawDataCollection_p1.h:33
ALFA_RawDataCollection.h
ALFA_RawDataCollection_p1
Definition: ALFA_RawDataCollection_p1.h:14