8 monitorDir_(ps.getParameter<std::
string>(
"monitorDir")),
9 verbose_(ps.getParameter<bool>(
"verbose")),
11 chambers_(ps.getParameter<std::
vector<std::
string>>(
"chambers")),
12 dataEmul_(ps.getParameter<std::
vector<std::
string>>(
"dataEmul")),
15 clusterVars_(ps.getParameter<std::
vector<std::
string>>(
"clusterVars")),
18 clusterNBin_(ps.getParameter<std::
vector<unsigned>>(
"clusterNBin")),
19 clusterMinBin_(ps.getParameter<std::
vector<double>>(
"clusterMinBin")),
20 clusterMaxBin_(ps.getParameter<std::
vector<double>>(
"clusterMaxBin")),
21 useDataClustersOnlyInBX0_(ps.getParameter<bool>(
"useDataClustersOnlyInBX0")) {}
29 for (
unsigned iType = 0; iType <
chambers_.size(); iType++) {
31 for (
unsigned iData = 0; iData <
dataEmul_.size(); iData++) {
33 for (
unsigned iVar = 0; iVar <
clusterVars_.size(); iVar++) {
48 edm::LogInfo(
"L1TdeGEMTPG") <<
"L1TdeGEMTPG: analyzing collections" << std::endl;
56 for (
auto it = dataClusters->begin(); it != dataClusters->end(); it++) {
57 auto range = dataClusters->get((*it).first);
59 for (
auto cluster =
range.first; cluster !=
range.second; cluster++) {
60 if (cluster->isValid()) {
72 for (
auto it = emulClusters->begin(); it != emulClusters->end(); it++) {
73 auto range = emulClusters->get((*it).first);
75 for (
auto cluster =
range.first; cluster !=
range.second; cluster++) {
76 if (cluster->isValid()) {
std::vector< unsigned > clusterNBin_
const edm::EventSetup & c
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< std::string > chambers_
std::vector< std::string > dataEmul_
std::vector< double > clusterMinBin_
const uint16_t range(const Frame &aFrame)
bool useDataClustersOnlyInBX0_
L1TdeGEMTPG(const edm::ParameterSet &ps)
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< std::string > clusterVars_
std::vector< double > clusterMaxBin_
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Info, false > LogInfo
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< GEMPadDigiClusterCollection > emul_token_
edm::EDGetTokenT< GEMPadDigiClusterCollection > data_token_
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