12 chambers_(ps.getParameter<std::
vector<std::
string>>(
"chambers")),
14 preclctVars_(ps.getParameter<std::
vector<std::
string>>(
"preclctVars")),
16 preclctNBin_(ps.getParameter<std::
vector<unsigned>>(
"preclctNBin")),
17 preclctMinBin_(ps.getParameter<std::
vector<double>>(
"preclctMinBin")),
18 preclctMaxBin_(ps.getParameter<std::
vector<double>>(
"preclctMaxBin")) {
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());
42 chamberHistos[iTypeCorrected][
key]->
getTH1()->SetMinimum(0);
55 for (
auto j = preclcts->begin();
j != preclcts->end();
j++) {
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());
std::vector< std::string > preclctVars_
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
CSCCLCTPreTriggerDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
Log< level::Error, false > LogError
std::vector< unsigned > preclctNBin_
const uint16_t range(const Frame &aFrame)
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > preclcts_Token_
tuple key
prepare the HTCondor submission files and eventually submit them
unsigned short iChamberType() const
std::vector< std::string > chambers_
std::vector< double > preclctMinBin_
ParameterSet const & getParameterSet(std::string const &) const
void bookHistograms(DQMStore::IBooker &)
std::vector< double > preclctMaxBin_
~CSCCLCTPreTriggerDigiValidation() override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void analyze(const edm::Event &, const edm::EventSetup &) override
std::map< uint32_t, std::map< std::string, MonitorElement * > > chamberHistos
virtual TH1 * getTH1() const
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...