-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35507 from CMSTrackerDPG/SiPixelLorentzAngleCalib…
…rationInPCL Prompt calibration loop module for SiPixelLorentzAngle
- Loading branch information
Showing
19 changed files
with
1,499 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
CalibTracker/SiPixelLorentzAngle/interface/SiPixelLorentzAngleCalibrationStruct.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef CalibTracker_SiPixelLorentzAngle_SiPixelLorentzAngleCalibrationStruct_h | ||
#define CalibTracker_SiPixelLorentzAngle_SiPixelLorentzAngleCalibrationStruct_h | ||
|
||
#include "DQMServices/Core/interface/DQMStore.h" | ||
#include <unordered_map> | ||
|
||
struct SiPixelLorentzAngleCalibrationHistograms { | ||
public: | ||
SiPixelLorentzAngleCalibrationHistograms() = default; | ||
|
||
using MonitorMap = std::unordered_map<uint32_t, dqm::reco::MonitorElement*>; | ||
|
||
int nlay; | ||
std::vector<int> nModules_; | ||
std::vector<std::string> BPixnewmodulename_; | ||
std::vector<int> BPixnewDetIds_; | ||
std::vector<int> BPixnewModule_; | ||
std::vector<int> BPixnewLayer_; | ||
|
||
std::vector<std::string> FPixnewmodulename_; | ||
std::vector<int> FPixnewDetIds_; | ||
std::vector<int> FPixnewDisk_; | ||
std::vector<int> FPixnewBlade_; | ||
std::unordered_map<uint32_t, std::vector<uint32_t> > detIdsList; | ||
|
||
MonitorMap h_drift_depth_adc_; | ||
MonitorMap h_drift_depth_adc2_; | ||
MonitorMap h_drift_depth_noadc_; | ||
MonitorMap h_drift_depth_; | ||
MonitorMap h_mean_; | ||
|
||
dqm::reco::MonitorElement* h_tracks_; | ||
}; | ||
|
||
#endif |
11 changes: 11 additions & 0 deletions
11
CalibTracker/SiPixelLorentzAngle/python/SiPixelLorentzAnglePCLHarvester_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester | ||
from CalibTracker.SiPixelLorentzAngle.SiPixelLorentzAnglePCLWorker_cfi import SiPixelLorentzAnglePCLWorker as worker | ||
|
||
SiPixelLorentzAnglePCLHarvester = DQMEDHarvester( | ||
"SiPixelLorentzAnglePCLHarvester", | ||
newmodulelist = cms.vstring(worker.newmodulelist.value()), # taken from worker configuration, need to stay in synch | ||
dqmDir = cms.string(worker.folder.value()), # taken from worker configuration, need to stay in synch | ||
record = cms.string("SiPixelLorentzAngleRcd"), | ||
fitProbCut = cms.double(0.5) | ||
) |
27 changes: 27 additions & 0 deletions
27
CalibTracker/SiPixelLorentzAngle/python/SiPixelLorentzAnglePCLWorker_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer | ||
SiPixelLorentzAnglePCLWorker = DQMEDAnalyzer( | ||
"SiPixelLorentzAnglePCLWorker", | ||
folder = cms.string('AlCaReco/SiPixelLorentzAngle'), | ||
notInPCL = cms.bool(False), | ||
fileName = cms.string('testrun.root'), | ||
newmodulelist = cms.vstring("BPix_BmI_SEC7_LYR2_LDR12F_MOD1", | ||
"BPix_BmI_SEC8_LYR2_LDR14F_MOD1", | ||
"BPix_BmO_SEC3_LYR2_LDR5F_MOD1", | ||
"BPix_BmO_SEC3_LYR2_LDR5F_MOD2", | ||
"BPix_BmO_SEC3_LYR2_LDR5F_MOD3", | ||
"BPix_BpO_SEC1_LYR2_LDR1F_MOD1", | ||
"BPix_BpO_SEC1_LYR2_LDR1F_MOD2", | ||
"BPix_BpO_SEC1_LYR2_LDR1F_MOD3"), | ||
src = cms.InputTag("TrackRefitter"), | ||
binsDepth = cms.int32(50), | ||
binsDrift = cms.int32(200), | ||
ptMin = cms.double(3), | ||
normChi2Max = cms.double(2), | ||
clustSizeYMin = cms.int32(4), | ||
clustSizeYMinL4 = cms.int32(3), | ||
clustSizeXMax = cms.int32(5), | ||
residualMax = cms.double(0.005), | ||
clustChargeMaxPerLength = cms.double(50000) | ||
) |
Oops, something went wrong.