-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Ecal phase2 sim reco 11 1 x #29386
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
Ecal phase2 sim reco 11 1 x #29386
Changes from all commits
9ce2f7d
a9a764a
25ce2c5
9172b42
d0e35e9
ebb7343
a43270b
022e1ab
f68b434
0a9a0c2
2c927f7
1fbb4e8
aaf630d
56838fe
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 |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| #include "CalibFormats/CaloObjects/interface/CaloTSamples.icc" | ||
| #include "CalibFormats/CaloObjects/interface/CaloTSamplesBase.icc" | ||
| #include "CalibFormats/CaloObjects/interface/CaloTSamples.icc" | ||
| #include "CondFormats/EcalObjects/interface/EcalConstants.h" | ||
|
|
||
| template class CaloTSamplesBase<float>; | ||
|
|
||
| template class CaloTSamples<float, 10>; | ||
| template class CaloTSamples<float, ecalPh2::sampleSize>; | ||
| template class CaloTSamples<float, 3>; | ||
| template class CaloTSamples<float, 10>; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #ifndef CondFormats_DataRecord_EcalCATIAGainRatiosRcd_H | ||
| #define CondFormats_DataRecord_EcalCATIAGainRatiosRcd_H | ||
|
|
||
| #include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
| class EcalCATIAGainRatiosRcd : public edm::eventsetup::EventSetupRecordImplementation<EcalCATIAGainRatiosRcd> {}; | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #ifndef CondFormats_DataRecord_EcalLiteDTUPedestalsRcd_h | ||
| #define CondFormats_DataRecord_EcalLiteDTUPedestalsRcd_h | ||
|
|
||
| #include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
| class EcalLiteDTUPedestalsRcd : public edm::eventsetup::EventSetupRecordImplementation<EcalLiteDTUPedestalsRcd> {}; | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #include "CondFormats/DataRecord/interface/EcalCATIAGainRatiosRcd.h" | ||
| #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
|
||
| EVENTSETUP_RECORD_REG(EcalCATIAGainRatiosRcd); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #include "CondFormats/DataRecord/interface/EcalLiteDTUPedestalsRcd.h" | ||
| #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
|
||
| EVENTSETUP_RECORD_REG(EcalLiteDTUPedestalsRcd); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #ifndef CondFormats_EcalObjects_EcalCATIAGainRatios_h | ||
| #define CondFormats_EcalObjects_EcalCATIAGainRatios_h | ||
|
|
||
| #include "CondFormats/EcalObjects/interface/EcalCondObjectContainer.h" | ||
|
|
||
| typedef float EcalCATIAGainRatio; | ||
| typedef EcalFloatCondObjectContainer EcalCATIAGainRatioMap; | ||
| typedef EcalCATIAGainRatioMap EcalCATIAGainRatios; | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| //Namespaces for Phase1 and Phase2 | ||
| #ifndef CondFormats_EcalObject_EcalConstants_h | ||
| #define CondFormats_EcalObject_EcalConstants_h | ||
|
|
||
| class ecalPh2 { | ||
| public: | ||
| static constexpr double Samp_Period = 6.25; | ||
| static constexpr unsigned int NGAINS = 2; | ||
| static constexpr float gains[NGAINS] = {10., 1.}; | ||
| static constexpr unsigned int gainId1 = 1; | ||
| static constexpr unsigned int gainId10 = 0; | ||
| static constexpr unsigned int sampleSize = 16; | ||
| static constexpr unsigned int NBITS = 12; // number of available bits | ||
| static constexpr unsigned int MAXADC = (1 << NBITS) - 1; // 2^12 -1, adc max range | ||
| static constexpr unsigned int kEBChannels = 61200; | ||
| static constexpr double maxEneEB = 2000.; | ||
| static constexpr unsigned int kNOffsets = 2000; | ||
| static constexpr unsigned int kAdcMask = 0xFFF; | ||
| static constexpr unsigned int kGainIdMask = 0x3; | ||
|
|
||
| }; // namespace ecalPh2 | ||
|
|
||
| class ecalPh1 { | ||
| public: | ||
| static constexpr double Samp_Period = 25.; | ||
| static constexpr unsigned int NGAINS = 4; | ||
| static constexpr float gains[NGAINS] = {0., 12., 6., 1.}; | ||
| static constexpr unsigned int sampleSize = 10; | ||
| static constexpr unsigned int kNOffsets = 2000; | ||
| }; // namespace ecalPh1 | ||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #ifndef CondFormats_EcalObject_EcalLiteDTUPedestals_h | ||
| #define CondFormats_EcalObject_EcalLiteDTUPedestals_h | ||
|
|
||
| #include "CondFormats/Serialization/interface/Serializable.h" | ||
| #include "CondFormats/EcalObjects/interface/EcalCondObjectContainer.h" | ||
| #include "CondFormats/EcalObjects/interface/EcalConstants.h" | ||
|
|
||
| class EcalLiteDTUPedestals { | ||
| public: | ||
| int setMean(unsigned int i, float value) { | ||
| if (i >= ecalPh2::NGAINS) | ||
| return -1; | ||
| else | ||
| meanarray[i] = value; | ||
| return 1; | ||
| } | ||
|
|
||
| int setRMS(unsigned int i, float value) { | ||
| if (i >= ecalPh2::NGAINS) | ||
| return -1; | ||
| else | ||
| rmsarray[i] = value; | ||
|
Contributor
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. rmsarray is double but here the element is set by a float.
Contributor
Author
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. rmsarray is now a float |
||
| return 1; | ||
| } | ||
|
|
||
| float mean(unsigned int i) const { return meanarray[i]; } | ||
|
|
||
| float rms(unsigned int i) const { return rmsarray[i]; } | ||
|
|
||
| private: | ||
| float meanarray[ecalPh2::NGAINS] = {13., 8.}; | ||
| float rmsarray[ecalPh2::NGAINS] = {2.8, 1.2}; | ||
| COND_SERIALIZABLE; | ||
| }; | ||
|
|
||
| typedef EcalCondObjectContainer<EcalLiteDTUPedestals> EcalLiteDTUPedestalsMap; | ||
| typedef EcalLiteDTUPedestalsMap::const_iterator EcalLiteDTUPedestalsMapIterator; | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #include "CondFormats/EcalObjects/interface/EcalLiteDTUPedestals.h" | ||
| #include "FWCore/Utilities/interface/typelookup.h" | ||
|
|
||
| TYPELOOKUP_DATA_REG(EcalLiteDTUPedestalsMap); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
|
|
||
| from Configuration.Eras.Era_Phase2C10_cff import Phase2C10 | ||
| from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel | ||
| from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose | ||
|
|
||
| Phase2C10_Ecal_Devel = cms.ModifierChain(Phase2C10,phase2_hfnose,phase2_ecal_devel) | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
|
|
||
| phase2_ecal_devel = cms.Modifier() | ||
|
|
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.
meanarray is double but here the element is set by a float.
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.
meanarray is now a float