CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PPSAlignmentWorker Class Reference
Inheritance diagram for PPSAlignmentWorker:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

struct  SectorData
 

Public Member Functions

 PPSAlignmentWorker (const edm::ParameterSet &iConfig)
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (edm::ParameterSet const &)
 

Private Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &, edm::EventSetup const &iSetup) override
 

Private Attributes

bool debug_
 
edm::ESGetToken
< PPSAlignmentConfiguration,
PPSAlignmentConfigurationRcd
esTokenAnalyze_
 
edm::ESGetToken
< PPSAlignmentConfiguration,
PPSAlignmentConfigurationRcd
esTokenBookHistograms_
 
std::string folder_
 
SectorData sectorData45_
 
SectorData sectorData56_
 
edm::EDGetTokenT
< CTPPSLocalTrackLiteCollection
tracksToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 35 of file PPSAlignmentWorker.cc.

Constructor & Destructor Documentation

PPSAlignmentWorker::PPSAlignmentWorker ( const edm::ParameterSet iConfig)

Definition at line 106 of file PPSAlignmentWorker.cc.

References debug_, folder_, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

108  esConsumes<PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd, edm::Transition::BeginRun>(
109  edm::ESInputTag("", iConfig.getParameter<std::string>("label")))),
110  esTokenAnalyze_(esConsumes<PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd>(
111  edm::ESInputTag("", iConfig.getParameter<std::string>("label")))),
112  tracksToken_(consumes<CTPPSLocalTrackLiteCollection>(iConfig.getParameter<edm::InputTag>("tagTracks"))),
113  folder_(iConfig.getParameter<std::string>("folder")),
114  debug_(iConfig.getParameter<bool>("debug")) {
115  edm::LogInfo("PPS").log([&](auto& li) {
116  li << "[worker] parameters:\n";
117  li << "* label: " << iConfig.getParameter<std::string>("label") << "\n";
118  li << "* tagTracks: " << iConfig.getParameter<edm::InputTag>("tagTracks") << "\n";
119  li << "* folder: " << folder_ << "\n";
120  li << "* debug: " << std::boolalpha << debug_;
121  });
122 }
edm::ESGetToken< PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd > esTokenBookHistograms_
edm::EDGetTokenT< CTPPSLocalTrackLiteCollection > tracksToken_
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESGetToken< PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd > esTokenAnalyze_

Member Function Documentation

void PPSAlignmentWorker::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 131 of file PPSAlignmentWorker.cc.

References looper::cfg, debug_, esTokenAnalyze_, edm::Event::get(), edm::EventSetup::getData(), PPSAlignmentWorker::SectorData::process(), sectorData45_, sectorData56_, tracks, and tracksToken_.

131  {
132  const auto& tracks = iEvent.get(tracksToken_);
133 
134  const auto& cfg = iSetup.getData(esTokenAnalyze_);
135 
138 }
unsigned int process(const CTPPSLocalTrackLiteCollection &tracks, const PPSAlignmentConfiguration &cfg, bool debug)
tuple cfg
Definition: looper.py:296
auto const & tracks
cannot be loose
bool getData(T &iHolder) const
Definition: EventSetup.h:128
bool get(ProductID const &oid, Handle< PROD > &result) const
Definition: Event.h:346
edm::EDGetTokenT< CTPPSLocalTrackLiteCollection > tracksToken_
edm::ESGetToken< PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd > esTokenAnalyze_
void PPSAlignmentWorker::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 124 of file PPSAlignmentWorker.cc.

References looper::cfg, debug_, esTokenBookHistograms_, folder_, edm::EventSetup::getData(), PPSAlignmentWorker::SectorData::init(), sectorData45_, and sectorData56_.

124  {
125  const auto& cfg = iSetup.getData(esTokenBookHistograms_);
126 
127  sectorData45_.init(iBooker, cfg, cfg.sectorConfig45(), folder_ + "/worker", debug_);
128  sectorData56_.init(iBooker, cfg, cfg.sectorConfig56(), folder_ + "/worker", debug_);
129 }
edm::ESGetToken< PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd > esTokenBookHistograms_
tuple cfg
Definition: looper.py:296
void init(DQMStore::IBooker &iBooker, const PPSAlignmentConfiguration &cfg, const PPSAlignmentConfiguration::SectorConfig &scfg, const std::string &folder, bool debug)
void PPSAlignmentWorker::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 140 of file PPSAlignmentWorker.cc.

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

140  {
142 
143  desc.add<std::string>("label", "");
144  desc.add<edm::InputTag>("tagTracks", edm::InputTag("ctppsLocalTrackLiteProducer"));
145  desc.add<std::string>("folder", "AlCaReco/PPSAlignment");
146  desc.add<bool>("debug", false);
147 
148  descriptions.addWithDefaultLabel(desc);
149 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

bool PPSAlignmentWorker::debug_
private

Definition at line 101 of file PPSAlignmentWorker.cc.

Referenced by analyze(), bookHistograms(), and PPSAlignmentWorker().

edm::ESGetToken<PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd> PPSAlignmentWorker::esTokenAnalyze_
private

Definition at line 93 of file PPSAlignmentWorker.cc.

Referenced by analyze().

edm::ESGetToken<PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd> PPSAlignmentWorker::esTokenBookHistograms_
private

Definition at line 92 of file PPSAlignmentWorker.cc.

Referenced by bookHistograms().

std::string PPSAlignmentWorker::folder_
private

Definition at line 100 of file PPSAlignmentWorker.cc.

Referenced by bookHistograms(), and PPSAlignmentWorker().

SectorData PPSAlignmentWorker::sectorData45_
private

Definition at line 97 of file PPSAlignmentWorker.cc.

Referenced by analyze(), and bookHistograms().

SectorData PPSAlignmentWorker::sectorData56_
private

Definition at line 98 of file PPSAlignmentWorker.cc.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<CTPPSLocalTrackLiteCollection> PPSAlignmentWorker::tracksToken_
private

Definition at line 95 of file PPSAlignmentWorker.cc.

Referenced by analyze().