Skip to content
Snippets Groups Projects
Commit 24dc18db authored by Niels Van Eldik's avatar Niels Van Eldik Committed by Graeme Stewart
Browse files

move to new field service (EventTagRawAlgs-00-01-04)

parent 716ab262
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/*
Class to write useful tag bits for cosmic ray commissioning
(like if there is an ID track in this event...)
Jamie Boyd 21 Jan 2008 (Jamie.Boyd@cern.ch)
*/
#ifndef COMMISSIONREC_RAWINFOSUMMARYFORTAGWRITER
#define COMMISSIONREC_RAWINFOSUMMARYFORTAGWRITER
#include "GaudiKernel/Algorithm.h"
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/ToolHandle.h"
#include "AthenaKernel/IOVSvcDefs.h"
#include "GaudiKernel/ServiceHandle.h"
#include "MagFieldInterfaces/IMagFieldSvc.h"
#include <string>
#include <vector>
#include <map>
#include "TrkSegment/SegmentCollection.h"
class TileTBID;
class StoreGateSvc;
class MdtIdHelper;
class IMagFieldAthenaSvc;
namespace Trk
{
class Track;
}
namespace coral
{
class AttributeListSpecification;
}
namespace MuonCalib {
class IIdToFixedIdTool;
}
namespace Muon {
class MuonIdHelperTool;
}
class RawInfoSummaryForTagWriter : public AthAlgorithm
{
public:
RawInfoSummaryForTagWriter(const std::string& name, ISvcLocator* pSvcLocator);
~RawInfoSummaryForTagWriter();
StatusCode initialize();
StatusCode execute();
StatusCode finalize();
private:
StatusCode magneticFieldInit(IOVSVC_CALLBACK_ARGS);
StoreGateSvc* m_storeGate;
/** member variables for algorithm properties: */
std::string m_sgKeyIDtrack; //!< Name of the Track Collection to read in
std::string m_sgKeyTileMuonFitterNew; //!< name of the ComTime object in StoreGate
std::string m_TRT_DriftCircleName; //!< name of the TRT DC key
bool m_doTileMuonFitter; //!< do TileMuonFitter tag
bool m_doClusterSums;//!< turn on/off the cluster sum in the tag (as it crashes if Tile is off)
std::string m_mbtsContainerName;
float m_mbts_threshold;
std::string m_vertexCollectionName;
const TileTBID* m_tileTBID;
coral::AttributeListSpecification* m_attribListSpec;
ServiceHandle<MagField::IMagFieldSvc> m_fieldServiceHandle;
};
#endif
package EventTagRawAlgs
author Jamie Boyd <Jamie.Boyd@cern.ch>
use AtlasPolicy AtlasPolicy-*
use AthenaKernel AthenaKernel-* Control
use AthenaBaseComps AthenaBaseComps-* Control
use GaudiInterface GaudiInterface-* External
use TrkSegment TrkSegment-* Tracking/TrkEvent
use MagFieldInterfaces MagFieldInterfaces-* MagneticField
private
use StoreGate StoreGate-* Control
use AtlasCLHEP AtlasCLHEP-* External
use CaloEvent CaloEvent-* Calorimeter
use CommissionEvent CommissionEvent-* Commission
use InDetBCM_RawData InDetBCM_RawData-* InnerDetector/InDetRawEvent
use InDetPrepRawData InDetPrepRawData-* InnerDetector/InDetRecEvent
use LArRecEvent LArRecEvent-* LArCalorimeter
use Particle Particle-* Reconstruction
use TagEvent TagEvent-* PhysicsAnalysis/EventTag
use TileEvent TileEvent-* TileCalorimeter
use TileIdentifier TileIdentifier-* TileCalorimeter
use TrkMeasurementBase TrkMeasurementBase-* Tracking/TrkEvent
use TrkSpacePoint TrkSpacePoint-* Tracking/TrkEvent
use TrkTrack TrkTrack-* Tracking/TrkEvent
use VxVertex VxVertex-* Tracking/TrkEvent
library EventTagRawAlgs *.cxx -s=components *.cxx
apply_pattern component_library
apply_pattern declare_joboptions files="*.py"
#-----------------------------------------------------------------------------
# TAG
#-----------------------------------------------------------------------------
# for LAr EC timing stuff...
if rec.doLArg():
include("LArCellRec/LArCollisionTime_jobOptions.py")
#Configure Algorithm to fill the tags
from EventTagRawAlgs.EventTagRawAlgsConf import *
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
risftwriter = RawInfoSummaryForTagWriter()
if rec.doInDet():
risftwriter.IDTrackKey = InDetKeys.Tracks()
#MBTS threshold
risftwriter.MBTS_Threshold = (60.0/222.0)
topSequence += risftwriter
# store the object in the ESD
from RecExConfig.ObjKeyStore import objKeyStore
objKeyStore.addStreamESD( "RawInfoSummaryForTag", "RawInfoSummaryForTag" )
objKeyStore.addStreamAOD( "RawInfoSummaryForTag", "RawInfoSummaryForTag" )
This diff is collapsed.
#include "GaudiKernel/DeclareFactoryEntries.h"
#include "EventTagRawAlgs/RawInfoSummaryForTagWriter.h"
DECLARE_ALGORITHM_FACTORY( RawInfoSummaryForTagWriter )
DECLARE_FACTORY_ENTRIES( EventTagRawAlgs ) {
DECLARE_ALGORITHM( RawInfoSummaryForTagWriter )
}
#include "GaudiKernel/LoadFactoryEntries.h"
LOAD_FACTORY_ENTRIES(EventTagRawAlgs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment