Commit 2ea0f251 authored by Jochen Meyer's avatar Jochen Meyer Committed by Graeme Stewart
Browse files

adding verbose output (MuonEventTPCnv-01-06-07)

parent 1816e807
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "MuonEventTPCnv/MuonChamberT0s/ChamberT0sCnv_p1.h"
<lcgdict>
<class name="T_TPCnv<Muon::ChamberT0s, Muon::ChamberT0s_p1>" />
<class name="ChamberT0sCnv_p1" />
<class name="T_AthenaPoolTPCnvBase< Muon::ChamberT0s, Muon::ChamberT0s_p1 >" />
<class name="T_AthenaPoolTPPolyCnvBase< Muon::ChamberT0s, Muon::ChamberT0s, Muon::ChamberT0s_p1 >" />
<class name="T_AthenaPoolTPAbstractPolyCnvBase< Muon::ChamberT0s, Muon::ChamberT0s, Muon::ChamberT0s_p1 > " />
<class name="ITPConverterFor< Muon::ChamberT0s > " />
</lcgdict>
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCPREPDATACONTAINERCNV_TLP1_H
#define CSCPREPDATACONTAINERCNV_TLP1_H
#include "AthenaPoolCnvSvc/AthenaPoolTopLevelTPConverter.h"
#include "CscPrepDataContainer_tlp1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscPrepDataContainerCnv_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscPrepDataCnv_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawDataCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/ErrorMatrixCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPositionCnv_p1.h"
#include <iostream>
class CscPrepDataContainerCnv_tlp1
: public AthenaPoolTopLevelTPConverter<Muon::CscPrepDataContainerCnv_p1, Muon::CscPrepDataContainer_tlp1 >
{
public:
CscPrepDataContainerCnv_tlp1();
virtual ~CscPrepDataContainerCnv_tlp1() {}
virtual void setPStorage( Muon::CscPrepDataContainer_tlp1 *storage );
// return list of tokens to extending persistent objects
// it is stored in m_tokenList member of the Track persistent rep
virtual TPCnvTokenList_p1* getTokenListVar() { return &(getTLPersObject()->m_tokenList); }
protected:
CscPrepDataCnv_p1 m_muonPrdCnv;
PrepRawDataCnv_p1 m_prepDataCnv;
LocalPositionCnv_p1 m_locPosCnv;
ErrorMatrixCnv_p1 m_errorMatCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCPREPDATACONTAINER_TLP1_H
#define CSCPREPDATACONTAINER_TLP1_H
//-----------------------------------------------------------------------------
// MuonPrepRawData
//-----------------------------------------------------------------------------
#include "MuonEventTPCnv/MuonPrepRawData/MuonPRD_Container_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscPrepData_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawData_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/HepSymMatrix_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPosition_p1.h"
// Token
#include "AthenaPoolUtilities/TPCnvTokenList_p1.h"
namespace Muon
{
class CscPrepDataContainer_tlp1
{
public:
CscPrepDataContainer_tlp1() {}
TPCnvTokenList_p1 m_tokenList;
// This is the basic info
std::vector< Muon::MuonPRD_Container_p1> m_pixDCCont;
std::vector< Muon::CscPrepData_p1 > m_muonPrds;
// This are the base classes
std::vector< Trk::PrepRawData_p1> m_prepData;
// This is info held by the base class
std::vector< Trk::LocalPosition_p1> m_locPos;
std::vector< Trk::HepSymMatrix_p1> m_errorMat;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCSTRIPPREPDATACONTAINERCNV_TLP1_H
#define CSCSTRIPPREPDATACONTAINERCNV_TLP1_H
#include "AthenaPoolCnvSvc/AthenaPoolTopLevelTPConverter.h"
#include "CscStripPrepDataContainer_tlp1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscStripPrepDataContainerCnv_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscStripPrepDataCnv_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawDataCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/ErrorMatrixCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPositionCnv_p1.h"
#include <iostream>
class CscStripPrepDataContainerCnv_tlp1
: public AthenaPoolTopLevelTPConverter<Muon::CscStripPrepDataContainerCnv_p1, Muon::CscStripPrepDataContainer_tlp1 >
{
public:
CscStripPrepDataContainerCnv_tlp1();
virtual ~CscStripPrepDataContainerCnv_tlp1() {}
virtual void setPStorage( Muon::CscStripPrepDataContainer_tlp1 *storage );
// return list of tokens to extending persistent objects
// it is stored in m_tokenList member of the Track persistent rep
virtual TPCnvTokenList_p1* getTokenListVar() { return &(getTLPersObject()->m_tokenList); }
protected:
CscStripPrepDataCnv_p1 m_muonPrdCnv;
PrepRawDataCnv_p1 m_prepDataCnv;
LocalPositionCnv_p1 m_locPosCnv;
ErrorMatrixCnv_p1 m_errorMatCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCSTRIPPREPDATACONTAINER_TLP1_H
#define CSCSTRIPPREPDATACONTAINER_TLP1_H
//-----------------------------------------------------------------------------
// MuonPrepRawData
//-----------------------------------------------------------------------------
#include "MuonEventTPCnv/MuonPrepRawData/MuonPRD_Container_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/CscStripPrepData_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawData_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/HepSymMatrix_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPosition_p1.h"
// Token
#include "AthenaPoolUtilities/TPCnvTokenList_p1.h"
namespace Muon
{
class CscStripPrepDataContainer_tlp1
{
public:
CscStripPrepDataContainer_tlp1() {}
TPCnvTokenList_p1 m_tokenList;
// This is the basic info
std::vector< Muon::MuonPRD_Container_p1> m_pixDCCont;
std::vector< Muon::CscStripPrepData_p1 > m_muonPrds;
// This are the base classes
std::vector< Trk::PrepRawData_p1> m_prepData;
// This is info held by the base class
std::vector< Trk::LocalPosition_p1> m_locPos;
std::vector< Trk::HepSymMatrix_p1> m_errorMat;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MDTPREPDATACONTAINERCNV_TLP1_H
#define MDTPREPDATACONTAINERCNV_TLP1_H
#include "AthenaPoolCnvSvc/AthenaPoolTopLevelTPConverter.h"
#include "MdtPrepDataContainer_tlp1.h"
#include "MuonEventTPCnv/MuonPrepRawData/MdtPrepDataContainerCnv_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/MdtPrepDataCnv_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawDataCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/ErrorMatrixCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPositionCnv_p1.h"
#include <iostream>
class MdtPrepDataContainerCnv_tlp1
: public AthenaPoolTopLevelTPConverter<Muon::MdtPrepDataContainerCnv_p1, Muon::MdtPrepDataContainer_tlp1 >
{
public:
MdtPrepDataContainerCnv_tlp1();
virtual ~MdtPrepDataContainerCnv_tlp1() {}
virtual void setPStorage( Muon::MdtPrepDataContainer_tlp1 *storage );
// return list of tokens to extending persistent objects
// it is stored in m_tokenList member of the Track persistent rep
virtual TPCnvTokenList_p1* getTokenListVar() { return &(getTLPersObject()->m_tokenList); }
protected:
MdtPrepDataCnv_p1 m_muonPrdCnv;
PrepRawDataCnv_p1 m_prepDataCnv;
LocalPositionCnv_p1 m_locPosCnv;
ErrorMatrixCnv_p1 m_errorMatCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MDTPREPDATACONTAINER_TLP1_H
#define MDTPREPDATACONTAINER_TLP1_H
//-----------------------------------------------------------------------------
// MuonPrepRawData
//-----------------------------------------------------------------------------
#include "MuonEventTPCnv/MuonPrepRawData/MuonPRD_Container_p1.h"
#include "MuonEventTPCnv/MuonPrepRawData/MdtPrepData_p1.h"
#include "TrkEventTPCnv/TrkPrepRawData/PrepRawData_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/HepSymMatrix_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/LocalPosition_p1.h"
// Token
#include "AthenaPoolUtilities/TPCnvTokenList_p1.h"
namespace Muon
{
class MdtPrepDataContainer_tlp1
{
public:
MdtPrepDataContainer_tlp1() {}
TPCnvTokenList_p1 m_tokenList;
// This is the basic info
std::vector< Muon::MuonPRD_Container_p1> m_pixDCCont;
std::vector< Muon::MdtPrepData_p1 > m_muonPrds;
// This are the base classes
std::vector< Trk::PrepRawData_p1> m_prepData;
// This is info held by the base class
std::vector< Trk::LocalPosition_p1> m_locPos;
std::vector< Trk::HepSymMatrix_p1> m_errorMat;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONEVENTTPCNV_CHAMBERT0SCNV_P1_H
#define MUONEVENTTPCNV_CHAMBERT0SCNV_P1_H
//-----------------------------------------------------------------------------
//
// file: ChamberT0sCnv_p1.h
//
//-----------------------------------------------------------------------------
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
#include "MuonChamberT0s/ChamberT0s.h"
#include "ChamberT0s_p1.h"
class MsgStream;
class ChamberT0sCnv_p1
: public T_AthenaPoolTPCnvBase< Muon::ChamberT0s, Muon::ChamberT0s_p1 >
{
public:
ChamberT0sCnv_p1() {}
void persToTrans( const Muon::ChamberT0s_p1 *persObj,
Muon::ChamberT0s *transObj,
MsgStream &log );
void transToPers( const Muon::ChamberT0s *transObj,
Muon::ChamberT0s_p1 *persObj,
MsgStream &log );
};
template<>
class T_TPCnv<Muon::ChamberT0s, Muon::ChamberT0s_p1>
: public ChamberT0sCnv_p1
{
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONEVENTTPCNV_CHAMBERT0S_P1_H
#define MUONEVENTTPCNV_CHAMBERT0S_P1_H
#include <map>
#include <vector>
namespace Muon
{
class ChamberT0s_p1
{
public:
ChamberT0s_p1() {}
std::vector< std::pair < unsigned int, float > > m_t0s;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACKCNV_P1_H
#define MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACKCNV_P1_H
//-----------------------------------------------------------------------------
//
// file: CompetingMuonClustersOnTrack_p1.h
//
//-----------------------------------------------------------------------------
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
#include "TrkEventTPCnv/TrkSurfaces/SurfaceCnv_p1.h"
#include "TrkEventTPCnv/TrkRIO_OnTrack/RIO_OnTrackCnv_p1.h"
#include "TrkEventTPCnv/TrkCompetingRIOsOnTrack/CompetingRIOsOnTrackCnv_p1.h"
#include "MuonCompetingRIOsOnTrack/CompetingMuonClustersOnTrack.h"
#include "MuonEventTPCnv/MuonCompetingRIOsOnTrack/CompetingMuonClustersOnTrack_p1.h"
class MsgStream;
class CompetingMuonClustersOnTrackCnv_p1
: public T_AthenaPoolTPPolyCnvBase< Trk::MeasurementBase,
Muon::CompetingMuonClustersOnTrack,
Muon::CompetingMuonClustersOnTrack_p1 >
{
public:
CompetingMuonClustersOnTrackCnv_p1() : m_cRotCnv(0), m_localParCnv(0), m_errorMxCnv(0) {}
virtual void persToTrans( const Muon::CompetingMuonClustersOnTrack_p1 *persObj,
Muon::CompetingMuonClustersOnTrack *transObj,
MsgStream &log );
virtual void transToPers( const Muon::CompetingMuonClustersOnTrack *transObj,
Muon::CompetingMuonClustersOnTrack_p1 *persObj,
MsgStream &log );
protected:
CompetingRIOsOnTrackCnv_p1* m_cRotCnv;
LocalParametersCnv_p1* m_localParCnv;
ErrorMatrixCnv_p1* m_errorMxCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACKCNV_P2_H
#define MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACKCNV_P2_H
//-----------------------------------------------------------------------------
//
// file: CompetingMuonClustersOnTrack_p1.h
//
//-----------------------------------------------------------------------------
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
#include "TrkEventTPCnv/TrkSurfaces/SurfaceCnv_p2.h"
#include "TrkEventTPCnv/TrkRIO_OnTrack/RIO_OnTrackCnv_p1.h"
#include "TrkEventTPCnv/TrkCompetingRIOsOnTrack/CompetingRIOsOnTrackCnv_p1.h"
#include "MuonCompetingRIOsOnTrack/CompetingMuonClustersOnTrack.h"
#include "MuonEventTPCnv/MuonCompetingRIOsOnTrack/CompetingMuonClustersOnTrack_p1.h"
#include "TrkSurfaces/Surface.h"
class MsgStream;
class CompetingMuonClustersOnTrackCnv_p2
: public T_AthenaPoolTPPolyCnvBase< Trk::MeasurementBase,
Muon::CompetingMuonClustersOnTrack,
Muon::CompetingMuonClustersOnTrack_p1 >
{
public:
CompetingMuonClustersOnTrackCnv_p2() : m_cRotCnv(0), m_localParCnv(0), m_errorMxCnv(0), m_surfCnv(0) {}
virtual void persToTrans( const Muon::CompetingMuonClustersOnTrack_p1 *persObj,
Muon::CompetingMuonClustersOnTrack *transObj,
MsgStream &log );
virtual void transToPers( const Muon::CompetingMuonClustersOnTrack *transObj,
Muon::CompetingMuonClustersOnTrack_p1 *persObj,
MsgStream &log );
protected:
CompetingRIOsOnTrackCnv_p1* m_cRotCnv;
LocalParametersCnv_p1* m_localParCnv;
ErrorMatrixCnv_p1* m_errorMxCnv;
ITPConverterFor<Trk::Surface>* m_surfCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACK_P1_H
#define MUONEVENTTPCNV_COMPETINGMUONCLUSTERSONTRACK_P1_H
//-----------------------------------------------------------------------------
//
// file: CompetingMuonClustersOnTrack_p1.h
//
//-----------------------------------------------------------------------------
#include "AthenaPoolUtilities/TPObjRef.h"
#include <vector>
namespace Muon
{
/** Version 1 of the persistent class representing the transient class Muon::MuonClusterOnTrack */
class CompetingMuonClustersOnTrack_p1
{
public:
CompetingMuonClustersOnTrack_p1() {}
/** link to base MuonClusterOnTrack_p1, inheriting from RIO_OnTrack_p1 */
TPObjRef m_competingROT;
std::vector< TPObjRef > m_containedChildRots;
TPObjRef m_associatedSurface;
TPObjRef m_parameters;
TPObjRef m_errorMatrix;
};
}
#endif // CSC_CLUSTER_ON_TRACK_P1_TRK_H
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCMCDATACNV_P1_H
#define CSCMCDATACNV_P1_H
#include "MuonSimData/CscSimData.h"
#include "CscMcData_p1.h"
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
class MsgStream;
class CscMcDataCnv_p1 : public T_AthenaPoolTPCnvBase<CscMcData, Muon::CscMcData_p1> {
public:
CscMcDataCnv_p1() {};
void persToTrans( const Muon::CscMcData_p1 * persObj, CscMcData * transObj, MsgStream & log);
void transToPers( const CscMcData * transObj, Muon::CscMcData_p1 * persObj, MsgStream & log);
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCMCDATA_P1_H
#define CSCMCDATA_P1_H
namespace Muon {
class CscMcData_p1 {
public:
CscMcData_p1() : m_energy(-9999.), m_ypos(-9999.), m_zpos(-9999.), m_charge(0.0) {};
friend class MuonMCDataCnv_p1;
float m_energy;
float m_ypos;
float m_zpos;
float m_charge;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCSIMDATACNV_P1_H
#define CSCSIMDATACNV_P1_H
#include "MuonSimData/CscSimData.h"
#include "CscSimData_p1.h"
#include "GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h"
#include "CscMcDataCnv_p1.h"
class MsgStream;
class CscSimDataCnv_p1 : public T_AthenaPoolTPCnvBase<CscSimData, Muon::CscSimData_p1> {
public:
CscSimDataCnv_p1() {};
void persToTrans( const Muon::CscSimData_p1 * persObj, CscSimData * transObj, MsgStream & log);
void transToPers( const CscSimData * transObj, Muon::CscSimData_p1 * persObj, MsgStream & log);
private:
HepMcParticleLinkCnv_p1 m_mcpartlinkCnv;
CscMcDataCnv_p1 m_mcdataCnv;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CSCSIMDATACOLLECTIONCNV_P1_H
#define CSCSIMDATACOLLECTIONCNV_P1_H
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
#include "MuonSimData/CscSimDataCollection.h"
#include "CscSimDataCollection_p1.h"
#include "MuonEventTPCnv/MuonDigitContainer/CscSimDataCnv_p1.h"
class CscSimDataCollectionCnv_p1 : public T_AthenaPoolTPCnvBase <CscSimDataCollection, Muon::CscSimDataCollection_p1> {
public: