Skip to content

Commit 10cbe91

Browse files
authored
Merge pull request #45407 from matt2275/Test_ZDCRecHit
Added new ZDCHitReconstructor and ZDCRecAlgo to work with QIE10 Digis and Updated ZDCRecHit
2 parents 15e5660 + 0dee346 commit 10cbe91

File tree

16 files changed

+745
-9
lines changed

16 files changed

+745
-9
lines changed

Configuration/StandardSequences/python/Reconstruction_cff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
modulesToRemove.append(horeco)
305305
modulesToRemove.append(hcalnoise)
306306
modulesToRemove.append(zdcreco)
307+
modulesToRemove.append(zdcrecoRun3)
307308
modulesToRemove.append(castorreco)
308309
##it's OK according to Ronny modulesToRemove.append(CSCHaloData)#needs digis
309310
reconstruction_fromRECO = reconstruction.copyAndExclude(modulesToRemove+noTrackingAndDependent)

DataFormats/HcalRecHit/interface/ZDCRecHit.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,25 @@ class ZDCRecHit : public CaloRecHit {
1919
// follow EcalRecHit method of adding variable flagBits_ to CaloRecHit
2020
float lowGainEnergy() const { return lowGainEnergy_; };
2121

22+
constexpr inline void setEnergySOIp1(const float en) { energySOIp1_ = en; };
23+
constexpr inline float energySOIp1() const { return energySOIp1_; }; // energy of Slice of Interest plus 1
24+
constexpr inline void setRatioSOIp1(const float ratio) { ratioSOIp1_ = ratio; };
25+
constexpr inline float ratioSOIp1() const {
26+
return ratioSOIp1_;
27+
}; // ratio of Energy of (Slice of Interest)/ (Slice of Interest plus 1)
28+
constexpr inline void setTDCtime(const float time) { TDCtime_ = time; };
29+
constexpr inline float TDCtime() const { return TDCtime_; };
30+
constexpr inline void setChargeWeightedTime(const float time) {
31+
chargeWeightedTime_ = time;
32+
}; // time of activity determined by charged weighted average
33+
constexpr inline float chargeWeightedTime() const { return chargeWeightedTime_; };
34+
2235
private:
2336
float lowGainEnergy_;
37+
float energySOIp1_;
38+
float ratioSOIp1_;
39+
float TDCtime_;
40+
float chargeWeightedTime_;
2441
};
2542

2643
std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit);

DataFormats/HcalRecHit/src/ZDCRecHit.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#include "DataFormats/HcalRecHit/interface/ZDCRecHit.h"
22

3-
ZDCRecHit::ZDCRecHit() : CaloRecHit(), lowGainEnergy_() {}
3+
ZDCRecHit::ZDCRecHit()
4+
: CaloRecHit(), lowGainEnergy_(), energySOIp1_(-99), ratioSOIp1_(-99), TDCtime_(-99), chargeWeightedTime_(-99) {}
45

56
ZDCRecHit::ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy)
6-
: CaloRecHit(id, energy, time), lowGainEnergy_(lowGainEnergy) {}
7+
: CaloRecHit(id, energy, time),
8+
lowGainEnergy_(lowGainEnergy),
9+
energySOIp1_(-99),
10+
ratioSOIp1_(-99),
11+
TDCtime_(-99),
12+
chargeWeightedTime_(-99) {}
713

814
std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit) {
915
return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";

DataFormats/HcalRecHit/src/classes_def.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<version ClassVersion="12" checksum="1242817974"/>
3636
<version ClassVersion="10" checksum="1310006561"/>
3737
</class>
38-
<class name="ZDCRecHit" ClassVersion="12">
38+
<class name="ZDCRecHit" ClassVersion="13">
39+
<version ClassVersion="13" checksum="1625066895"/>
3940
<version ClassVersion="12" checksum="4082648564"/>
4041
<version ClassVersion="11" checksum="2452340764"/>
4142
</class>

RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@
4646
srcTracks = "generalTracks",
4747
srcVertex = "offlinePrimaryVertices"
4848
)
49+
50+
from Configuration.Eras.Modifier_run3_common_cff import run3_common
51+
run3_common.toModify(hiCentrality, srcZDChits = "zdcrecoRun3",lowGainZDC = False)
52+
4953
from Configuration.ProcessModifiers.phase2_pp_on_AA_cff import phase2_pp_on_AA
5054
phase2_pp_on_AA.toModify(hiCentrality,
5155
isPhase2 = True,
5256
producePixelTracks = False,
5357
srcTracks = "generalTracks",
5458
srcVertex = "offlinePrimaryVertices"
55-
)
59+
)

RecoHI/HiCentralityAlgos/python/pACentrality_cfi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@
3636

3737
)
3838

39+
from Configuration.Eras.Modifier_run3_common_cff import run3_common
40+
run3_common.toModify(pACentrality, srcZDChits = "zdcrecoRun3",lowGainZDC =False)
3941

RecoHI/HiEvtPlaneAlgos/python/RecoHiEvtPlane_EventContent_cff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
outputCommands = cms.untracked.vstring(
66
'keep recoEvtPlanes_hiEvtPlane_*_*',
77
'keep ZDCRecHitsSorted_zdcreco_*_*',
8+
'keep ZDCRecHitsSorted_zdcrecoRun3_*_*',
89
'keep ZDCDataFramesSorted_hcalDigis_*_*',
910
'keep HFRecHitsSorted_hfreco_*_*')
1011
)

RecoLocalCalo/Configuration/python/RecoLocalCalo_Cosmics_cff.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,11 @@
107107
from RecoLocalCalo.Configuration.hcalLocalRecoNZS_cff import *
108108
calolocalrecoTaskCosmicsNZS = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask,hcalLocalRecoTaskNZS)
109109
calolocalrecoCosmicsNZS = cms.Sequence(calolocalrecoTaskCosmicsNZS)
110+
111+
#--- for Run 3 and later
112+
_run3_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
113+
from RecoLocalCalo.HcalRecProducers.zdcrecoRun3_cfi import zdcrecoRun3
114+
_run3_hcalLocalRecoTask.remove(zdcreco)
115+
_run3_hcalLocalRecoTask.add(zdcrecoRun3)
116+
from Configuration.Eras.Modifier_run3_common_cff import run3_common
117+
run3_common.toReplaceWith(hcalLocalRecoTask, _run3_hcalLocalRecoTask)

RecoLocalCalo/Configuration/python/RecoLocalCalo_EventContentCosmics_cff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'keep ZDCDataFramesSorted_castorDigis_*_*',
2525
'keep ZDCDataFramesSorted_simHcalUnsuppressedDigis_*_*',
2626
'keep ZDCRecHitsSorted_zdcreco_*_*',
27+
'keep ZDCRecHitsSorted_zdcrecoRun3_*_*',
2728
'keep HcalUnpackerReport_castorDigis_*_*',
2829
'keep HcalUnpackerReport_hcalDigis_*_*')
2930
)

RecoLocalCalo/Configuration/python/RecoLocalCalo_EventContent_cff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
'keep ZDCDataFramesSorted_hcalDigis_*_*',
6060
'keep ZDCDataFramesSorted_castorDigis_*_*',
6161
'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
62-
'keep ZDCRecHitsSorted_zdcreco_*_*')
62+
'keep ZDCRecHitsSorted_zdcreco_*_*',
63+
'keep ZDCRecHitsSorted_zdcrecoRun3_*_*')
6364
)
6465
RecoLocalCaloRECO.outputCommands.extend(RecoLocalCaloAOD.outputCommands)
6566
RecoLocalCaloRECO.outputCommands.extend(ecalLocalRecoRECO.outputCommands)

0 commit comments

Comments
 (0)