|
|
#include <DPGAnalysis/SiStripTools/plugins/CommonModeAnalyzer.cc>
|
| CommonModeAnalyzer (const edm::ParameterSet &) |
|
| ~CommonModeAnalyzer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 65 of file CommonModeAnalyzer.cc.
◆ CommonModeAnalyzer()
Definition at line 117 of file CommonModeAnalyzer.cc.
143 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
145 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
154 m_cmdist.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 1024, -0.5, 1024 - 0.5));
155 m_cmdist.back()->GetXaxis()->SetTitle(
"ADC");
160 m_nmodules.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 20000, -0.5, 20000 - 0.5));
161 m_nmodules.back()->GetXaxis()->SetTitle(
"#modules");
166 m_napvs.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 2000, -0.5, 80000 - 0.5));
167 m_napvs.back()->GetXaxis()->SetTitle(
"#apvs");
172 m_cmvsdbxincycle.push_back(tfserv->
make<TProfile>(hname.c_str(), htitle.c_str(), 1000, -0.5, 1000 - 0.5));
References edm::ParameterSet::getParameter(), label, m_cmdist, m_cmvsbxrun, m_cmvsdbxincycle, m_cmvsorbitrun, m_napvs, m_nmodules, m_rhm, m_selections, TFileService::make(), RunHistogramManager::makeTProfile(), corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ ~CommonModeAnalyzer()
CommonModeAnalyzer::~CommonModeAnalyzer |
( |
| ) |
|
|
override |
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 199 of file CommonModeAnalyzer.cc.
234 for (
unsigned int isel = 0; isel <
m_selections.size(); ++isel) {
236 unsigned int strip = 0;
241 ((conns.size() >
strip / 2) && conns[
strip / 2] && conns[
strip / 2]->isConnected())) {
250 }
else if (digi->adc() > 0) {
252 <<
" Non zero CM in " <<
mod->detId() <<
" APV " <<
strip <<
" with " << conns.size()
253 <<
" connections and connection pointer" << conns[
strip / 2];
260 for (
unsigned int isel = 0; isel <
m_selections.size(); ++isel) {
262 m_napvs[isel]->Fill(napvs[isel]);
References edm::EDCollection< T >::begin(), edm::ESWatcher< T >::check(), edm::EDCollection< T >::end(), edm::HandleBase::failedToGet(), HcalObjRepresent::Fill(), spr::find(), SiStripDetCabling::getConnections(), APVCyclePhaseCollection::getPhase(), hcalSimParameters_cfi::he, iEvent, APVCyclePhaseCollection::invalid, isSelected(), edm::HandleBase::isValid(), LogDebug, m_apvphasecollToken, m_cmdist, m_cmvsbxrun, m_cmvsdbxincycle, m_cmvsorbitrun, m_detCabling, m_detCablingWatcher, m_digibadmodulecollectionToken, m_digicollectionToken, m_historyProductToken, m_ignorebadfedmod, m_ignorenotconnected, m_napvs, m_nevents, m_nmodules, m_phasepart, m_selections, mod(), APVCyclePhaseCollection::multiphase, APVCyclePhaseCollection::nopartition, and digitizers_cfi::strip.
◆ beginJob()
void CommonModeAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ beginRun()
Reimplemented from edm::EDAnalyzer.
Definition at line 266 of file CommonModeAnalyzer.cc.
269 for (std::vector<TProfile**>::const_iterator cmvsbx =
m_cmvsbxrun.begin(); cmvsbx !=
m_cmvsbxrun.end(); ++cmvsbx) {
270 if (*cmvsbx && *(*cmvsbx)) {
271 (*(*cmvsbx))->GetXaxis()->SetTitle(
"BX");
272 (*(*cmvsbx))->GetYaxis()->SetTitle(
"CM (ADC counts)");
277 if (*cmvsorbit && *(*cmvsorbit)) {
278 (*(*cmvsorbit))->GetXaxis()->SetTitle(
"orbit");
279 (*(*cmvsorbit))->GetYaxis()->SetTitle(
"CM (ADC counts)");
280 (*(*cmvsorbit))->SetCanExtend(TH1::kXaxis);
References RunHistogramManager::beginRun(), m_cmvsbxrun, m_cmvsorbitrun, and m_rhm.
◆ endJob()
void CommonModeAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ endRun()
◆ updateDetCabling()
◆ m_apvphasecollToken
◆ m_cmdist
std::vector<TH1D*> CommonModeAnalyzer::m_cmdist |
|
private |
◆ m_cmvsbxrun
std::vector<TProfile**> CommonModeAnalyzer::m_cmvsbxrun |
|
private |
◆ m_cmvsdbxincycle
std::vector<TProfile*> CommonModeAnalyzer::m_cmvsdbxincycle |
|
private |
◆ m_cmvsorbitrun
std::vector<TProfile**> CommonModeAnalyzer::m_cmvsorbitrun |
|
private |
◆ m_detCabling
◆ m_detCablingToken
◆ m_detCablingWatcher
◆ m_digibadmodulecollectionToken
◆ m_digicollectionToken
◆ m_historyProductToken
◆ m_ignorebadfedmod
const bool CommonModeAnalyzer::m_ignorebadfedmod |
|
private |
◆ m_ignorenotconnected
const bool CommonModeAnalyzer::m_ignorenotconnected |
|
private |
◆ m_labels
std::vector<std::string> CommonModeAnalyzer::m_labels |
|
private |
◆ m_napvs
std::vector<TH1D*> CommonModeAnalyzer::m_napvs |
|
private |
◆ m_nevents
int CommonModeAnalyzer::m_nevents |
|
private |
◆ m_nmodules
std::vector<TH1D*> CommonModeAnalyzer::m_nmodules |
|
private |
◆ m_phasepart
const std::string CommonModeAnalyzer::m_phasepart |
|
private |
◆ m_rhm
◆ m_selections
bool check(const edm::EventSetup &iSetup)
const_iterator begin() const
edm::EDGetTokenT< EventWithHistory > m_historyProductToken
T mod(const T &a, const T &b)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
std::vector< std::string > m_labels
T getUntrackedParameter(std::string const &, T const &) const
std::vector< TProfile ** > m_cmvsbxrun
std::vector< DetIdSelector > m_selections
Log< level::Info, false > LogInfo
edm::EDGetTokenT< DetIdCollection > m_digibadmodulecollectionToken
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const std::string m_phasepart
Log< level::Warning, false > LogWarning
void updateDetCabling(const SiStripDetCablingRcd &iRcd)
RunHistogramManager m_rhm
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< TH1D * > m_napvs
std::vector< TProfile ** > m_cmvsorbitrun
std::vector< TH1D * > m_nmodules
collection_type::const_iterator const_iterator
void beginRun(const edm::Run &iRun)
const SiStripDetCabling * m_detCabling
The cabling object.
std::vector< TH1D * > m_cmdist
T * make(const Args &...args) const
make new ROOT object
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::vector< TProfile * > m_cmvsdbxincycle
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > m_digicollectionToken
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > m_detCablingToken
edm::ESWatcher< SiStripDetCablingRcd > m_detCablingWatcher
const bool m_ignorebadfedmod
const int getPhase(const std::string partition) const
T getParameter(std::string const &) const
edm::EDGetTokenT< APVCyclePhaseCollection > m_apvphasecollToken
const bool m_ignorenotconnected
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const_iterator end() const
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_id) const
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
collection_type::const_iterator const_iterator