Skip to content
Snippets Groups Projects
Commit 8a499252 authored by Savannah Rose Shively's avatar Savannah Rose Shively
Browse files

functional c-code

parent 1a47cc1c
No related branches found
No related tags found
No related merge requests found
Pipeline #3248737 failed
...@@ -23,3 +23,5 @@ tmp.* ...@@ -23,3 +23,5 @@ tmp.*
.idea/** .idea/**
cmake-debug-build/** cmake-debug-build/**
.vscode/** .vscode/**
.vscode/c_cpp_properties.json
c_cpp_properties.json
...@@ -12,7 +12,8 @@ atlas_add_component( TrackerEfficiencyExample ...@@ -12,7 +12,8 @@ atlas_add_component( TrackerEfficiencyExample
src/components/*.cxx src/components/*.cxx
src/components/TrackerEfficiencyExample_entries.cxx src/components/TrackerEfficiencyExample_entries.cxx
LINK_LIBRARIES AthenaBaseComps TrackerPrepRawData xAODFaserWaveform WaveRawEvent GaudiKernel LINK_LIBRARIES AthenaBaseComps TrackerPrepRawData xAODFaserWaveform WaveRawEvent GaudiKernel
AthViews StoreGateLib SGtests GeneratorObjects ) AthViews StoreGateLib SGtests GeneratorObjects
TrkTrack TrackerPrepRawData TrkRIO_OnTrack TrackerRIO_OnTrack)
#atlas_install_headers( TrackerPrepRawDataFormation ) #atlas_install_headers( TrackerPrepRawDataFormation )
atlas_install_python_modules( python/*.py ) atlas_install_python_modules( python/*.py )
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "TrackerEfficiencyAlg.h" #include "TrackerEfficiencyAlg.h"
#include "Identifier/Identifier.h" #include "Identifier/Identifier.h"
#include "StoreGate/ReadHandle.h" #include "StoreGate/ReadHandle.h"
#include "StoreGate/StoreGateSvc.h"
#include "TrackerPrepRawData/TrackerClusterCollection.h" #include "TrackerPrepRawData/TrackerClusterCollection.h"
#include <TH1F.h> #include <TH1F.h>
#include <TTree.h> #include <TTree.h>
...@@ -17,9 +18,10 @@ ...@@ -17,9 +18,10 @@
// Constructor with parameters: // Constructor with parameters:
TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator* pSvcLocator) : TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator* pSvcLocator) :
AthReentrantAlgorithm(name, pSvcLocator){} AthReentrantAlgorithm(name, pSvcLocator){ m_hist = nullptr; }
//AthHistogramming( name ), //AthHistogramming( name ),
//m_idHelper{nullptr}, //m_idHelper{nullptr},
//m_histSvc ( "THistSvc/THistSvc", name ){} //m_histSvc ( "THistSvc/THistSvc", name ){}
...@@ -28,13 +30,19 @@ TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator* ...@@ -28,13 +30,19 @@ TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator*
// Initialize method: // Initialize method:
StatusCode TrackerEfficiencyAlg::initialize() { StatusCode TrackerEfficiencyAlg::initialize() {
m_hist = new TH1D("GroupSize", "RDO Group Size", 8, 0, 8);
// ATH_CHECK(histSvc()->regHist("/HIST/myhist", m_hist));
ATH_CHECK( m_clusterfit.initialize() );
ATH_MSG_INFO( "Using tracker clusterfit collection with key " << m_clusterfit.key());
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
StatusCode TrackerEfficiencyAlg::execute(const EventContext& ctx) const StatusCode TrackerEfficiencyAlg::execute(const EventContext& ctx) const
{ {
//SG::ReadHandle<auto> h_clusterEvents(m_clusterfit);
//ATH_MSG_INFO("Read +trackContainer with " << h_clusterEvents->size() << " events");
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
......
...@@ -16,10 +16,14 @@ ...@@ -16,10 +16,14 @@
#include "AthenaBaseComps/AthReentrantAlgorithm.h" #include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "StoreGate/ReadHandleKey.h" #include "StoreGate/ReadHandleKey.h"
#include "TrackerIdentifier/FaserSCT_ID.h" #include "TrackerIdentifier/FaserSCT_ID.h"
#include "TrkTrack/TrackCollection.h"
#include <string> #include <string>
#include <atomic> #include <atomic>
#include "TTree.h" #include "TTree.h"
#include "TFile.h" #include "TFile.h"
#include <TH1.h>
#include <TProfile.h>
#include "GaudiKernel/ServiceHandle.h" #include "GaudiKernel/ServiceHandle.h"
#include "GaudiKernel/ToolHandle.h" #include "GaudiKernel/ToolHandle.h"
...@@ -54,7 +58,9 @@ class TrackerEfficiencyAlg : public AthReentrantAlgorithm ...@@ -54,7 +58,9 @@ class TrackerEfficiencyAlg : public AthReentrantAlgorithm
//const ServiceHandle<ITHistSvc>& histSvc() const; //const ServiceHandle<ITHistSvc>& histSvc() const;
private: private:
int m_a=0; TH1* m_hist;
SG::ReadHandleKey<TrackCollection> m_clusterfit { this, "TrackCollection", "ClusterFit" };
}; };
......
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