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

empty files

parent 4d9eb28a
No related branches found
No related tags found
No related merge requests found
Pipeline #3117442 failed
...@@ -9,8 +9,7 @@ atlas_subdir( TrackerEfficiencyExample ) ...@@ -9,8 +9,7 @@ atlas_subdir( TrackerEfficiencyExample )
atlas_add_component( TrackerEfficiencyExample atlas_add_component( TrackerEfficiencyExample
src/*.cxx src/*.h src/*.cxx src/*.h
src/components/*.cxx src/components/*.cxx
LINK_LIBRARIES AthenaBaseComps xAODFaserWaveform WaveRawEvent LINK_LIBRARIES AthenaBaseComps xAODFaserWaveform WaveRawEvent GaudiKernel
GaudiKernel
AthViews StoreGateLib SGtests ) AthViews StoreGateLib SGtests )
#atlas_install_headers( TrackerPrepRawDataFormation ) #atlas_install_headers( TrackerPrepRawDataFormation )
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @date 2 September 2021 * @date 2 September 2021
*/ */
#include "TrackerEfficiencyAlg.h" #include "TrackerEfficiencyAlg.h"
#include "Identifier/Identifier.h"
#include "StoreGate/ReadHandle.h" #include "StoreGate/ReadHandle.h"
#include <TH1F.h> #include <TH1F.h>
#include <TTree.h> #include <TTree.h>
...@@ -29,25 +29,12 @@ TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator* ...@@ -29,25 +29,12 @@ TrackerEfficiencyAlg::TrackerEfficiencyAlg(const std::string& name, ISvcLocator*
// Initialize method: // Initialize method:
StatusCode TrackerEfficiencyAlg::initialize() { StatusCode TrackerEfficiencyAlg::initialize() {
ATH_MSG_INFO("TrackerEfficiencyAlg::initialize()");
ATH_CHECK( m_CaloWaveformContainer.initialize() );
// Tree
m_tree = new TTree("TrackerTree","PH_Varname");
//hist test
m_hist = new TH1D("Stations", "Stations hit", 4, 0, 3);
ATH_CHECK(histSvc()->regHist("/HIST/myhist", m_hist));
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
StatusCode TrackerEfficiencyAlg::execute(const EventContext& ctx) const StatusCode TrackerEfficiencyAlg::execute(const EventContext& ctx) const
{ {
//SG::ReadHandle<RawWaveformContainer> caloHandle(m_CaloWaveformContainer, ctx);
//ATH_MSG_INFO("Found ReadHandle for CaloWaveforms");
//ATH_MSG_INFO(*caloHandle);
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
......
...@@ -8,26 +8,18 @@ ...@@ -8,26 +8,18 @@
* @date 2 September 2021 * @date 2 September 2021
*/ */
#ifndef FASERTrackerEfficiency_TrackerEfficiencyALG_H #ifndef TRACKEREFFICIENCYALG_H
#define FASERTrackerEfficiency_TrackerEfficiencyALG_H #define TRACKEREFFICIENCYALG_H
// Base class // Base class
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "AthenaBaseComps/AthHistogramming.h"
//Gaudi
#include "GaudiKernel/ServiceHandle.h"
#include "GaudiKernel/ToolHandle.h"
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
//STL #include "TrackerIdentifier/FaserSCT_ID.h"
#include <map>
#include <string> #include <string>
#include <atomic>
#include "TTree.h"
#include "TFile.h"
//RDO
#include <TH1.h>
#include <math.h>
#include <TProfile.h>
//Waveform //Waveform
//#include "xAODFaserWaveform/WaveformHitContainer.h" //#include "xAODFaserWaveform/WaveformHitContainer.h"
...@@ -35,9 +27,7 @@ ...@@ -35,9 +27,7 @@
class FaserSCT_ID; class FaserSCT_ID;
class ISvcLocator;
class StatusCode; class StatusCode;
class TH1;
class TTree; class TTree;
...@@ -59,29 +49,12 @@ class TrackerEfficiencyAlg : public AthReentrantAlgorithm, AthHistogramming ...@@ -59,29 +49,12 @@ class TrackerEfficiencyAlg : public AthReentrantAlgorithm, AthHistogramming
const ServiceHandle<ITHistSvc>& histSvc() const; const ServiceHandle<ITHistSvc>& histSvc() const;
private: private:
SG::ReadHandleKey<RawWaveformContainer> m_CaloWaveformContainer int a=0;
{ this, "CaloWaveformContainerKey", "CaloWaveforms", "ReadHandleKey for CaloWaveforms Container"};
//SG::ReadHandleKey<Waveform> m_WaveformHitContainer
//{ this, "CaloWaveformContainerKey", "CaloWaveforms", "ReadHandleKey for CaloWaveforms Container"};
const FaserSCT_ID* m_idHelper;
ServiceHandle<ITHistSvc> m_histSvc;
mutable TTree* m_tree;
//RDO
TH1* m_hist; // Example histogram
}; };
// For the THistSvc
inline const ServiceHandle<ITHistSvc>& TrackerEfficiencyAlg::histSvc() const
{
return m_histSvc;
}
#endif // FASERTrackerEfficiency_TrackerEfficiencyLG_H #endif // TRACKEREFFICIENCYALG_H
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