Skip to content
Snippets Groups Projects
Forked from Dan Guest / athena
24717 commits behind, 4851 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
InDetRawDataFakeWriter.cxx 11.77 KiB
/*
  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/

/**
 * @file InDetRawDataFakeWriter.cxx
 *
 * @brief Test Algorithm for POOL I/O, writes InDetRawData to
 * transient store.
 *
 * @author RD Schaffer <R.D.Schaffer@cern.ch>
 *
 * $Id: InDetRawDataFakeWriter.cxx,v 1.14 2008-06-20 16:41:09 schaffer Exp $
 *
 */

// Silicon trackers includes
#include "InDetRawDataFakeWriter.h"

#include "AthenaPoolTestData/PixelRDOElemLinkVec.h"


//InDetRawData includes
#include "InDetRawData/PixelRDO_Collection.h"
#include "InDetRawData/SCT_RDO_Collection.h"
#include "InDetRawData/TRT_RDO_Collection.h"

//#include "InDetRawData/InDetRawDataCLASS_DEF.h"

// Id includes
#include "InDetIdentifier/PixelID.h"
#include "InDetIdentifier/SCT_ID.h"
#include "InDetIdentifier/TRT_ID.h"

// test includes
#include "InDetRawDataFakeCreator.h"


#include <map>

// Constructor with parameters:
InDetRawDataFakeWriter::InDetRawDataFakeWriter(const std::string &name, 
                                       ISvcLocator *pSvcLocator) :
    AthAlgorithm(name,pSvcLocator),
    m_pixCont(0),
    m_sctCont(0),
    m_trtCont(0),
    m_pixelId(0),
    m_sctId(0),
    m_trtId(0)
{}

// Initialize method:
StatusCode InDetRawDataFakeWriter::initialize()
{
    ATH_MSG_INFO("InDetRawDataFakeWriter::initialize()" );

    const DataHandle<PixelID> pixel_id;
    ATH_CHECK( detStore()->retrieve(pixel_id, "PixelID") );
    m_pixelId = pixel_id;

    const DataHandle<SCT_ID> sct_id;
    ATH_CHECK( detStore()->retrieve(sct_id, "SCT_ID") );
    m_sctId = sct_id;

    const DataHandle<TRT_ID> trt_id;
    ATH_CHECK( detStore()->retrieve(trt_id, "TRT_ID") );
    m_trtId = trt_id;

    // create the IdentifiableContainers to contain the rdo collections