Skip to content

Topoclustering on ScFi #1787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/detectors/BEMC/BEMC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,29 @@ extern "C" {
},
app // TODO: Remove me once fixed
));


//======================================================================
// Trying ImagingTopoClustering for ScFi

app->Add(new JOmniFactoryGeneratorT<ImagingTopoCluster_factory>(
"EcalBarrelScFiProtoClusters_Topo", {"EcalBarrelScFiRecHits"}, {"EcalBarrelScFiProtoClusters_Topo"},
{
.neighbourLayersRange = 2, // # id diff for adjacent layer
.localDistXY = {2.0 * dd4hep::mm, 2 * dd4hep::mm}, // # same layer
.layerDistEtaPhi = {10 * dd4hep::mrad, 10 * dd4hep::mrad}, // # adjacent layer
.sectorDist = 3.0 * dd4hep::cm,
.minClusterHitEdep = 0,
.minClusterCenterEdep = 0,
.minClusterEdep = 100 * dd4hep::MeV,
.minClusterNhits = 10,
},
app // TODO: Remove me once fixed
));

//======================================================================


app->Add(
new JOmniFactoryGeneratorT<CalorimeterClusterRecoCoG_factory>(
"EcalBarrelScFiClustersWithoutShapes",
Expand Down Expand Up @@ -127,6 +150,26 @@ extern "C" {
app
)
);
//======================================================================

app->Add(
new JOmniFactoryGeneratorT<CalorimeterClusterShape_factory>(
"EcalBarrelScFiTopoClusters",
{"EcalBarrelScFiClustersWithoutShapes",
"EcalBarrelScFiClusterAssociationsWithoutShapes"},
{"EcalBarrelScFiTopoClusters",
"EcalBarrelScFiTopoClusterAssociations"},
{
.longitudinalShowerInfoAvailable = true,
.energyWeight = "log",
.logWeightBase = 6.2
},
app
)
);

//======================================================================


// Make sure digi and reco use the same value
decltype(CalorimeterHitDigiConfig::capADC) EcalBarrelImaging_capADC = 8192; //8192, 13bit ADC
Expand Down
3 changes: 3 additions & 0 deletions src/services/io/podio/JEventProcessorPODIO.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ JEventProcessorPODIO::JEventProcessorPODIO() {
"EcalBarrelScFiRawHits",
"EcalBarrelScFiRecHits",
"EcalBarrelScFiClusters",
"EcalBarrelScFiTopoClusters", // added for Imaging Topo clustering on SCFI
"EcalBarrelScFiProtoClusters_Topo", // added for Imaging Topo clustering on SCFI
"EcalBarrelScFiClusterAssociations",
"EcalBarrelScFiTopoClusterAssociations", // added for Imaging Topo clustering on SCFI
"EcalLumiSpecRawHits",
"EcalLumiSpecRecHits",
"EcalLumiSpecTruthClusters",
Expand Down