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());
55 for (
auto j = preclcts->
begin();
j != preclcts->
end();
j++) {
59 auto range = preclcts->
get((*j).first);
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)
CSCCLCTPreTriggerDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
ParameterSet const & getParameterSet(std::string const &) const
Log< level::Error, false > LogError
std::vector< unsigned > preclctNBin_
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > preclcts_Token_
Range get(const IndexType &index) const
return the digis for a given DetUnit
key
prepare the HTCondor submission files and eventually submit them
DigiRangeIterator begin() const
std::vector< std::string > chambers_
std::vector< double > preclctMinBin_
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
DigiRangeIterator end() const
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...