8 consumes<GEMPadDigiClusterCollection>(
cfg.getParameter<
edm::InputTag>(
"padDigiClusterInputLabel"));
21 desc.addUntracked<
std::string>(
"logCategory",
"GEMPadDigiClusterSource");
22 desc.add<
int>(
"bxMin", -15);
23 desc.add<
int>(
"bxMax", 15);
24 desc.add<
int>(
"clsMax", 9);
25 desc.add<
int>(
"ClusterSizeBinNum", 9);
26 descriptions.
add(
"GEMPadDigiClusterSource",
desc);
44 "Difference of Trigger Primitive Pad Number and BX ",
51 "Lay1 - Lay2 cluster central pad",
52 "Lay1 - Lay2 cluster BX");
55 "Difference of Trigger Primitive Pad Number ",
59 "Lay1 - Lay2 cluster central pad");
61 this,
"delta_bx",
"Difference of Trigger Primitive BX ", 21, -10 - 0.5, 10 + 0.5,
"Lay1 - Lay2 cluster BX");
65 MEMap4Inf(
this,
"occ",
"Trigger Primitive Occupancy ", 1, -0.5, 1.5, 1, 0.5, 1.5,
"Pad number",
"i#eta");
68 "Trigger Primitive Pad Number and BX ",
78 MEMap4Inf(
this,
"cls",
"Trigger Primitive Cluster Size ", 9, 0.5, 9 + 0.5, 1, 0.5, 1.5,
"Cluster Size",
"i#eta");
142 int med_pad1, med_pad2;
144 for (
auto it = gemPadDigiClusters->begin();
it != gemPadDigiClusters->end();
it++) {
145 auto range = gemPadDigiClusters->get((*it).first);
147 for (
auto cluster =
range.first; cluster !=
range.second; cluster++) {
148 if (cluster->isValid()) {
157 Int_t nCLS = cluster->pads().size();
162 med_pad1 = floor((cluster->pads().front() + cluster->pads().front() + cluster->pads().size() - 1) / 2);
163 for (
auto it2 = gemPadDigiClusters->begin(); it2 != gemPadDigiClusters->end(); it2++) {
164 auto range2 = gemPadDigiClusters->get((*it2).first);
166 for (
auto cluster2 = range2.first; cluster2 != range2.second; cluster2++) {
167 if (cluster2->isValid()) {
168 med_pad2 = floor((cluster2->pads().front() + cluster2->pads().front() + cluster2->pads().size() - 1) / 2);
170 if (((*it).first).chamber() == ((*it2).first).
chamber() &&
172 ((*it).first).
region() == ((*it2).first).
region() && ((*it).first).
layer() == 1 &&
173 ((*it2).first).
layer() == 2) {
174 if (
abs(med_pad1 - med_pad2) <= 40 &&
abs(((*it).first).roll() - ((*it2).first).
roll()) <= 1) {
184 for (
auto pad = cluster->pads().front(); pad < (cluster->pads().front() + cluster->pads().size()); pad++) {
int ProcessWithMEMap2WithChamber(BookingHelper &bh, ME3IdsKey key) override
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
int ProcessWithMEMap4WithChamber(BookingHelper &bh, ME4IdsKey key) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void setCurrentFolder(std::string const &fullpath)
std::string strFolderMain_
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
MEMap4Inf mapPadDigiOccPerCh_
int initGeometry(edm::EventSetup const &iSetup)
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
int Fill(K key, Double_t x)
MEMap3Inf mapPadDiffPerCh_
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) override
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Int_t nClusterSizeBinNum_
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
key
prepare the HTCondor submission files and eventually submit them
#define DEFINE_FWK_MODULE(type)
int ProcessWithMEMap2WithEta(BookingHelper &bh, ME3IdsKey key) override
const GEMGeometry * GEMGeometry_
GEMPadDigiClusterSource(const edm::ParameterSet &cfg)
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
DQMStore::IBooker * getBooker()
MEMap4Inf mapPadCLSPerCh_
std::string getNameDirLayer(ME3IdsKey key3)
int ProcessWithMEMap2(BookingHelper &bh, ME2IdsKey key) override
int bookND(BookingHelper &bh, K key)
ME3IdsKey key4Tokey3(ME4IdsKey key)
edm::EDGetToken tagPadDigiCluster_
MEMap3Inf mapBXDiffPerCh_
std::tuple< Int_t, Int_t > ME2IdsKey
MEMap3Inf mapPadBXDiffPerCh_
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override