Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CalibTracker/SiPixelLorentzAngle/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
<use name="Geometry/Records"/>
<use name="SimTracker/TrackerHitAssociation"/>
<use name="MagneticField/Records"/>
<use name="DQMServices/Core"/>
<use name="CondFormats/SiPixelObjects"/>
<use name="CondFormats/SiPixelTransient"/>
<use name="CondCore/DBOutputService"/>
<use name="root"/>
<use name="clhep"/>
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
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)
)
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)
)
Loading