CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TrackingAnalyser Class Reference

#include <TrackingAnalyzer.h>

Inheritance diagram for TrackingAnalyser:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TrackingAnalyser (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~TrackingAnalyser () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
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
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void beginJob () override
 BeginJob. More...
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 BeginRun. More...
 
void checkTrackerFEDsInLS (DQMStore::IGetter &igetter, double iLS)
 
void checkTrackerFEDsWdataInLS (DQMStore::IGetter &igetter, double iLS)
 
void dqmBeginLuminosityBlock (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
 Begin Luminosity Block. More...
 
void dqmEndJob (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override
 Endjob. More...
 
void dqmEndLuminosityBlock (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
 End Luminosity Block. More...
 

Private Attributes

TrackingActionExecutoractionExecutor_
 
const SiStripDetCablingdetCabling_
 
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcddetCablingToken_
 
const SiStripFedCablingfedCabling_
 
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcdfedCablingToken_
 
edm::ESWatcher< SiStripFedCablingRcdfedCablingWatcher_
 
int fileSaveFrequency_
 
int globalStatusFilling_
 
std::ostringstream html_out_
 
unsigned long long m_cacheID_
 
std::string nFEDinfoDir_
 
std::string nFEDinVsLSname_
 
std::string nFEDinWdataVsLSname_
 
int nLumiSecs_
 
std::string outputFileName_
 
std::string outputFilePath_
 
edm::EDGetTokenT< FEDRawDataCollectionrawDataToken_
 
int shiftReportFrequency_
 
int staticUpdateFrequency_
 
edm::ParameterSet tkMapPSet_
 
bool trackerFEDsFound_
 
bool trackerFEDsWdataFound_
 
bool verbose_
 

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
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
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< Bconsumes (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 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 ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
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
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 27 of file TrackingAnalyzer.h.

Constructor & Destructor Documentation

◆ TrackingAnalyser()

TrackingAnalyser::TrackingAnalyser ( const edm::ParameterSet ps)

Constructor.

Definition at line 40 of file TrackingAnalyzer.cc.

References actionExecutor_, visDQMUpload::buf, BUF_SIZE, groupFilesInBlocks::fin, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), globalStatusFilling_, html_out_, recoMuon::in, nFEDinfoDir_, nFEDinVsLSname_, nFEDinWdataVsLSname_, l1tstage2_dqm_sourceclient-live_cfg::rawDataTag, rawDataToken_, shiftReportFrequency_, staticUpdateFrequency_, AlCaHLTBitMon_QueryRunRegistry::string, trackerFEDsFound_, and trackerFEDsWdataFound_.

41  : verbose_(ps.getUntrackedParameter<bool>("verbose", false)),
42  fedCablingToken_(esConsumes<SiStripFedCabling, SiStripFedCablingRcd, edm::Transition::BeginRun>()),
43  detCablingToken_(esConsumes<SiStripDetCabling, SiStripDetCablingRcd, edm::Transition::BeginRun>()) {
44  edm::LogInfo("TrackingAnalyser") << "Creating TrackingAnalyser ";
45 
46  // Get TkMap ParameterSet
47  // tkMapPSet_ = ps.getParameter<edm::ParameterSet>("TkmapParameters");
48 
49  std::string localPath = std::string("DQM/TrackingMonitorClient/test/loader.html");
50  std::ifstream fin(edm::FileInPath(localPath).fullPath().c_str(), std::ios::in);
51  char buf[BUF_SIZE];
52 
53  if (!fin) {
54  edm::LogError("TrackingAnalyzer") << "Input File: loader.html"
55  << " could not be opened!" << std::endl;
56  return;
57  }
58 
59  while (fin.getline(buf, BUF_SIZE, '\n')) { // pops off the newline character
60  html_out_ << buf;
61  }
62  fin.close();
63 
64  staticUpdateFrequency_ = ps.getUntrackedParameter<int>("StaticUpdateFrequency", 1);
65  globalStatusFilling_ = ps.getUntrackedParameter<int>("GlobalStatusFilling", 1);
66  shiftReportFrequency_ = ps.getUntrackedParameter<int>("ShiftReportFrequency", 1);
67 
69  rawDataToken_ = consumes<FEDRawDataCollection>(rawDataTag);
70 
71  // instantiate web interface
73  trackerFEDsFound_ = false;
74  trackerFEDsWdataFound_ = false;
75 
76  nFEDinfoDir_ = ps.getParameter<std::string>("nFEDinfoDir");
77  nFEDinVsLSname_ = ps.getParameter<std::string>("nFEDinVsLSname");
78  nFEDinWdataVsLSname_ = ps.getParameter<std::string>("nFEDinWdataVsLSname");
79 }
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::string nFEDinfoDir_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Log< level::Error, false > LogError
T getUntrackedParameter(std::string const &, T const &) const
std::string nFEDinWdataVsLSname_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
std::string nFEDinVsLSname_
Log< level::Info, false > LogInfo
std::ostringstream html_out_
TrackingActionExecutor * actionExecutor_
#define BUF_SIZE

◆ ~TrackingAnalyser()

TrackingAnalyser::~TrackingAnalyser ( )
override

Destructor.

Definition at line 83 of file TrackingAnalyzer.cc.

83 { edm::LogInfo("TrackingAnalyser") << "Deleting TrackingAnalyser "; }
Log< level::Info, false > LogInfo

Member Function Documentation

◆ beginJob()

void TrackingAnalyser::beginJob ( void  )
overrideprivatevirtual

BeginJob.

Reimplemented from edm::one::EDProducerBase.

Definition at line 87 of file TrackingAnalyzer.cc.

References nLumiSecs_.

87 { nLumiSecs_ = 0; }

◆ beginRun()

void TrackingAnalyser::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprivate

BeginRun.

Definition at line 91 of file TrackingAnalyzer.cc.

References edm::ESWatcher< T >::check(), detCabling_, detCablingToken_, fedCabling_, fedCablingToken_, fedCablingWatcher_, and edm::EventSetup::getData().

91  {
92  edm::LogInfo("TrackingAnalyser") << " Begining of Run";
93 
94  // Check latest Fed cabling and create TrackerMapCreator
95  if (fedCablingWatcher_.check(eSetup)) { //this should check if cabling record has changed
96  edm::LogInfo("TrackingAnalyser") << "beginRun: "
97  << " Change in Cabling, recrated TrackerMap";
98  fedCabling_ = &eSetup.getData(fedCablingToken_);
99  detCabling_ = &eSetup.getData(detCablingToken_);
100  }
101 }
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
const SiStripDetCabling * detCabling_
Log< level::Info, false > LogInfo
const SiStripFedCabling * fedCabling_
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57

◆ checkTrackerFEDsInLS()

void TrackingAnalyser::checkTrackerFEDsInLS ( DQMStore::IGetter igetter,
double  iLS 
)
private

Definition at line 180 of file TrackingAnalyzer.cc.

References dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::legacy::MonitorElement::getTProfile(), nFEDinfoDir_, nFEDinVsLSname_, trackerFEDsFound_, and verbose_.

Referenced by dqmEndLuminosityBlock().

180  {
181  double nFEDinLS = 0.;
182  MonitorElement* tmpME = igetter.get(nFEDinfoDir_ + "/" + nFEDinVsLSname_);
183  if (tmpME) {
184  TProfile* tmpP = tmpME->getTProfile();
185  size_t ibin = tmpP->GetXaxis()->FindBin(iLS);
186  if (verbose_)
187  edm::LogInfo("TrackingAnalyser") << "iLS: " << iLS << " ibin: " << ibin;
188  nFEDinLS = tmpME->getBinContent(ibin);
189  if (verbose_)
190  edm::LogInfo("TrackingAnalyser") << " ---> nFEDinLS: " << nFEDinLS;
191  }
192 
193  trackerFEDsFound_ = (nFEDinLS > 0);
194  if (verbose_)
195  edm::LogInfo("TrackingAnalyser") << " ---> trackerFEDsFound_: " << trackerFEDsFound_ << std::endl;
196 }
virtual TProfile * getTProfile() const
std::string nFEDinfoDir_
std::string nFEDinVsLSname_
Log< level::Info, false > LogInfo
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:712
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ checkTrackerFEDsWdataInLS()

void TrackingAnalyser::checkTrackerFEDsWdataInLS ( DQMStore::IGetter igetter,
double  iLS 
)
private

Definition at line 198 of file TrackingAnalyzer.cc.

References dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::legacy::MonitorElement::getTProfile(), nFEDinfoDir_, nFEDinWdataVsLSname_, trackerFEDsWdataFound_, and verbose_.

Referenced by dqmEndLuminosityBlock().

198  {
199  double nFEDinLS = 0.;
200  MonitorElement* tmpME = igetter.get(nFEDinfoDir_ + "/" + nFEDinWdataVsLSname_);
201  if (verbose_)
202  edm::LogInfo("TrackingAnalyser") << "found " << nFEDinfoDir_ << "/" << nFEDinWdataVsLSname_ << " ? "
203  << (tmpME ? "YES" : "NOPE") << std::endl;
204  if (tmpME) {
205  TProfile* tmpP = tmpME->getTProfile();
206  size_t ibin = tmpP->GetXaxis()->FindBin(iLS);
207  if (verbose_)
208  edm::LogInfo("TrackingAnalyser") << "iLS: " << iLS << " ibin: " << ibin;
209  nFEDinLS = tmpME->getBinContent(ibin);
210  if (verbose_)
211  edm::LogInfo("TrackingAnalyser") << " ---> nFEDinLS: " << nFEDinLS;
212  }
213 
214  trackerFEDsWdataFound_ = (nFEDinLS > 0);
215  if (verbose_)
216  edm::LogInfo("TrackingAnalyser") << " ---> trackerFEDsWdataFound_: " << trackerFEDsWdataFound_ << std::endl;
217 }
virtual TProfile * getTProfile() const
std::string nFEDinfoDir_
std::string nFEDinWdataVsLSname_
Log< level::Info, false > LogInfo
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:712
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ dqmBeginLuminosityBlock()

void TrackingAnalyser::dqmBeginLuminosityBlock ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  eSetup 
)
private

Begin Luminosity Block.

Definition at line 105 of file TrackingAnalyzer.cc.

108  {
109  edm::LogInfo("TrackingAnalyser") << " Begin of LS transition";
110 }
Log< level::Info, false > LogInfo

◆ dqmEndJob()

void TrackingAnalyser::dqmEndJob ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_ 
)
overrideprivatevirtual

Endjob.

Implements DQMEDHarvester.

Definition at line 167 of file TrackingAnalyzer.cc.

References actionExecutor_, TrackingActionExecutor::createGlobalStatus(), TrackingActionExecutor::fillGlobalStatus(), and globalStatusFilling_.

167  {
168  edm::LogInfo("TrackingAnalyser") << " endjob called!";
169 
171  actionExecutor_->createGlobalStatus(ibooker_, igetter_);
172  // Fill Global Status
173  if (globalStatusFilling_ > 0) {
174  actionExecutor_->fillGlobalStatus(ibooker_, igetter_);
175  }
176 }
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Log< level::Info, false > LogInfo
void createGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
TrackingActionExecutor * actionExecutor_

◆ dqmEndLuminosityBlock()

void TrackingAnalyser::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  eSetup 
)
overrideprivatevirtual

End Luminosity Block.

Reimplemented from DQMEDHarvester.

Definition at line 115 of file TrackingAnalyzer.cc.

References actionExecutor_, checkTrackerFEDsInLS(), checkTrackerFEDsWdataInLS(), TrackingActionExecutor::createDummyShiftReport(), TrackingActionExecutor::createGlobalStatus(), TrackingActionExecutor::createShiftReport(), TrackingActionExecutor::fillDummyGlobalStatus(), TrackingActionExecutor::fillDummyLSStatus(), TrackingActionExecutor::fillGlobalStatus(), globalStatusFilling_, edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), edm::LuminosityBlockBase::luminosityBlock(), nLumiSecs_, shiftReportFrequency_, trackerFEDsFound_, trackerFEDsWdataFound_, and verbose_.

118  {
119  edm::LogInfo("TrackingAnalyser") << " End of LS transition, performing the DQM client operation";
120 
121  nLumiSecs_++;
122 
123  if (verbose_)
124  edm::LogInfo("TrackingAnalyser") << "[TrackingAnalyser::endLuminosityBlock] globalStatusFilling_ "
125  << (globalStatusFilling_ ? "YES" : "NOPE") << std::endl;
127  actionExecutor_->createGlobalStatus(ibooker_, igetter_);
128 
129  double iLS = lumiSeg.id().luminosityBlock();
130  checkTrackerFEDsInLS(igetter_, iLS);
131  checkTrackerFEDsWdataInLS(igetter_, iLS);
132  if (verbose_)
133  edm::LogInfo("TrackingAnalyser") << "endLuminosityBlock trackerFEDsFound_ " << (trackerFEDsFound_ ? "YES" : "NOPE")
134  << std::endl;
135  if (verbose_)
136  edm::LogInfo("TrackingAnalyser") << "endLuminosityBlock trackerFEDsWdataFound_ "
137  << (trackerFEDsWdataFound_ ? "YES" : "NOPE") << std::endl;
138 
139  if (!trackerFEDsFound_) {
142  } else {
144  actionExecutor_->fillGlobalStatus(ibooker_, igetter_);
145  if (shiftReportFrequency_ != -1)
146  actionExecutor_->createShiftReport(ibooker_, igetter_);
147  }
148  }
149 
150  if (!trackerFEDsFound_) {
152  return;
153  }
154 
155  if (verbose_)
156  edm::LogInfo("TrackingAnalyser") << "====================================================== " << std::endl;
157  if (verbose_)
158  edm::LogInfo("TrackingAnalyser") << " ===> Iteration # " << nLumiSecs_ << " " << lumiSeg.luminosityBlock()
159  << std::endl;
160  if (verbose_)
161  edm::LogInfo("TrackingAnalyser") << "====================================================== " << std::endl;
162 }
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void createShiftReport(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Log< level::Info, false > LogInfo
void createGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void checkTrackerFEDsWdataInLS(DQMStore::IGetter &igetter, double iLS)
TrackingActionExecutor * actionExecutor_
void checkTrackerFEDsInLS(DQMStore::IGetter &igetter, double iLS)

Member Data Documentation

◆ actionExecutor_

TrackingActionExecutor* TrackingAnalyser::actionExecutor_
private

Definition at line 79 of file TrackingAnalyzer.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and TrackingAnalyser().

◆ detCabling_

const SiStripDetCabling* TrackingAnalyser::detCabling_
private

Definition at line 78 of file TrackingAnalyzer.h.

Referenced by beginRun().

◆ detCablingToken_

edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> TrackingAnalyser::detCablingToken_
private

Definition at line 75 of file TrackingAnalyzer.h.

Referenced by beginRun().

◆ fedCabling_

const SiStripFedCabling* TrackingAnalyser::fedCabling_
private

Definition at line 77 of file TrackingAnalyzer.h.

Referenced by beginRun().

◆ fedCablingToken_

edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> TrackingAnalyser::fedCablingToken_
private

Definition at line 74 of file TrackingAnalyzer.h.

Referenced by beginRun().

◆ fedCablingWatcher_

edm::ESWatcher<SiStripFedCablingRcd> TrackingAnalyser::fedCablingWatcher_
private

Definition at line 76 of file TrackingAnalyzer.h.

Referenced by beginRun().

◆ fileSaveFrequency_

int TrackingAnalyser::fileSaveFrequency_
private

Definition at line 63 of file TrackingAnalyzer.h.

◆ globalStatusFilling_

int TrackingAnalyser::globalStatusFilling_
private

Definition at line 65 of file TrackingAnalyzer.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and TrackingAnalyser().

◆ html_out_

std::ostringstream TrackingAnalyser::html_out_
private

Definition at line 85 of file TrackingAnalyzer.h.

Referenced by TrackingAnalyser().

◆ m_cacheID_

unsigned long long TrackingAnalyser::m_cacheID_
private

Definition at line 81 of file TrackingAnalyzer.h.

◆ nFEDinfoDir_

std::string TrackingAnalyser::nFEDinfoDir_
private

◆ nFEDinVsLSname_

std::string TrackingAnalyser::nFEDinVsLSname_
private

Definition at line 88 of file TrackingAnalyzer.h.

Referenced by checkTrackerFEDsInLS(), and TrackingAnalyser().

◆ nFEDinWdataVsLSname_

std::string TrackingAnalyser::nFEDinWdataVsLSname_
private

Definition at line 89 of file TrackingAnalyzer.h.

Referenced by checkTrackerFEDsWdataInLS(), and TrackingAnalyser().

◆ nLumiSecs_

int TrackingAnalyser::nLumiSecs_
private

Definition at line 82 of file TrackingAnalyzer.h.

Referenced by beginJob(), and dqmEndLuminosityBlock().

◆ outputFileName_

std::string TrackingAnalyser::outputFileName_
private

Definition at line 71 of file TrackingAnalyzer.h.

◆ outputFilePath_

std::string TrackingAnalyser::outputFilePath_
private

Definition at line 70 of file TrackingAnalyzer.h.

◆ rawDataToken_

edm::EDGetTokenT<FEDRawDataCollection> TrackingAnalyser::rawDataToken_
private

Definition at line 68 of file TrackingAnalyzer.h.

Referenced by TrackingAnalyser().

◆ shiftReportFrequency_

int TrackingAnalyser::shiftReportFrequency_
private

Definition at line 66 of file TrackingAnalyzer.h.

Referenced by dqmEndLuminosityBlock(), and TrackingAnalyser().

◆ staticUpdateFrequency_

int TrackingAnalyser::staticUpdateFrequency_
private

Definition at line 64 of file TrackingAnalyzer.h.

Referenced by TrackingAnalyser().

◆ tkMapPSet_

edm::ParameterSet TrackingAnalyser::tkMapPSet_
private

Definition at line 73 of file TrackingAnalyzer.h.

◆ trackerFEDsFound_

bool TrackingAnalyser::trackerFEDsFound_
private

◆ trackerFEDsWdataFound_

bool TrackingAnalyser::trackerFEDsWdataFound_
private

◆ verbose_

bool TrackingAnalyser::verbose_
private