#include <CSCCLCTPreTriggerDigiValidation.h>
◆ CSCCLCTPreTriggerDigiValidation()
Definition at line 9 of file CSCCLCTPreTriggerDigiValidation.cc.
References edm::ParameterSet::getParameterSet(), inputTag_, preclcts_Token_, and muonDTDigis_cfi::pset.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< std::string > preclctVars_
T getParameter(std::string const &) const
ParameterSet const & getParameterSet(std::string const &) const
std::vector< unsigned > preclctNBin_
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > preclcts_Token_
CSCBaseValidation(const edm::ParameterSet &ps)
std::vector< std::string > chambers_
std::vector< double > preclctMinBin_
std::vector< double > preclctMaxBin_
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...
◆ ~CSCCLCTPreTriggerDigiValidation()
CSCCLCTPreTriggerDigiValidation::~CSCCLCTPreTriggerDigiValidation |
( |
| ) |
|
|
override |
◆ analyze()
Implements CSCBaseValidation.
Definition at line 48 of file CSCCLCTPreTriggerDigiValidation.cc.
References MuonDigiCollection< IndexType, DigiType >::begin(), chamberHistos, chambers_, MillePedeFileConverter_cfg::e, edm::InputTag::encode(), MuonDigiCollection< IndexType, DigiType >::end(), CSCDetId::endcap(), MuonDigiCollection< IndexType, DigiType >::get(), CSCDetId::iChamberType(), inputTag_, edm::HandleBase::isValid(), dqmiolumiharvest::j, preclcts_Token_, and FastTimerService_cff::range.
55 for (
auto j = preclcts->
begin();
j != preclcts->
end();
j++) {
57 int chamberType = detId.iChamberType();
59 auto range = preclcts->
get((*j).first);
61 const unsigned typeCorrected(detId.endcap() == 1 ? chamberType - 2 : chamberType - 2 +
chambers_.size());
62 for (
auto preclct =
range.first; preclct !=
range.second; preclct++) {
63 if (preclct->isValid()) {
64 chamberHistos[typeCorrected][
"preclct_cfeb"]->Fill(preclct->getCFEB());
65 chamberHistos[typeCorrected][
"preclct_halfstrip"]->Fill(preclct->getKeyStrip());
66 chamberHistos[typeCorrected][
"preclct_bx"]->Fill(preclct->getBX());
Log< level::Error, false > LogError
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > preclcts_Token_
Range get(const IndexType &index) const
return the digis for a given DetUnit
DigiRangeIterator begin() const
std::vector< std::string > chambers_
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
DigiRangeIterator end() const
◆ bookHistograms()
Definition at line 26 of file CSCCLCTPreTriggerDigiValidation.cc.
References dqm::implementation::IBooker::book1D(), chamberHistos, chambers_, B2GTnPMonitor_cfi::histTitle, crabWrapper::key, preclctMaxBin_, preclctMinBin_, preclctNBin_, preclctVars_, dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
30 for (
unsigned iType = 0; iType <
chambers_.size(); iType++) {
32 for (
unsigned iEndcap = 0; iEndcap < 2; iEndcap++) {
35 for (
unsigned iVar = 0; iVar <
preclctVars_.size(); iVar++) {
39 const unsigned iTypeCorrected(iEndcap == 0 ? iType : iType +
chambers_.size());
std::vector< std::string > preclctVars_
virtual void setCurrentFolder(std::string const &fullpath)
std::vector< unsigned > preclctNBin_
std::vector< std::string > chambers_
std::vector< double > preclctMinBin_
std::vector< double > preclctMaxBin_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
◆ chamberHistos
std::map<uint32_t, std::map<std::string, MonitorElement *> > CSCCLCTPreTriggerDigiValidation::chamberHistos |
|
private |
◆ chambers_
std::vector<std::string> CSCCLCTPreTriggerDigiValidation::chambers_ |
|
private |
◆ chambersRun3_
std::vector<unsigned> CSCCLCTPreTriggerDigiValidation::chambersRun3_ |
|
private |
◆ inputTag_
◆ isRun3_
bool CSCCLCTPreTriggerDigiValidation::isRun3_ |
|
private |
◆ preclctMaxBin_
std::vector<double> CSCCLCTPreTriggerDigiValidation::preclctMaxBin_ |
|
private |
◆ preclctMinBin_
std::vector<double> CSCCLCTPreTriggerDigiValidation::preclctMinBin_ |
|
private |
◆ preclctNBin_
std::vector<unsigned> CSCCLCTPreTriggerDigiValidation::preclctNBin_ |
|
private |
◆ preclcts_Token_
◆ preclctVars_
std::vector<std::string> CSCCLCTPreTriggerDigiValidation::preclctVars_ |
|
private |