Skip to content
Snippets Groups Projects
Commit 9584b0c1 authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'add_TGCDigit' into 'master'

MuonPRDTest: Add DoTGCDigit option to NSWPRDValAlg

See merge request atlas/athena!44130
parents 7e567c2c 48281649
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ NSWPRDValAlg::NSWPRDValAlg(const std::string& name, ISvcLocator* pSvcLocator) : ...@@ -50,6 +50,7 @@ NSWPRDValAlg::NSWPRDValAlg(const std::string& name, ISvcLocator* pSvcLocator) :
declareProperty("RPC_DigitContainerName", m_RPC_DigitContainerName="RPC_DIGITS"); declareProperty("RPC_DigitContainerName", m_RPC_DigitContainerName="RPC_DIGITS");
declareProperty("CSC_SimContainerName", m_CSC_SimContainerName="CSC_Hits"); declareProperty("CSC_SimContainerName", m_CSC_SimContainerName="CSC_Hits");
declareProperty("TGC_SimContainerName", m_TGC_SimContainerName="TGC_Hits"); declareProperty("TGC_SimContainerName", m_TGC_SimContainerName="TGC_Hits");
declareProperty("TGC_DigitContainerName", m_TGC_DigitContainerName="TGC_DIGITS");
declareProperty("TGC_RDOContainerName", m_TGC_RDOContainerName="TGCRDO"); declareProperty("TGC_RDOContainerName", m_TGC_RDOContainerName="TGCRDO");
// Input properties: do EDM objects // Input properties: do EDM objects
...@@ -75,6 +76,7 @@ NSWPRDValAlg::NSWPRDValAlg(const std::string& name, ISvcLocator* pSvcLocator) : ...@@ -75,6 +76,7 @@ NSWPRDValAlg::NSWPRDValAlg(const std::string& name, ISvcLocator* pSvcLocator) :
declareProperty("doRPCDigit", m_doRPCDigit=false); declareProperty("doRPCDigit", m_doRPCDigit=false);
declareProperty("doCSCHit", m_doCSCHit=false); declareProperty("doCSCHit", m_doCSCHit=false);
declareProperty("doTGCHit", m_doTGCHit=false); declareProperty("doTGCHit", m_doTGCHit=false);
declareProperty("doTGCDigit", m_doTGCDigit=false);
declareProperty("doTGCRDO", m_doTGCRDO=false); declareProperty("doTGCRDO", m_doTGCRDO=false);
// Input properties: NSW Maching algorithm // Input properties: NSW Maching algorithm
...@@ -247,6 +249,12 @@ StatusCode NSWPRDValAlg::initialize() { ...@@ -247,6 +249,12 @@ StatusCode NSWPRDValAlg::initialize() {
ATH_CHECK( m_TGCSimHitVar->initializeVariables() ); ATH_CHECK( m_TGCSimHitVar->initializeVariables() );
} }
if (m_doTGCDigit){
m_TgcDigitVar = std::make_unique<TGCDigitVariables>(&(*(evtStore())), m_muonDetMgrDS,
&m_idHelperSvc->tgcIdHelper(), m_tree, m_TGC_DigitContainerName, msgLevel());
ATH_CHECK( m_TgcDigitVar->initializeVariables() );
}
if (m_retrieveTgcCabling) { if (m_retrieveTgcCabling) {
const ITGCcablingServerSvc* TgcCabGet = nullptr; const ITGCcablingServerSvc* TgcCabGet = nullptr;
ATH_CHECK(service("TGCcablingServerSvc", TgcCabGet, true)); ATH_CHECK(service("TGCcablingServerSvc", TgcCabGet, true));
...@@ -338,6 +346,8 @@ StatusCode NSWPRDValAlg::execute() ...@@ -338,6 +346,8 @@ StatusCode NSWPRDValAlg::execute()
if (m_doTGCHit) ATH_CHECK( m_TGCSimHitVar->fillVariables(muonDetMgr) ); if (m_doTGCHit) ATH_CHECK( m_TGCSimHitVar->fillVariables(muonDetMgr) );
if (m_doTGCDigit) ATH_CHECK( m_TgcDigitVar->fillVariables(muonDetMgr) );
if (m_doTGCRDO) ATH_CHECK( m_TgcRdoVar->fillVariables(muonDetMgr) ); if (m_doTGCRDO) ATH_CHECK( m_TgcRdoVar->fillVariables(muonDetMgr) );
m_tree->Fill(); m_tree->Fill();
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "CSCSimHitVariables.h" #include "CSCSimHitVariables.h"
#include "CSCDigitVariables.h" #include "CSCDigitVariables.h"
#include "TGCSimHitVariables.h" #include "TGCSimHitVariables.h"
#include "TGCDigitVariables.h"
#include "TGCRDOVariables.h" #include "TGCRDOVariables.h"
#include "sTGCSimHitVariables.h" #include "sTGCSimHitVariables.h"
#include "sTGCSDOVariables.h" #include "sTGCSDOVariables.h"
...@@ -80,6 +81,7 @@ class NSWPRDValAlg:public AthAlgorithm ...@@ -80,6 +81,7 @@ class NSWPRDValAlg:public AthAlgorithm
std::unique_ptr<RpcDigitVariables> m_RPCDigitVar; std::unique_ptr<RpcDigitVariables> m_RPCDigitVar;
std::unique_ptr<CSCSimHitVariables> m_CSCSimHitVar; std::unique_ptr<CSCSimHitVariables> m_CSCSimHitVar;
std::unique_ptr<TGCSimHitVariables> m_TGCSimHitVar; std::unique_ptr<TGCSimHitVariables> m_TGCSimHitVar;
std::unique_ptr<TGCDigitVariables> m_TgcDigitVar;
std::unique_ptr<TGCRDOVariables> m_TgcRdoVar; std::unique_ptr<TGCRDOVariables> m_TgcRdoVar;
TTree* m_tree; // still needed in NSWMatchingAlg during finalize TTree* m_tree; // still needed in NSWMatchingAlg during finalize
...@@ -120,7 +122,8 @@ class NSWPRDValAlg:public AthAlgorithm ...@@ -120,7 +122,8 @@ class NSWPRDValAlg:public AthAlgorithm
BooleanProperty m_doRPCSDO; // switch on the output of the RPC SDO BooleanProperty m_doRPCSDO; // switch on the output of the RPC SDO
BooleanProperty m_doRPCDigit; // switch on the output of the RPC digitization BooleanProperty m_doRPCDigit; // switch on the output of the RPC digitization
BooleanProperty m_doTGCHit; // switch on the output of the TGC simulated hits BooleanProperty m_doTGCHit; // switch on the output of the TGC simulated hits
BooleanProperty m_doTGCRDO; // switch on the output of the TGC digitization BooleanProperty m_doTGCDigit; // switch on the output of the TGC digitization
BooleanProperty m_doTGCRDO; // switch on the output of the TGC RDO
unsigned int m_runNumber; unsigned int m_runNumber;
unsigned int m_eventNumber; unsigned int m_eventNumber;
...@@ -146,6 +149,7 @@ class NSWPRDValAlg:public AthAlgorithm ...@@ -146,6 +149,7 @@ class NSWPRDValAlg:public AthAlgorithm
std::string m_RPC_DigitContainerName; std::string m_RPC_DigitContainerName;
std::string m_CSC_SimContainerName; std::string m_CSC_SimContainerName;
std::string m_TGC_SimContainerName; std::string m_TGC_SimContainerName;
std::string m_TGC_DigitContainerName;
std::string m_TGC_RDOContainerName; std::string m_TGC_RDOContainerName;
// Matching algorithm // Matching algorithm
......
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