Skip to content

Commit

Permalink
Rename JFactoryPodioTFixed, strip out datamodel_glue
Browse files Browse the repository at this point in the history
This means that we won't need to modify 100+ files again
  • Loading branch information
nathanwbrei committed Apr 14, 2023
1 parent 766b621 commit 9fa09ff
Show file tree
Hide file tree
Showing 98 changed files with 221 additions and 315 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@

#include <fmt/core.h>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <edm4hep/SimTrackerHit.h>

#include "algorithms/digi/RawTrackerHit.h"

template <typename InputT, typename OutputT>
class SiliconTrackerDigi_factoryT : public JFactoryPodioTFixed<OutputT> {
class SiliconTrackerDigi_factoryT : public eicrecon::JFactoryPodioT<OutputT> {

public:
SiliconTrackerDigi_factoryT() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

#include <fmt/core.h>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <JANA/JEvent.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <edm4hep/SimTrackerHit.h>
#include <algorithms/interfaces/ICollectionProducer.h>


template <typename OutputT>
class JFactoryT_SimTrackerHitsCollector : public JFactoryPodioTFixed<OutputT>, eicrecon::ICollectionProducer {
class JFactoryT_SimTrackerHitsCollector : public eicrecon::JFactoryPodioT<OutputT>, eicrecon::ICollectionProducer {

public:
JFactoryT_SimTrackerHitsCollector() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

#include <fmt/core.h>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <edm4hep/TrackerHit.h>



template <typename OutputType>
class JFactoryT_TrackerHitReconstruction : public JFactoryPodioTFixed<OutputType> {
class JFactoryT_TrackerHitReconstruction : public eicrecon::JFactoryPodioT<OutputType> {

public:
JFactoryT_TrackerHitReconstruction() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@

#include <fmt/core.h>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <edm4hep/SimTrackerHit.h>

#include "algorithms/digi/RawTrackerHit.h"
#include "SimTrackerHitDigi.h"

template <typename InputT, typename OutputT>
class JFactoryT_SiliconTrackerDigi : public JFactoryPodioTFixed<OutputT>, SimTrackerHitDigi {
class JFactoryT_SiliconTrackerDigi : public eicrecon::JFactoryPodioT<OutputT>, SimTrackerHitDigi {

public:
JFactoryT_SiliconTrackerDigi() {
Expand Down
5 changes: 2 additions & 3 deletions src/detectors/B0ECAL/CalorimeterHit_factory_B0ECalRecHits.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
#pragma once


#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <algorithms/calorimetry/CalorimeterHitReco.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class CalorimeterHit_factory_B0ECalRecHits : public JFactoryPodioTFixed<edm4eic::CalorimeterHit>, CalorimeterHitReco {
class CalorimeterHit_factory_B0ECalRecHits : public eicrecon::JFactoryPodioT<edm4eic::CalorimeterHit>, CalorimeterHitReco {

public:
//------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions src/detectors/B0ECAL/Cluster_factory_B0ECalClusters.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterRecoCoG.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_B0ECalClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterRecoCoG {
class Cluster_factory_B0ECalClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterRecoCoG {

public:
//------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions src/detectors/B0ECAL/Cluster_factory_B0ECalMergedClusters.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterMerger.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_B0ECalMergedClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterMerger {
class Cluster_factory_B0ECalMergedClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterMerger {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterIslandCluster.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class ProtoCluster_factory_B0ECalIslandProtoClusters : public JFactoryPodioTFixed<edm4eic::ProtoCluster>, CalorimeterIslandCluster {
class ProtoCluster_factory_B0ECalIslandProtoClusters : public eicrecon::JFactoryPodioT<edm4eic::ProtoCluster>, CalorimeterIslandCluster {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterTruthClustering.h>



class ProtoCluster_factory_B0ECalTruthProtoClusters : public JFactoryPodioTFixed<edm4eic::ProtoCluster>, CalorimeterTruthClustering {
class ProtoCluster_factory_B0ECalTruthProtoClusters : public eicrecon::JFactoryPodioT<edm4eic::ProtoCluster>, CalorimeterTruthClustering {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include <random>

#include <JANA/JEvent.h>
#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterHitDigi.h>
#include <edm4hep/SimCalorimeterHit.h>
Expand All @@ -19,7 +18,7 @@



class RawCalorimeterHit_factory_B0ECalRawHits : public JFactoryPodioTFixed<edm4hep::RawCalorimeterHit>, CalorimeterHitDigi {
class RawCalorimeterHit_factory_B0ECalRawHits : public eicrecon::JFactoryPodioT<edm4hep::RawCalorimeterHit>, CalorimeterHitDigi {

public:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterTruthClustering.h>

class TruthCluster_factory_B0ECalTruthProtoClusters : public JFactoryPodioTFixed<edm4eic::ProtoCluster>, CalorimeterTruthClustering {
class TruthCluster_factory_B0ECalTruthProtoClusters : public eicrecon::JFactoryPodioT<edm4eic::ProtoCluster>, CalorimeterTruthClustering {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#pragma once

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <algorithms/calorimetry/ImagingPixelReco.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class CalorimeterHit_factory_EcalBarrelImagingRecHits : public JFactoryPodioTFixed<edm4eic::CalorimeterHit>, ImagingPixelReco {
class CalorimeterHit_factory_EcalBarrelImagingRecHits : public eicrecon::JFactoryPodioT<edm4eic::CalorimeterHit>, ImagingPixelReco {

public:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#pragma once

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <algorithms/calorimetry/CalorimeterHitsMerger.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class CalorimeterHit_factory_EcalBarrelScFiMergedHits : public JFactoryPodioTFixed<edm4eic::CalorimeterHit>, CalorimeterHitsMerger {
class CalorimeterHit_factory_EcalBarrelScFiMergedHits : public eicrecon::JFactoryPodioT<edm4eic::CalorimeterHit>, CalorimeterHitsMerger {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#pragma once

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <algorithms/calorimetry/CalorimeterHitReco.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class CalorimeterHit_factory_EcalBarrelScFiRecHits : public JFactoryPodioTFixed<edm4eic::CalorimeterHit>, CalorimeterHitReco {
class CalorimeterHit_factory_EcalBarrelScFiRecHits : public eicrecon::JFactoryPodioT<edm4eic::CalorimeterHit>, CalorimeterHitReco {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#pragma once

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>

#include <algorithms/calorimetry/CalorimeterHitReco.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>

class CalorimeterHit_factory_EcalBarrelSciGlassRecHits : public JFactoryPodioTFixed<edm4eic::CalorimeterHit>, CalorimeterHitReco {
class CalorimeterHit_factory_EcalBarrelSciGlassRecHits : public eicrecon::JFactoryPodioT<edm4eic::CalorimeterHit>, CalorimeterHitReco {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/ImagingClusterReco.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelImagingClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, ImagingClusterReco {
class Cluster_factory_EcalBarrelImagingClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, ImagingClusterReco {

public:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/TruthEnergyPositionClusterMerger.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>


class Cluster_factory_EcalBarrelImagingMergedClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, TruthEnergyPositionClusterMerger {
class Cluster_factory_EcalBarrelImagingMergedClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, TruthEnergyPositionClusterMerger {

public:
//------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions src/detectors/BEMC/Cluster_factory_EcalBarrelScFiClusters.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterRecoCoG.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelScFiClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterRecoCoG {
class Cluster_factory_EcalBarrelScFiClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterRecoCoG {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterRecoCoG.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelSciGlassClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterRecoCoG {
class Cluster_factory_EcalBarrelSciGlassClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterRecoCoG {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterMerger.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelSciGlassMergedClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterMerger {
class Cluster_factory_EcalBarrelSciGlassMergedClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterMerger {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterMerger.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelSciGlassMergedTruthClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterMerger {
class Cluster_factory_EcalBarrelSciGlassMergedTruthClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterMerger {

public:
//------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

#include <random>

#include <services/io/podio/datamodel_glue.h>
#include <services/io/podio/JFactoryPodioTFixed.h>
#include <services/io/podio/JFactoryPodioT.h>
#include <services/geometry/dd4hep/JDD4hep_service.h>
#include <algorithms/calorimetry/CalorimeterClusterRecoCoG.h>
#include <services/log/Log_service.h>
#include <extensions/spdlog/SpdlogExtensions.h>



class Cluster_factory_EcalBarrelSciGlassTruthClusters : public JFactoryPodioTFixed<edm4eic::Cluster>, CalorimeterClusterRecoCoG {
class Cluster_factory_EcalBarrelSciGlassTruthClusters : public eicrecon::JFactoryPodioT<edm4eic::Cluster>, CalorimeterClusterRecoCoG {

public:
//------------------------------------------
Expand Down
Loading

0 comments on commit 9fa09ff

Please sign in to comment.