Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4b4ac65
debug avgCharge variable
vmuralee Jul 25, 2024
9517b94
compress barycentre
vmuralee Aug 26, 2024
8971117
Update SiStripCluster.cc
vmuralee Aug 26, 2024
efc4fb0
Update SiStripApproximateCluster.cc
vmuralee Aug 26, 2024
dd954e7
Update SiStripApproximateCluster.h
vmuralee Aug 26, 2024
abd2337
compressed barycentre
vmuralee Aug 27, 2024
18d51b7
Update compressed barycentre
vmuralee Aug 27, 2024
3bdde56
Update compressed barycentre
vmuralee Aug 27, 2024
6a73416
Update classes_def.xml
vmuralee Aug 27, 2024
374a71c
Update compBarycenter
vmuralee Aug 27, 2024
1240b46
Update maxRange_
vmuralee Aug 27, 2024
7a28d94
Update compBarycenter()
vmuralee Aug 27, 2024
60938e3
Update SiStripCluster.cc
vmuralee Aug 27, 2024
f6d3f6f
assert added for returning barycentre
vmuralee Aug 30, 2024
98d6e8e
added assert message approxcluster
vmuralee Aug 30, 2024
dbb9102
assert added
vmuralee Aug 30, 2024
d9413bc
assert added
vmuralee Aug 30, 2024
86e263a
Create Era_Run2024_pp_on_PbPb_approxSiStripCluster.py
vmuralee Sep 8, 2024
1476ada
Create Run2024_pp_on_PbPb.py
vmuralee Sep 8, 2024
b1f0598
Update Era_Run2024_pp_on_PbPb_approxSiStripCluster.py
vmuralee Sep 8, 2024
657740e
Merge branch 'cms-sw:master' into myDev
vmuralee Sep 16, 2024
3d508f2
Update SiStripApproximateCluster.h with 770 maxbaryoenter
vmuralee Sep 17, 2024
3ceca39
Update Era_Run2024_pp_on_PbPb_approxSiStripCluster.py
vmuralee Oct 17, 2024
53f2ccb
Merge branch 'cms-sw:master' into myDev
vmuralee Feb 10, 2025
ca30a98
Update SiStripApproximateCluster.h
vmuralee Feb 10, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_2024_cff import Run3_2024
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
from Configuration.ProcessModifiers.approxSiStripClusters_cff import approxSiStripClusters
from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
from Configuration.ProcessModifiers.trackingNoLoopers_cff import trackingNoLoopers

Run3_pp_on_PbPb_approxSiStripClusters_2024 = cms.ModifierChain(Run3_2024.copyAndExclude([trackingNoLoopers]), approxSiStripClusters)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this file for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To re-run the RECO step, where Track,jet and met are reconstructed using approximated cluster collection.

8 changes: 8 additions & 0 deletions Configuration/Eras/python/Run2024_pp_on_PbPb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_2024_cff import Run3_2024
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
from Configuration.ProcessModifiers.approxSiStripClusters_cff import approxSiStripClusters
from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3

Run3_pp_on_PbPb_approxSiStripClusters_2024 = cms.ModifierChain(Run3_2024)#, approxSiStripClusters, pp_on_AA, pp_on_PbPb_run3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this file for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was used to compare the approximated and default strip cluster collection. Anyway, it is droped in the new PR.

14 changes: 10 additions & 4 deletions DataFormats/SiStripCluster/interface/SiStripApproximateCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
#define DataFormats_SiStripCluster_SiStripApproximateCluster_h

#include "FWCore/Utilities/interface/typedefs.h"
#include "assert.h"

class SiStripCluster;
class SiStripApproximateCluster {
public:
SiStripApproximateCluster() {}

explicit SiStripApproximateCluster(cms_uint16_t barycenter,
explicit SiStripApproximateCluster(cms_uint16_t compBarycenter,
cms_uint8_t width,
cms_uint8_t avgCharge,
bool filter,
bool isSaturated,
bool peakFilter = false)
: barycenter_(barycenter),
: compBarycenter_(compBarycenter),
width_(width),
avgCharge_(avgCharge),
filter_(filter),
Expand All @@ -26,20 +27,25 @@ class SiStripApproximateCluster {
float hitPredPos,
bool peakFilter);

cms_uint16_t barycenter() const { return barycenter_; }
float barycenter() const {
float _barycenter = compBarycenter_ * maxBarycenter_/maxRange_ ;
assert(_barycenter <= maxBarycenter_ && "Returning barycenter > maxBarycenter");
return _barycenter; }
cms_uint8_t width() const { return width_; }
cms_uint8_t avgCharge() const { return avgCharge_; }
bool filter() const { return filter_; }
bool isSaturated() const { return isSaturated_; }
bool peakFilter() const { return peakFilter_; }

private:
cms_uint16_t barycenter_ = 0;
cms_uint16_t compBarycenter_ = 0;
cms_uint8_t width_ = 0;
cms_uint8_t avgCharge_ = 0;
bool filter_ = false;
bool isSaturated_ = false;
bool peakFilter_ = false;
static constexpr double maxRange_ = 65535.; //16 bit
static constexpr double maxBarycenter_ = 770.;
static constexpr double trimMaxADC_ = 30.;
static constexpr double trimMaxFracTotal_ = .15;
static constexpr double trimMaxFracNeigh_ = .25;
Expand Down
7 changes: 5 additions & 2 deletions DataFormats/SiStripCluster/src/SiStripApproximateCluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
#include "DataFormats/SiStripCluster/interface/SiStripCluster.h"
#include <algorithm>
#include <cmath>
#include <assert.h>

SiStripApproximateCluster::SiStripApproximateCluster(const SiStripCluster& cluster,
unsigned int maxNSat,
float hitPredPos,
bool peakFilter) {
barycenter_ = std::round(cluster.barycenter() * 10);
compBarycenter_ = std::round(cluster.barycenter() * maxRange_/maxBarycenter_);
assert(cluster.barycenter() <= maxBarycenter_ && "Got a barycenter > maxBarycenter");
assert(compBarycenter_ <= maxRange_ && "Filling compBarycenter > maxRange");
width_ = cluster.size();
avgCharge_ = cluster.charge() / cluster.size();
avgCharge_ = (cluster.charge() + cluster.size()/2)/ cluster.size();
filter_ = false;
isSaturated_ = false;
peakFilter_ = peakFilter;
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/SiStripCluster/src/SiStripCluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SiStripCluster::SiStripCluster(const SiStripDigiRange& range) : firstStrip_(rang
}

SiStripCluster::SiStripCluster(const SiStripApproximateCluster cluster, const uint16_t maxStrips) : error_x(-99999.9) {
barycenter_ = cluster.barycenter() / 10.0;
barycenter_ = cluster.barycenter();
charge_ = cluster.width() * cluster.avgCharge();
amplitudes_.resize(cluster.width(), cluster.avgCharge());
filter_ = cluster.filter();
Expand Down
4 changes: 3 additions & 1 deletion DataFormats/SiStripCluster/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<class name="edm::Wrapper<edmNew::DetSetVector<edm::Ref<edmNew::DetSetVector<SiStripCluster>,SiStripCluster,edmNew::DetSetVector<SiStripCluster>::FindForDetSetVector> > >" />


<class name="SiStripApproximateCluster" ClassVersion="6">
<class name="SiStripApproximateCluster" ClassVersion="8">
<version ClassVersion="8" checksum="3059068941"/>
<version ClassVersion="7" checksum="2468177190"/>
<version ClassVersion="6" checksum="132211472"/>
<version ClassVersion="5" checksum="3495825183"/>
<version ClassVersion="4" checksum="2854791577"/>
Expand Down