From 8ed1c6d7b1603531f9972ff355e4e14957488cce Mon Sep 17 00:00:00 2001 From: shahoian Date: Tue, 15 Mar 2022 21:27:42 +0400 Subject: [PATCH] Fix in PHOS reader: provide data types --- Detectors/PHOS/workflow/src/ReaderSpec.cxx | 38 ++++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/Detectors/PHOS/workflow/src/ReaderSpec.cxx b/Detectors/PHOS/workflow/src/ReaderSpec.cxx index 08cbc2e793d6a..b68046b47c156 100644 --- a/Detectors/PHOS/workflow/src/ReaderSpec.cxx +++ b/Detectors/PHOS/workflow/src/ReaderSpec.cxx @@ -10,6 +10,9 @@ // or submit itself to any jurisdiction. #include "DataFormatsPHOS/PHOSBlockHeader.h" +#include "DataFormatsPHOS/Cell.h" +#include "DataFormatsPHOS/Digit.h" +#include "DataFormatsPHOS/TriggerRecord.h" #include "PHOSWorkflow/ReaderSpec.h" #include "Framework/ConfigParamRegistry.h" #include "Framework/ControlService.h" @@ -62,21 +65,20 @@ DataProcessorSpec getDigitsReaderSpec(bool propagateMC) filename.c_str(), // input file name nofEvents, // number of entries to publish publishingMode, - Output{"PHS", "DIGITS", subSpec, persistency}, - "PHOSDigit", // name of data branch - Output{"PHS", "DIGITTRIGREC", subSpec, persistency}, - "PHOSDigitTrigRecords", // name of data triggerrecords branch - Output{"PHS", "DIGITSMCTR", subSpec, persistency}, - "PHOSDigitMCTruth"); // name of mc label branch + RootTreeReader::BranchDefinition>{ + Output{"PHS", "DIGITS", subSpec, persistency}, "PHOSDigit"}, + RootTreeReader::BranchDefinition>{ + Output{"PHS", "DIGITTRIGREC", subSpec, persistency}, "PHOSDigitTrigRecords"}, + Output{"PHS", "DIGITSMCTR", subSpec, persistency}, "PHOSDigitMCTruth"); // name of mc label branch } else { processAttributes->reader = std::make_shared(treename.c_str(), // tree name filename.c_str(), // input file name nofEvents, // number of entries to publish publishingMode, - Output{"PHS", "DIGITS", subSpec, persistency}, - "PHOSDigit", // name of data branch - Output{"PHS", "DIGITTRIGREC", subSpec, persistency}, - "PHOSDigitTrigRecords"); // name of data triggerrecords branch + RootTreeReader::BranchDefinition>{ + Output{"PHS", "DIGITS", subSpec, persistency}, "PHOSDigit"}, + RootTreeReader::BranchDefinition>{ + Output{"PHS", "DIGITTRIGREC", subSpec, persistency}, "PHOSDigitTrigRecords"}); } } @@ -161,10 +163,10 @@ DataProcessorSpec getCellReaderSpec(bool propagateMC) filename.c_str(), // input file name nofEvents, // number of entries to publish publishingMode, - Output{"PHS", "CELLS", subSpec, persistency}, - "PHOSCell", // name of data branch - Output{"PHS", "CELLTRIGREC", subSpec, persistency}, - "PHOSCellTrigRec", // name of data triggerrecords branch + RootTreeReader::BranchDefinition>{ + Output{"PHS", "CELLS", subSpec, persistency}, "PHOSCell"}, + RootTreeReader::BranchDefinition>{ + Output{"PHS", "CELLTRIGREC", subSpec, persistency}, "PHOSCellTrigRec"}, Output{"PHS", "CELLSMCTR", subSpec, persistency}, "PHOSCellTrueMC"); // name of mc label branch } else { @@ -172,10 +174,10 @@ DataProcessorSpec getCellReaderSpec(bool propagateMC) filename.c_str(), // input file name nofEvents, // number of entries to publish publishingMode, - Output{"PHS", "CELLS", subSpec, persistency}, - "PHOSCell", // name of data branch - Output{"PHS", "CELLTRIGREC", subSpec, persistency}, - "PHOSCellTrigRec"); // name of data triggerrecords branch + RootTreeReader::BranchDefinition>{ + Output{"PHS", "CELLS", subSpec, persistency}, "PHOSCell"}, + RootTreeReader::BranchDefinition>{ + Output{"PHS", "CELLTRIGREC", subSpec, persistency}, "PHOSCellTrigRec"}); } }