#include <CalibTracker/SiPixelLorentzAngle/src/SiPixelLorentzAnglePCLHarvester.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
void | endRun (const edm::Run &, const edm::EventSetup &) override |
void | findMean (MonitorElement *h_drift_depth_adc_slice_, int i, int i_ring) |
SiPixelLAHarvest::fitResults | fitAndStore (std::shared_ptr< SiPixelLorentzAngle > theLA, int i_idx, int i_lay, int i_mod) |
Private Attributes | |
const SiPixelLorentzAngle * | currentLorentzAngle |
const std::string | dqmDir_ |
std::unique_ptr< TF1 > | f1 |
const double | fitChi2Cut_ |
edm::ESGetToken < TrackerGeometry, TrackerDigiGeometryRecord > | geomEsToken_ |
SiPixelLorentzAngleCalibrationHistograms | hists |
const MagneticField * | magField |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | magneticFieldToken_ |
const int | minHitsCut_ |
std::vector< std::string > | newmodulelist_ |
const std::string | recordName_ |
edm::ESGetToken < SiPixelLorentzAngle, SiPixelLorentzAngleRcd > | siPixelLAEsToken_ |
std::unique_ptr< TrackerTopology > | theTrackerTopology |
edm::ESGetToken < TrackerTopology, TrackerTopologyRcd > | topoEsTokenBR_ |
edm::ESGetToken < TrackerTopology, TrackerTopologyRcd > | topoEsTokenER_ |
float | width_ |
Additional Inherited Members | |
Public Types inherited from DQMEDHarvester | |
typedef dqm::harvesting::DQMStore | DQMStore |
typedef dqm::harvesting::MonitorElement | MonitorElement |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Protected Attributes inherited from DQMEDHarvester | |
DQMStore * | dqmstore_ |
edm::GetterOfProducts< DQMToken > | jobmegetter_ |
edm::EDPutTokenT< DQMToken > | jobToken_ |
edm::GetterOfProducts< DQMToken > | lumimegetter_ |
edm::EDPutTokenT< DQMToken > | lumiToken_ |
edm::GetterOfProducts< DQMToken > | runmegetter_ |
edm::EDPutTokenT< DQMToken > | runToken_ |
Description: reads the intermediate ALCAPROMPT DQMIO-like dataset and performs the fitting of the SiPixel Lorentz Angle in the Prompt Calibration Loop Implementation: Reads the 2D histograms of the drift vs depth created by SiPixelLorentzAnglePCLWorker modules and generates 1D profiles which are then fit with a 5th order polinomial. The extracted value of the tan(theta_L)/B are stored in an output sqlite file which is then uploaded to the conditions database
Definition at line 78 of file SiPixelLorentzAnglePCLHarvester.cc.
SiPixelLorentzAnglePCLHarvester::SiPixelLorentzAnglePCLHarvester | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 113 of file SiPixelLorentzAnglePCLHarvester.cc.
References edm::Service< T >::isAvailable().
|
overridedefault |
|
override |
Definition at line 131 of file SiPixelLorentzAnglePCLHarvester.cc.
References PixelEndcapName::bladeName(), Surface::bounds(), SiPixelLorentzAngleCalibrationHistograms::BPixnewDetIds_, SiPixelLorentzAngleCalibrationHistograms::BPixnewLayer_, SiPixelLorentzAngleCalibrationHistograms::BPixnewModule_, SiPixelLorentzAngleCalibrationHistograms::BPixnewmodulename_, submitPVResolutionJobs::count, currentLorentzAngle, SiPixelLorentzAngleCalibrationHistograms::detIdsList, TrackerGeometry::detsPXB(), PixelEndcapName::diskName(), spr::find(), SiPixelLorentzAngleCalibrationHistograms::FPixnewBlade_, SiPixelLorentzAngleCalibrationHistograms::FPixnewDetIds_, SiPixelLorentzAngleCalibrationHistograms::FPixnewDisk_, SiPixelLorentzAngleCalibrationHistograms::FPixnewmodulename_, GeomDet::geographicalId(), relativeConstraints::geom, geomEsToken_, edm::EventSetup::getData(), PixelBarrelName::getDetId(), PixelEndcapName::getDetId(), PixelTopologyMap::getPXBLadders(), PixelTopologyMap::getPXBModules(), hists, mps_fire::i, gpuClustering::id, phase1PixelTopology::layer, PixelBarrelName::layerName(), LogDebug, magField, magneticFieldToken_, callgraph::module, PixelBarrelName::moduleName(), newmodulelist_, SiPixelLorentzAngleCalibrationHistograms::nLadders_, SiPixelLorentzAngleCalibrationHistograms::nlay, SiPixelLorentzAngleCalibrationHistograms::nModules_, TrackerGeometry::numberOfLayers(), PixelSubdetector::PixelBarrel, TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), DetId::rawId(), siPixelLAEsToken_, GeomDet::surface(), Bounds::thickness(), topoEsTokenBR_, parallelization::uint(), and width_.
|
overrideprivatevirtual |
Implements DQMEDHarvester.
Definition at line 224 of file SiPixelLorentzAnglePCLHarvester.cc.
References newFWLiteAna::bin, dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), SiPixelLorentzAngleCalibrationHistograms::BPixnewDetIds_, SiPixelLorentzAngleCalibrationHistograms::BPixnewLayer_, SiPixelLorentzAngleCalibrationHistograms::BPixnewModule_, SiPixelLorentzAngleCalibrationHistograms::BPixnewmodulename_, dqm::implementation::NavigatorBase::cd(), currentLorentzAngle, cond::service::PoolDBOutputService::currentTime(), dqmDir_, cppFunctionSkipper::exception, validate-o2o-wbm::f, dqm::impl::MonitorElement::Fill(), findMean(), fitAndStore(), diffTreeTool::format(), dqm::implementation::IGetter::get(), SiPixelLorentzAngle::getLorentzAngle(), SiPixelLorentzAngle::getLorentzAngles(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getTH1(), SiPixelLorentzAngleCalibrationHistograms::h2_byLayerDiff_, SiPixelLorentzAngleCalibrationHistograms::h2_byLayerLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectChi2_, SiPixelLorentzAngleCalibrationHistograms::h_bySectDeltaLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectMeasLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectOccupancy_, SiPixelLorentzAngleCalibrationHistograms::h_bySectRejectLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectSetLA_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_adc2_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_adc_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_noadc_, SiPixelLorentzAngleCalibrationHistograms::h_mean_, hists, mps_fire::i, if(), edm::Service< T >::isAvailable(), dqmiolumiharvest::j, PVValHelper::ladder, phase1PixelTopology::layer, callgraph::module, SiPixelLorentzAngleCalibrationHistograms::nLadders_, SiPixelLorentzAngleCalibrationHistograms::nlay, SiPixelLorentzAngleCalibrationHistograms::nModules_, PixelSubdetector::PixelBarrel, recordName_, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), theTrackerTopology, HcalDetIdTransform::transform(), relativeConstraints::value, cms::Exception::what(), and cond::service::PoolDBOutputService::writeOneIOV().
|
overrideprivate |
Definition at line 217 of file SiPixelLorentzAnglePCLHarvester.cc.
References edm::EventSetup::getData(), theTrackerTopology, and topoEsTokenER_.
|
static |
Definition at line 694 of file SiPixelLorentzAnglePCLHarvester.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, edm::ParameterSetDescription::setComment(), edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 531 of file SiPixelLorentzAnglePCLHarvester.cc.
References relativeConstraints::error, dqm::impl::MonitorElement::getMean(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getRMS(), SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_adc2_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_adc_, SiPixelLorentzAngleCalibrationHistograms::h_drift_depth_noadc_, SiPixelLorentzAngleCalibrationHistograms::h_mean_, hists, dqmiolumiharvest::j, SiStripPI::mean, dqm::impl::MonitorElement::Reset(), dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), and mathSSE::sqrt().
Referenced by dqmEndJob().
|
private |
Definition at line 568 of file SiPixelLorentzAnglePCLHarvester.cc.
References SiPixelLorentzAngleCalibrationHistograms::BPixnewDetIds_, SiPixelLAHarvest::fitResults::chi2, currentLorentzAngle, SiPixelLorentzAngleCalibrationHistograms::detIdsList, SiPixelLAHarvest::fitResults::e0, SiPixelLAHarvest::fitResults::e1, SiPixelLAHarvest::fitResults::e2, SiPixelLAHarvest::fitResults::e3, SiPixelLAHarvest::fitResults::e4, SiPixelLAHarvest::fitResults::e5, SiPixelLAHarvest::fitResults::error_LA, f1, fitChi2Cut_, dqm::impl::MonitorElement::getBinContent(), SiPixelLorentzAngle::getLorentzAngle(), SiPixelLorentzAngleCalibrationHistograms::h_bySectChi2_, SiPixelLorentzAngleCalibrationHistograms::h_bySectDeltaLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectMeasLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectOccupancy_, SiPixelLorentzAngleCalibrationHistograms::h_bySectRejectLA_, SiPixelLorentzAngleCalibrationHistograms::h_bySectSetLA_, SiPixelLorentzAngleCalibrationHistograms::h_mean_, hists, LogDebug, magField, minHitsCut_, SiPixelLAHarvest::fitResults::ndf, SiPixelLorentzAngleCalibrationHistograms::nlay, SiPixelLorentzAngleCalibrationHistograms::nModules_, MagneticField::nominalValue(), SiPixelLAHarvest::fitResults::p0, SiPixelLAHarvest::fitResults::p1, SiPixelLAHarvest::fitResults::p2, SiPixelLAHarvest::fitResults::p3, SiPixelLAHarvest::fitResults::p4, SiPixelLAHarvest::fitResults::p5, funct::pow(), SiPixelLAHarvest::fitResults::prob, SiPixelLAHarvest::fitResults::redChi2, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), mathSSE::sqrt(), SiPixelLAHarvest::fitResults::tan_LA, and width_.
Referenced by dqmEndJob().
|
private |
Definition at line 107 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun(), dqmEndJob(), and fitAndStore().
|
private |
Definition at line 99 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by dqmEndJob().
|
private |
Definition at line 103 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by fitAndStore().
|
private |
Definition at line 100 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by fitAndStore().
|
private |
Definition at line 93 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun().
|
private |
Definition at line 106 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by python.rootplot.utilities.HistStack::__getitem__(), python.rootplot.utilities.HistStack::__iter__(), python.rootplot.utilities.HistStack::__len__(), python.rootplot.utilities.HistStack::__setitem__(), python.rootplot.utilities.HistStack::add(), python.rootplot.root2matplotlib.HistStack::bar(), python.rootplot.root2matplotlib.HistStack::bar3d(), python.rootplot.root2matplotlib.HistStack::barcluster(), python.rootplot.root2matplotlib.HistStack::barh(), python.rootplot.root2matplotlib.HistStack::barstack(), beginRun(), dqmEndJob(), python.rootplot.root2matplotlib.HistStack::errorbar(), python.rootplot.root2matplotlib.HistStack::errorbarh(), findMean(), fitAndStore(), histograms.Histograms::FormatHistos(), python.rootplot.root2matplotlib.HistStack::hist(), python.rootplot.root2matplotlib.HistStack::histstack(), python.rootplot.utilities.HistStack::max(), python.rootplot.utilities.HistStack::min(), python.rootplot.utilities.HistStack::scale(), python.rootplot.root2matplotlib.HistStack::show_titles(), and python.rootplot.utilities.HistStack::stackmax().
|
private |
Definition at line 108 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun(), and fitAndStore().
|
private |
Definition at line 96 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun().
|
private |
Definition at line 101 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by fitAndStore().
|
private |
Definition at line 98 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun().
|
private |
Definition at line 102 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by dqmEndJob().
|
private |
Definition at line 95 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun().
|
private |
Definition at line 109 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by dqmEndJob(), and endRun().
|
private |
Definition at line 94 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun().
|
private |
Definition at line 94 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by endRun().
|
private |
Definition at line 104 of file SiPixelLorentzAnglePCLHarvester.cc.
Referenced by beginRun(), and fitAndStore().