-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Phase 2 - HGCal - Adding Energy above noise in RecHit #19572
Changes from 15 commits
e861647
616a1c4
e6e68a3
a7fc9c9
eb4de6b
cbe55d2
60dd037
4e7e785
6141e4f
10adf7e
0571e86
772f129
760a622
e156e40
86d9e65
4264517
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
#include "FWCore/Framework/interface/ESHandle.h" | ||
|
||
#include "Geometry/HGCalGeometry/interface/HGCalGeometry.h" | ||
#include "RecoLocalCalo/HGCalRecAlgos/interface/RecHitTools.h" | ||
|
||
class HGCalRecHitWorkerSimple : public HGCalRecHitWorkerBaseClass { | ||
public: | ||
|
@@ -32,16 +33,25 @@ class HGCalRecHitWorkerSimple : public HGCalRecHitWorkerBaseClass { | |
double HGCHEB_keV2DIGI_, hgchebUncalib2GeV_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Start data member names with lower case |
||
bool HGCEE_isSiFE_, HGCHEF_isSiFE_, HGCHEB_isSiFE_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Start data member names with lower case |
||
|
||
|
||
|
||
std::vector<double> HGCEE_noise_fC_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Start data member names with lower case |
||
std::vector<double> HGCHEF_noise_fC_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Start data member names with lower case |
||
double HGCHEB_noise_MIP_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Start data member names with lower case |
||
|
||
|
||
std::array<const HGCalDDDConstants*, 3> ddds_; | ||
|
||
std::vector<int> v_chstatus_; | ||
|
||
std::vector<int> v_DB_reco_flags_; | ||
bool killDeadChannels_; | ||
|
||
std::vector<float> rcorr_; | ||
|
||
std::vector<double> rcorr_; | ||
std::vector<float> weights_; | ||
std::unique_ptr<HGCalRecHitSimpleAlgo> rechitMaker_; | ||
std::unique_ptr<hgcal::RecHitTools> tools_; | ||
|
||
}; | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for a loop and
push_back
, just do:In fact, all the member variables being initialized from parameter set values can just go into the member initializer list of the constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weights_ is a vector of floats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. Never mind.