Skip to content
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

[L1-O2O] WriterProxyT changes to use ESGetToken #37600

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
3ac8d85
Make both ME1a and ME1b LCT (A/CLCT) sorted into ring 1.
sifuluo Mar 11, 2022
145e293
Merge pull request #37217 from sifuluo/backport12_3
cmsbuild Mar 12, 2022
f9667d9
Merge pull request #37205 from cms-tsg-storm/HLTmigrationTo1230pre6
cmsbuild Mar 12, 2022
d02578e
introduce real data unit test for pede
mmusich Mar 11, 2022
d30ceca
Bugfix for Strips O2O
tvami Mar 13, 2022
5a61538
Merge pull request #37206 from cms-tsg-storm/UpdateTSGandRelvalGTsFor…
cmsbuild Mar 14, 2022
ebad739
Merge pull request #37235 from mmusich/O2OFix_12_3_X
cmsbuild Mar 14, 2022
ece73a0
Merge pull request #37213 from quark2/GEM-onlineDQMForLumiBasedPlots-…
cmsbuild Mar 14, 2022
e9ca208
Merge pull request #37223 from francescobrivio/alca-tkStatusDCS_12_3_X
cmsbuild Mar 15, 2022
24cd926
ASAN heap-buffer-overflow fix in CaloLayer1Packer.cc from L1 emulator PR
gk199 Mar 15, 2022
7693016
Merge pull request #37226 from mmusich/addMillePedeTestingSetup_12_3_X
cmsbuild Mar 16, 2022
2a0fee1
Backport the bugfix in CaloSimHitStudy as in #37246
Mar 16, 2022
6f84326
Code check
Mar 16, 2022
462cc82
Merge pull request #37254 from trackreco/from-CMSSW_12_3_X_2022-02-28…
cmsbuild Mar 19, 2022
4145e52
Merge pull request #37253 from gk199/L1emulator_ASANfix
cmsbuild Mar 20, 2022
1d7cb68
Merge pull request #37269 from bsunanda/Run3-sim115XB
cmsbuild Mar 21, 2022
7644a67
Merge pull request #37274 from makortel/statisticsSenderServiceCMSSWV…
cmsbuild Mar 21, 2022
c4a5bf4
fixing HB and HE to rely on unpacked TDC values in fine grain bit set…
gk199 Mar 22, 2022
cece99c
Remove assert to address issue #35668
tsusa Mar 10, 2022
9d5168d
adding rechit monitor modules
sroychow Mar 6, 2022
2703878
backport the refactoring of the PropagateToMuon class and add the pro…
JanFSchulte Mar 22, 2022
cbd71c9
updated path to EDM file for TSG tests on Run-3 Data
missirol Mar 21, 2022
f29fa19
update of hltIntegrationTests and hltListPaths scripts
missirol Mar 20, 2022
35f4d74
Merge pull request #37273 from makortel/cudaDataFormatsTransient
cmsbuild Mar 23, 2022
3641606
Merge pull request #37299 from JanFSchulte/propagationRefactored123X
cmsbuild Mar 23, 2022
dcea981
run cosmics track refitter in order to fix to Strip Hit residuals
mmusich Mar 23, 2022
5940100
Merge pull request #37304 from missirol/devel_hltIntegTests_123X
cmsbuild Mar 23, 2022
30be434
Change ALCALUMIPIXELSEXPRESS to ALCALumiPixelsCountsExpress in autoAl…
tvami Mar 24, 2022
a0fda0d
Merge pull request #37328 from tvami/FixLumiPCCAtT0Backport
cmsbuild Mar 24, 2022
50c9eef
Update L1T menu tag
francescobrivio Mar 24, 2022
6576af1
HLT menu development for 12_3_X
missirol Mar 20, 2022
126c6a6
Update of L1T menu in TSG GTs to L1Menu_Collisions2022_v0_1_8_xml
missirol Mar 24, 2022
316c579
Merge pull request #37317 from mmusich/fixStripEndcapResidualsDQM_12_3_X
cmsbuild Mar 24, 2022
f44a566
Add relval wf `139.005` to test the AlcaEcalPhiSym workflow for Run3
francescobrivio Mar 25, 2022
a176cd0
Merge pull request #37344 from simonepigazzini/ecal-phisym-run3-wf
cmsbuild Mar 25, 2022
75e8e38
Correctly handle string type in FWParameterSetterBase::makeSetterFor()
alja Mar 25, 2022
873b043
Merge pull request #37336 from francescobrivio/alca-L1T_menu_update_1…
cmsbuild Mar 26, 2022
06e7c89
Merge pull request #37307 from gk199/FGbit_unpacked_fix_123X
cmsbuild Mar 26, 2022
c9b81ae
Fix label for `AlCaLumiPixels2021` step
francescobrivio Mar 26, 2022
20a19d2
Fix resolution validation plots after moving ME1a CLCT from ring 4 to…
sifuluo Mar 20, 2022
e61d7d4
code format
sifuluo Mar 20, 2022
075da85
ME1a CLCT will use ME1a SimHit Strip and be saved into ME1a plot
sifuluo Mar 23, 2022
23e2262
code-format
sifuluo Mar 23, 2022
940c827
code cleaning
sifuluo Mar 23, 2022
28c9584
Merge pull request #37357 from sifuluo/PR-CMSSW_12_3_X
cmsbuild Mar 27, 2022
2b53836
Merge pull request #37339 from cms-tsg-storm/HLTdevelopment123X
cmsbuild Mar 27, 2022
b549485
Merge pull request #37352 from alja/triggerTableFixCMSSW_12_3_X
cmsbuild Mar 28, 2022
986cb1c
HLT menu development for 12_3_X
missirol Mar 28, 2022
73d1eea
backport of bug fix in vertex selection
valeriadamante Mar 28, 2022
d77c965
Fix tag names in DQM Fake BeamSpot clients
francescobrivio Mar 28, 2022
ddc9382
Extended fix of Geant4 tracking
civanch Mar 28, 2022
d35b672
Merge pull request #37242 from sroychow/pixelDQMhetero_12_3
cmsbuild Mar 28, 2022
35fc6fb
Make JobReport::reportReadBranches thread safe
Dr15Jones Mar 26, 2022
f73edff
Merge pull request #37375 from civanch/extended_fix_vecgeom_tracking
cmsbuild Mar 29, 2022
f3d8a55
Merge pull request #37372 from valeriadamante/backportL2TauNNTag
cmsbuild Mar 29, 2022
231e749
Merge pull request #37371 from cms-tsg-storm/HLTdevelopment123X
cmsbuild Mar 29, 2022
2e82f40
Merge pull request #37346 from francescobrivio/alca-alcaphysim_12_3_X
cmsbuild Mar 29, 2022
79d34b6
Merge pull request #37389 from Dr15Jones/JobReportThreadSafety_12_3
cmsbuild Mar 29, 2022
b20009c
Merge pull request #37377 from francescobrivio/alca-fixFakeBSClientsT…
cmsbuild Mar 29, 2022
330a925
Change quality cuts for some supercrystals in the EE for LED plots
abhih1 Mar 29, 2022
187ef7e
Update all GPU workflows
fwyzard Mar 30, 2022
e4d8da7
Merge pull request #37412 from dan131riley/dqmio-guid-uniqueness
cmsbuild Mar 31, 2022
f73f854
Added muon-tau-jet OvRm Filter
jaimeleonh Mar 31, 2022
d96b207
Merge pull request #37404 from abhih1/LedQuality_123X
cmsbuild Apr 1, 2022
f502eb9
Merge pull request #37421 from Sam-Harper/FastTimerClientHistResetFix…
cmsbuild Apr 1, 2022
93cac63
Merge pull request #37426 from jaimeleonh/new_ovrm_filter_12_3_X
cmsbuild Apr 1, 2022
25a9a7d
Finegrain bits: check TDC packing, adjust index for filterPresamples …
gk199 Apr 1, 2022
2a9aa3a
Update of L1T menu in TSG GTs to L1Menu_Collisions2022_v1_0_0_xml
missirol Apr 2, 2022
e9d63ca
Update final L1T menu tag for Run 3 start up
francescobrivio Apr 2, 2022
12971ac
add layer and filter qual
VinInn Mar 11, 2022
34b4588
on cpu as well
VinInn Mar 11, 2022
c2e8493
use z as hit id
VinInn Mar 12, 2022
1f5e9b4
clampPT
VinInn Mar 18, 2022
9c19454
introduce ntracks in soa
VinInn Mar 19, 2022
6faa7fc
code format
VinInn Mar 19, 2022
6a039d8
use ntracks
VinInn Mar 20, 2022
a92e043
stabilize fishbone
VinInn Mar 23, 2022
7f2c9b5
code format
VinInn Mar 23, 2022
ac4a080
make FULL conbinatorics
VinInn Mar 24, 2022
0012e4f
make it order independent
VinInn Mar 25, 2022
a3e5a62
make printput reproducible
VinInn Mar 25, 2022
0d7f43f
put in correct order
VinInn Mar 28, 2022
3c15c2f
add comment
VinInn Mar 28, 2022
c22f39f
Merge pull request #37446 from makortel/concurrentLumiConfigBuilder
cmsbuild Apr 4, 2022
9ae1be5
Merge pull request #37441 from cms-tsg-storm/UpdateL1TMenuInTSGGTs_123X
cmsbuild Apr 4, 2022
c5abcdb
Merge pull request #37443 from francescobrivio/alca-updateL1Tmenu_12_3_X
cmsbuild Apr 4, 2022
3a4259d
Merge pull request #37422 from jshlee/GEMAMC13-CMSSW_12_3_0_pre6
cmsbuild Apr 4, 2022
106580e
Merge pull request #37435 from thomreis/ecal-gpu-unpacker-fix
cmsbuild Apr 4, 2022
6e4ac3f
Merge pull request #37450 from CTPPS/dqm_test
cmsbuild Apr 5, 2022
a48582c
minor changes to SiPixelLorentzAnglePCL modules
mmusich Apr 4, 2022
8a1ac38
adding option to disable reseting ps counters on ls change
Sam-Harper Mar 25, 2022
9b65f06
code format
Sam-Harper Mar 29, 2022
1ed9513
Merge pull request #37444 from missirol/backport_37281_to_123X
cmsbuild Apr 5, 2022
4bb8edb
update DNN-based OI seed generation
kondratyevd Apr 5, 2022
250803c
Backport the bugfix to HGCal geometry from the PR's 37330 and 37460
Apr 5, 2022
c2ed122
Add AlCaLumiPixels_Run3 scenario and unit test
tvami Apr 5, 2022
b5af5e8
Merge pull request #37462 from missirol/backport37395_123X
cmsbuild Apr 5, 2022
ebb4ed7
Merge pull request #37459 from mmusich/morechangesInPixelLA_12_3_X
cmsbuild Apr 5, 2022
248cc87
Merge pull request #37439 from gk199/FGbits_TDCpack_index_123X
cmsbuild Apr 5, 2022
c46bab0
TP algorithm update for the sync with f/w
TaeunKwon Apr 5, 2022
cba6858
Merge pull request #37413 from fwyzard/add_Pixel_HCAL_validation_work…
cmsbuild Apr 6, 2022
041b22f
HLT menu development for 12_3_X
missirol Apr 6, 2022
a4e8c4b
Merge pull request #37465 from eyigitba/EMTF_unpackerUpdate_HMT_NN_Mar22
cmsbuild Apr 6, 2022
8640be8
Backport to 12_3_X for CSC unpacking update PR#37279
barvic Apr 6, 2022
33cbdfa
Merge pull request #37468 from tvami/AlCaLumiPixels_Run3
cmsbuild Apr 6, 2022
5b83179
Merge pull request #37458 from khaosmos93/dev_123X_L1L2ROIs
cmsbuild Apr 7, 2022
e5d2c7c
Merge pull request #37467 from kondratyevd/tsg-oi-update-backport-123x
cmsbuild Apr 7, 2022
4bb166f
Merge pull request #37475 from cms-tsg-storm/HLTdevelopment123X
cmsbuild Apr 7, 2022
7aa146a
Add test code as suggested
Apr 7, 2022
cd873ea
Added the switch for the inclusion of PS energy
ram1123 Apr 7, 2022
b9c16b8
New set of files coherent with the new v1_0_0 L1Menu
elfontan Apr 4, 2022
5fbcd24
Add DQM modules to monitor GEM detection efficiency with GEMCSCSegment.
seungjin-yang Apr 7, 2022
7cd7ee4
bugfix XML for PPS strips mapping
grzanka Apr 7, 2022
1850056
Merge branch 'CMSSW_12_3_X' into pps_xml_comment_fix_backport
grzanka Apr 7, 2022
017e8b6
Merge pull request #37479 from barvic/CSC_Run3_Unpacking_CMSSW_12_3_X…
cmsbuild Apr 7, 2022
67edf10
Added the parameter to fillPSetDescription & set it to false
ram1123 Apr 7, 2022
d77a87f
Merge pull request #37472 from TaeunKwon/TPasInFW
cmsbuild Apr 8, 2022
47303c9
Merge pull request #37503 from cms-tsg-storm/FixL1TMuonShowerAccess
cmsbuild Apr 8, 2022
f4be4cd
Merge pull request #37497 from elfontan/EF_backport_newFilesRun3menu
cmsbuild Apr 8, 2022
f75e7fd
Merge pull request #37499 from CTPPS/pps_xml_comment_fix_backport
cmsbuild Apr 8, 2022
4fec57a
Merge pull request #37466 from bsunanda/Run4-hgx306
cmsbuild Apr 8, 2022
a47cb2e
Merge pull request #37501 from seungjin-yang/GEMEffByGEMCSCSegment__f…
cmsbuild Apr 8, 2022
f375a1e
Merge pull request #37494 from ram1123/CMSSW1230pre2_EGammaRegEvalUpdate
cmsbuild Apr 8, 2022
543353e
add HLT customisation for Run-2 CTPPS
missirol Apr 10, 2022
265f091
HLT menu migration to 12_3_0
Martin-Grunewald Apr 11, 2022
c59325f
Merge pull request #37521 from missirol/devel_hltCustomCTPPSForRun2_123X
cmsbuild Apr 12, 2022
1143341
Merge pull request #37525 from cms-tsg-storm/HLTmigrationTo1230for123
cmsbuild Apr 12, 2022
eb22f35
Merge pull request #37543 from kakwok/CLCT_thresholds
cmsbuild Apr 13, 2022
7a73f20
HLT menu development
Martin-Grunewald Apr 13, 2022
e8d1a11
Fixes
Martin-Grunewald Apr 13, 2022
c2b917c
Fixes - round two
Martin-Grunewald Apr 14, 2022
a5991e6
Merge pull request #37552 from cms-tsg-storm/HLTdevelopment123X
cmsbuild Apr 15, 2022
fb94d86
[L1-O2O] make WriterProxyT to use ESGetToken for its instantiations
panoskatsoulis Apr 17, 2022
c8ec5a3
added local replica from the p5 script (testing WF)
panoskatsoulis Apr 17, 2022
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
5 changes: 5 additions & 0 deletions Alignment/MillePedeAlignmentAlgorithm/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
<use name="millepede"/>
<flags USE_UNITTEST_DIR="1"/>
</test>
<bin name="testPedeCampaign" file="TestDriver.cpp">
<flags TEST_RUNNER_ARGS="/bin/bash Alignment/MillePedeAlignmentAlgorithm/test test_pede.sh"/>
<use name="FWCore/Utilities"/>
</bin>

2 changes: 2 additions & 0 deletions Alignment/MillePedeAlignmentAlgorithm/test/TestDriver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "FWCore/Utilities/interface/TestHelper.h"
RUNTEST()
100 changes: 100 additions & 0 deletions Alignment/MillePedeAlignmentAlgorithm/test/test_pede.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import FWCore.ParameterSet.Config as cms
process = cms.Process("Alignment")

process.Tracer = cms.Service("Tracer")

setupGlobaltag = "121X_mcRun3_2021_realistic_forpp900GeV_v6"
setupCollection = "ALCARECOTkAlCosmicsCosmicTF0T"
setupCosmicsDecoMode = True
setupCosmicsZeroTesla = False
setupPrimaryWidth = -1.0
setupJson = "placeholder_json"
setupRunStartGeometry = 1
setupAlgoMode = "pede"
setupMonitorFile = "millePedeMonitorISN.root"
setupBinaryFile = "milleBinaryISN.dat"
readFiles = cms.untracked.vstring()

import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.GeneralSetup as generalSetup
generalSetup.setup(process, setupGlobaltag, setupCosmicsZeroTesla)


################################################################################
# setup alignment producer
################################################################################
import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.ConfigureAlignmentProducer as confAliProducer

confAliProducer.setConfiguration(process,
collection = setupCollection,
mode = setupAlgoMode,
monitorFile = setupMonitorFile,
binaryFile = setupBinaryFile,
primaryWidth = setupPrimaryWidth,
cosmicsZeroTesla = setupCosmicsZeroTesla)


################################################################################
# Overwrite some conditions in global tag
################################################################################
import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.SetCondition as tagwriter

################################################################################
# insert Startgeometry
################################################################################
# You can use tagwriter.setCondition() to overwrite conditions in globaltag

################################################################################
# insert Alignables
################################################################################
process.AlignmentProducer.ParameterBuilder.parameterTypes = ["SelectorRigid,RigidBody"]

################################################################################
# Define the high-level structure alignables
################################################################################
process.AlignmentProducer.ParameterBuilder.SelectorRigid = cms.PSet(
alignParams = cms.vstring(
"TrackerP1PXBHalfBarrel,111111",
"TrackerP1PXECHalfCylinder,111111",
"TrackerTIBHalfBarrel,111111",
"TrackerTOBHalfBarrel,rrrrrr",
"TrackerTIDEndcap,111111",
"TrackerTECEndcap,111111",
)
)

################################################################################
# insert Pedesettings
################################################################################
import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.helper as helper
helper.set_pede_option(process, "skipemptycons")

################################################################################
# Mille-procedure
################################################################################
if setupAlgoMode == "mille":
import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.MilleSetup as mille
mille.setup(process,
input_files = readFiles,
collection = setupCollection,
json_file = setupJson,
cosmics_zero_tesla = setupCosmicsZeroTesla,
cosmics_deco_mode = setupCosmicsDecoMode)

################################################################################
# Pede-procedure
################################################################################
else:
merge_binary_files = [
'milleBinary001.dat',
'milleBinary002.dat',
'milleBinary003.dat']
merge_tree_files = [
'treeFile001.root',
'treeFile002.root',
'treeFile003.root']

import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.PedeSetup as pede
pede.setup(process,
binary_files = merge_binary_files,
tree_files = merge_tree_files,
run_start_geometry = setupRunStartGeometry)
32 changes: 32 additions & 0 deletions Alignment/MillePedeAlignmentAlgorithm/test/test_pede.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
function die { echo $1: status $2; exit $2; }

if [ "${SCRAM_TEST_NAME}" != "" ] ; then
mkdir ${SCRAM_TEST_NAME}
cd ${SCRAM_TEST_NAME}
fi

if test -f "milleBinary00*"; then
echo "cleaning the local test area"
rm -fr milleBinary00*
rm -fr pedeSteer*
fi

pwd
echo " testing Aligment/MillePedeAlignmentAlgorithm"

REMOTE="/store/group/alca_global/tkal_millepede_tests/"
TESTPACKAGE="test_pede_package.tar"
COMMMAND=`xrdfs cms-xrd-global.cern.ch locate ${REMOTE}${TESTPACKAGE}`
STATUS=$?
echo "xrdfs command status = "$STATUS
if [ $STATUS -eq 0 ]; then
echo "Using file ${TESTPACKAGE}. Running in ${LOCAL_TEST_DIR}."
xrdcp root://cms-xrd-global.cern.ch/${REMOTE}${TESTPACKAGE} ${LOCAL_TEST_DIR}
tar -xvf ${LOCAL_TEST_DIR}/${TESTPACKAGE}
gunzip milleBinary00*
(cmsRun ${LOCAL_TEST_DIR}/test_pede.py) || die 'failed running test_pede.py' $?
echo -e "\n MillePede Exit Status: "`cat millepede.end`
else
die "SKIPPING test, file ${TESTPACKAGE} not found" 0
fi
6 changes: 3 additions & 3 deletions CUDADataFormats/CaloCommon/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<enum name="calo::common::tags::Ptr"/>
<enum name="calo::common::tags::Vec"/>
<enum name="calo::common::tags::DevPtr"/>
<class name="calo::common::AddSize<calo::common::tags::Ptr>"/>
<class name="calo::common::AddSize<calo::common::tags::Vec>"/>
<class name="calo::common::AddSize<calo::common::tags::DevPtr>"/>
<class name="calo::common::AddSize<calo::common::tags::Ptr>" persistent="false"/>
<class name="calo::common::AddSize<calo::common::tags::Vec>" persistent="false"/>
<class name="calo::common::AddSize<calo::common::tags::DevPtr>" persistent="false"/>
</lcgdict>
28 changes: 14 additions & 14 deletions CUDADataFormats/HcalDigi/src/classes_def.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<lcgdict>
<class name="hcal::DigiCollectionBase<calo::common::VecStoragePolicy<std::allocator>>" />
<class name="hcal::DigiCollectionBase<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" />
<class name="hcal::DigiCollectionBase<calo::common::VecStoragePolicy<std::allocator>>" persistent="false" />
<class name="hcal::DigiCollectionBase<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false" />

<class name="hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<std::allocator>>" />
<class name="hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<std::allocator>>" />
<class name="hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<std::allocator>>" />
<class name="hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<std::allocator>>" persistent="false" />
<class name="hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<std::allocator>>" persistent="false" />
<class name="hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<std::allocator>>" persistent="false" />

<class name="hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" />
<class name="hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" />
<class name="hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" />
<class name="hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false" />
<class name="hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false" />
<class name="hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false" />

<class name="cms::cuda::Product<hcal::DigiCollection<hcal::Flavor1, calo::common::ViewStoragePolicy>>" persistent="false" />
<class name="cms::cuda::Product<hcal::DigiCollection<hcal::Flavor3, calo::common::ViewStoragePolicy>>" persistent="false" />
Expand All @@ -26,11 +26,11 @@
<class name="edm::Wrapper<cms::cuda::Product<hcal::DigiCollection<hcal::Flavor3, calo::common::DevStoragePolicy>>>" persistent="false" />
<class name="edm::Wrapper<cms::cuda::Product<hcal::DigiCollection<hcal::Flavor5, calo::common::DevStoragePolicy>>>" persistent="false" />

<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<std::allocator>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<std::allocator>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<std::allocator>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<std::allocator>>>" persistent="false" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<std::allocator>>>" persistent="false" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<std::allocator>>>" persistent="false" />

<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor1, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor3, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false" />
<class name="edm::Wrapper<hcal::DigiCollection<hcal::Flavor5, calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false" />
</lcgdict>
8 changes: 4 additions & 4 deletions CUDADataFormats/HcalRecHitSoA/src/classes_def.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<lcgdict>
<class name="hcal::RecHitCollection<calo::common::VecStoragePolicy<std::allocator>>"/>
<class name="edm::Wrapper<hcal::RecHitCollection<calo::common::VecStoragePolicy<std::allocator>>>"/>
<class name="hcal::RecHitCollection<calo::common::VecStoragePolicy<std::allocator>>" persistent="false"/>
<class name="edm::Wrapper<hcal::RecHitCollection<calo::common::VecStoragePolicy<std::allocator>>>" persistent="false"/>

<class name="hcal::RecHitCollection<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>"/>
<class name="edm::Wrapper<hcal::RecHitCollection<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>"/>
<class name="hcal::RecHitCollection<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false"/>
<class name="edm::Wrapper<hcal::RecHitCollection<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false"/>

<class name="cms::cuda::Product<hcal::RecHitCollection<calo::common::ViewStoragePolicy>>" persistent="false" />
<class name="edm::Wrapper<cms::cuda::Product<hcal::RecHitCollection<calo::common::ViewStoragePolicy>>>" persistent="false" />
Expand Down
18 changes: 9 additions & 9 deletions CUDADataFormats/StdDictionaries/src/classes_def.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<lcgdict>
<class name="std::vector<std::byte, cms::cuda::HostAllocator<std::byte, 0>>" />
<class name="std::vector<std::byte, cms::cuda::HostAllocator<std::byte, 0>>" persistent="false"/>

<class name="std::vector<uint8_t, cms::cuda::HostAllocator<uint8_t, 0>>" />
<class name="std::vector<uint16_t, cms::cuda::HostAllocator<uint16_t, 0>>" />
<class name="std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t, 0>>" />
<class name="std::vector<uint8_t, cms::cuda::HostAllocator<uint8_t, 0>>" persistent="false"/>
<class name="std::vector<uint16_t, cms::cuda::HostAllocator<uint16_t, 0>>" persistent="false"/>
<class name="std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t, 0>>" persistent="false"/>

<class name="std::vector<int8_t, cms::cuda::HostAllocator<int8_t, 0>>" />
<class name="std::vector<int16_t, cms::cuda::HostAllocator<int16_t, 0>>" />
<class name="std::vector<int32_t, cms::cuda::HostAllocator<int32_t, 0>>" />
<class name="std::vector<int8_t, cms::cuda::HostAllocator<int8_t, 0>>" persistent="false"/>
<class name="std::vector<int16_t, cms::cuda::HostAllocator<int16_t, 0>>" persistent="false"/>
<class name="std::vector<int32_t, cms::cuda::HostAllocator<int32_t, 0>>" persistent="false"/>

<class name="std::vector<float, cms::cuda::HostAllocator<float, 0>>" />
<class name="std::vector<double, cms::cuda::HostAllocator<double, 0>>" />
<class name="std::vector<float, cms::cuda::HostAllocator<float, 0>>" persistent="false"/>
<class name="std::vector<double, cms::cuda::HostAllocator<double, 0>>" persistent="false"/>
</lcgdict>
6 changes: 6 additions & 0 deletions CUDADataFormats/Track/interface/TrackSoAHeterogeneousT.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class TrackSoAHeterogeneousT {

eigenSoA::ScalarSoA<int8_t, S> nLayers;

constexpr int nTracks() const { return nTracks_; }
constexpr void setNTracks(int n) { nTracks_ = n; }

constexpr int nHits(int i) const { return detIndices.size(i); }

constexpr bool isTriplet(int i) const { return nLayers(i) == 3; }
Expand Down Expand Up @@ -80,6 +83,9 @@ class TrackSoAHeterogeneousT {

HitContainer hitIndices;
HitContainer detIndices;

private:
int nTracks_;
};

namespace pixelTrack {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void SiPixelLorentzAnglePCLHarvester::beginRun(const edm::Run& iRun, const edm::
continue;

if (std::find(treatedIndices.begin(), treatedIndices.end(), i_index) != treatedIndices.end()) {
hists.detIdsList.at(i_index).push_back(rawId);
hists.detIdsList[i_index].push_back(rawId);
} else {
hists.detIdsList.insert(std::pair<uint32_t, std::vector<uint32_t>>(i_index, {rawId}));
treatedIndices.push_back(i_index);
Expand All @@ -205,7 +205,7 @@ void SiPixelLorentzAnglePCLHarvester::beginRun(const edm::Run& iRun, const edm::

count = 0;
for (const auto& i : treatedIndices) {
for (const auto& id : hists.detIdsList.at(i)) {
for (const auto& id : hists.detIdsList[i]) {
LogDebug("SiPixelLorentzAnglePCLHarvester") << id;
count++;
};
Expand Down Expand Up @@ -562,6 +562,8 @@ void SiPixelLorentzAnglePCLHarvester::findMean(MonitorElement* h_drift_depth_adc
}
hists.h_mean_[i_ring]->setBinContent(i, mean);
hists.h_mean_[i_ring]->setBinError(i, error);

h_drift_depth_adc_slice_->Reset(); // clear again after extracting the parameters
}

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -633,6 +635,7 @@ SiPixelLAHarvest::fitResults SiPixelLorentzAnglePCLHarvester::fitAndStore(
hists.h_bySectMeasLA_->setBinContent(i_index, (res.tan_LA / theMagField));
hists.h_bySectMeasLA_->setBinError(i_index, (res.error_LA / theMagField));
hists.h_bySectChi2_->setBinContent(i_index, res.redChi2);
hists.h_bySectChi2_->setBinError(i_index, 0.); // no errors

int nentries = hists.h_bySectOccupancy_->getBinContent(i_index); // number of on track hits in that sector

Expand All @@ -643,14 +646,20 @@ SiPixelLAHarvest::fitResults SiPixelLorentzAnglePCLHarvester::fitAndStore(
<< " isNew: " << isNew << " i_index: " << i_index << " shift index: " << shiftIdx;

const auto& detIdsToFill =
isNew ? std::vector<unsigned int>({hists.BPixnewDetIds_[shiftIdx]}) : hists.detIdsList.at(i_index);
isNew ? std::vector<unsigned int>({hists.BPixnewDetIds_[shiftIdx]}) : hists.detIdsList[i_index];

LogDebug("SiPixelLorentzAnglePCLHarvester")
<< "index: " << i_index << " i_module: " << i_module << " i_layer: " << i_layer;
for (const auto& id : detIdsToFill) {
LogDebug("SiPixelLorentzAnglePCLHarvester") << id << ",";
}

// no errors on the following MEs
hists.h_bySectSetLA_->setBinError(i_index, 0.);
hists.h_bySectRejectLA_->setBinError(i_index, 0.);
hists.h_bySectLA_->setBinError(i_index, 0.);
hists.h_bySectDeltaLA_->setBinError(i_index, 0.);

float LorentzAnglePerTesla_;
float currentLA = currentLorentzAngle->getLorentzAngle(detIdsToFill.front());
// if the fit quality is OK
Expand All @@ -675,7 +684,6 @@ SiPixelLAHarvest::fitResults SiPixelLorentzAnglePCLHarvester::fitAndStore(
hists.h_bySectSetLA_->setBinContent(i_index, 0.);
hists.h_bySectRejectLA_->setBinContent(i_index, (res.tan_LA / theMagField));
hists.h_bySectLA_->setBinContent(i_index, currentLA);

hists.h_bySectDeltaLA_->setBinContent(i_index, 0.);

for (const auto& id : detIdsToFill) {
Expand Down
Loading