Skip to content
Snippets Groups Projects
Commit 750605be authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (TrigT1RPCsteering-00-01-59)

parent f5f4f605
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: TrigT1RPCsteering
################################################################################
# Declare the package name:
atlas_subdir( TrigT1RPCsteering )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
Control/StoreGate
DetectorDescription/Identifier
GaudiKernel
MuonSpectrometer/MuonCablings/RPCcablingInterface
MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry
Trigger/TrigT1/TrigT1RPClogic
PRIVATE
Generators/GeneratorObjects
MuonSpectrometer/MuonDigitContainer
MuonSpectrometer/MuonIdHelpers
Trigger/TrigT1/TrigT1Interfaces
Trigger/TrigT1/TrigT1RPChardware )
# External dependencies:
find_package( HepMC )
# Component(s) in the package:
atlas_add_component( TrigT1RPCsteering
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${HEPMC_INCLUDE_DIRS}
LINK_LIBRARIES ${HEPMC_LIBRARIES} AthenaBaseComps StoreGateLib SGtests Identifier GaudiKernel RPCcablingInterfaceLib MuonReadoutGeometry TrigT1RPClogicLib GeneratorObjects MuonDigitContainer MuonIdHelpersLib TrigT1Interfaces TrigT1RPChardwareLib RPChardware )
# Install files from the package:
atlas_install_headers( TrigT1RPCsteering )
atlas_install_python_modules( python/*.py )
atlas_install_joboptions( share/*.txt share/*.py )
......@@ -72,6 +72,9 @@ private:
BooleanProperty m_data_detail; // flag to printout detailed INFO on
// processed data
IntegerProperty m_firstBC_to_MUCTPI; // First BC to be sent to muctpi, wrt to BC0, e.g. -1 meanst the BC before the trigger Bc
IntegerProperty m_lastBC_to_MUCTPI; // First BC to be sent to muctpi, wrt to BC0, e.g. -1 meanst the BC before the trigger Bc
StatusCode fill_RPCdata(RPCsimuData&);
private:
......
......@@ -79,6 +79,9 @@ TrigT1RPC::TrigT1RPC(const std::string& name, ISvcLocator* pSvcLocator) :
declareProperty ( "RXrostructdebug", m_rx_rostruct_debug=0 );
declareProperty ( "SLrostructdebug", m_sl_rostruct_debug=0 );
declareProperty ( "firstBC_to_MUCTPI", m_firstBC_to_MUCTPI=-1 );
declareProperty ( "lastBC_to_MUCTPI", m_lastBC_to_MUCTPI=1 );
m_MuonMgr=0;
m_rpcId=0;
}
......@@ -176,20 +179,23 @@ StatusCode TrigT1RPC::execute() {
SectorLogic* logic = (*SLit)->give_SectorL(); //
int sector = (*SLit)->sector(); //
int subsystem = (sector > 31)? 1 : 0; //
int logic_sector = sector%32; //
unsigned int data_word = logic->outputToMuCTPI(); //
//
ATH_MSG_DEBUG( //
"Input to MuCTPI: side=" << subsystem //
<< ", SL= " << logic_sector //
<< ", RoI=" << TriggerRPC::ROI1(data_word) //
<< ", Th=" << TriggerRPC::PT1(data_word) //
<< ", data word " << MSG::hex << data_word //
<< MSG::dec ); //
//
ctpiInRPC->setSectorLogicData(data_word,0,subsystem,logic_sector);//
int logic_sector = sector%32;//
for (int dbc=m_firstBC_to_MUCTPI; dbc<=m_lastBC_to_MUCTPI; dbc++){
unsigned int data_word = logic->outputToMuCTPI(dbc);
ATH_MSG_DEBUG( //
"Input to MuCTPI: side=" << subsystem //
<< ", SL= " << logic_sector //
<< ", BC= " << dbc
<< ", RoI=" << TriggerRPC::ROI1(data_word) //
<< ", Th=" << TriggerRPC::PT1(data_word) //
<< ", data word " << MSG::hex << data_word //
<< MSG::dec ); //
ctpiInRPC->setSectorLogicData(data_word,0,subsystem,logic_sector,dbc);
}
//
++SLit; //
} //
......
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