generated from key4hep/k4-project-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4385e5
commit 7936715
Showing
3 changed files
with
99 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#pragma once | ||
|
||
// GAUDI | ||
#include "Gaudi/Property.h" | ||
// #include "GaudiAlg/GaudiAlgorithm.h" | ||
#include "Gaudi/Algorithm.h" | ||
// K4FWCORE | ||
#include "k4FWCore/DataHandle.h" | ||
|
||
// EDM4HEP | ||
#if __has_include("edm4hep/TrackerHit3DCollection.h") | ||
#include "edm4hep/TrackerHit3DCollection.h" | ||
#else | ||
#include "edm4hep/TrackerHit3D.h" | ||
#include "extension/TrackerHit3D.h" | ||
namespace edm4hep { | ||
using TrackerHit3DCollection = edm4hep::TrackerHitCollection; | ||
} // namespace edm4hep | ||
#endif | ||
|
||
#include "extension/TrackCollection.h" | ||
#include "extension/TrackCollection.h" | ||
|
||
// GENFIT | ||
//#include "WireMeasurement.h" | ||
|
||
/** @class Evaluation_efficiency | ||
* | ||
* | ||
* | ||
* @author Andrea De Vita, Maria Dolores Garcia, Brieuc Francois | ||
* @date 2024-06 | ||
* | ||
*/ | ||
|
||
class Evaluation_efficiency : public Gaudi::Algorithm { | ||
public: | ||
explicit Evaluation_efficiency(const std::string&, ISvcLocator*); | ||
virtual ~Evaluation_efficiency(); | ||
/** Initialize. | ||
* @return status code | ||
*/ | ||
virtual StatusCode initialize() final; | ||
/** Execute. | ||
* @return status code | ||
*/ | ||
virtual StatusCode execute(const EventContext&) const final; | ||
/** Finalize. | ||
* @return status code | ||
*/ | ||
virtual StatusCode finalize() final; | ||
|
||
private: | ||
|
||
// Output track collection name | ||
mutable DataHandle<extension::TrackCollection> m_input_tracks{"inputTracks", Gaudi::DataHandle::Writer, this}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "Evaluation_efficiency.h" | ||
#include <iostream> | ||
#include <sstream> | ||
#include <vector> | ||
|
||
|
||
|
||
|
||
DECLARE_COMPONENT(Evaluation_efficiency) | ||
|
||
GenFitter::Evaluation_efficiency(const std::string& aName, ISvcLocator* aSvcLoc) : Gaudi::Algorithm(aName, aSvcLoc) { | ||
declareProperty("inputTracks", m_input_tracks, "Input track collection name"); | ||
} | ||
|
||
Evaluation_efficiency::~Evaluation_efficiency() {} | ||
|
||
StatusCode Evaluation_efficiency::initialize() { | ||
return StatusCode::SUCCESS;} | ||
|
||
|
||
StatusCode Evaluation_efficiency::execute(const EventContext&) const { | ||
// Get the input collection with tracker hits | ||
|
||
|
||
return StatusCode::SUCCESS; | ||
} | ||
|
||
StatusCode GenFitter::finalize() { return StatusCode::SUCCESS; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters