Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33854 from jhgoh/CleanupRPCDQM_1200
Code-cleanup of RPC-DQM
- Loading branch information
Showing
60 changed files
with
926 additions
and
1,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
<flags EDM_PLUGIN="1"/> | ||
<use name="boost"/> | ||
<use name="rootcore"/> | ||
<use name="rootgraphics"/> | ||
<use name="DQMServices/Core"/> | ||
<use name="FWCore/Framework"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="FWCore/ServiceRegistry"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="Geometry/RPCGeometry"/> | ||
<use name="Geometry/CommonDetUnit"/> | ||
<use name="Geometry/Records"/> | ||
<use name="EventFilter/RPCRawToDigi"/> | ||
<use name="DataFormats/RPCDigi"/> | ||
<use name="DataFormats/FEDRawData"/> | ||
<use name="DataFormats/MuonDetId"/> | ||
<use name="CondFormats/RPCObjects"/> | ||
<use name="CondFormats/DataRecord"/> | ||
<use name="CondFormats/RunInfo"/> | ||
<use name="CondCore/PopCon"/> | ||
<use name="EventFilter/RPCRawToDigi"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** \class RPCBookFolderStructure | ||
* | ||
* \author Anna Cimmino (INFN Napoli) | ||
* | ||
* Create folder structure for DQM histo saving | ||
*/ | ||
#ifndef RPCBookFolderStructure_H | ||
#define RPCBookFolderStructure_H | ||
|
||
#include <DataFormats/MuonDetId/interface/RPCDetId.h> | ||
#include <string> | ||
#include <fmt/format.h> | ||
|
||
struct RPCBookFolderStructure { | ||
static std::string folderStructure(const RPCDetId& detId) { | ||
if (detId.region() == 0) | ||
return fmt::format("Barrel/Wheel_{}/sector_{}/station_{}", detId.ring(), detId.sector(), detId.station()); | ||
else if (detId.region() == -1) | ||
return fmt::format("Endcap-/Disk_-{}/ring_{}/sector_{}", detId.station(), detId.ring(), detId.sector()); | ||
else if (detId.region() == 1) | ||
return fmt::format("Endcap+/Disk_{}/ring_{}/sector_{}", detId.station(), detId.ring(), detId.sector()); | ||
return "Error/Folder/Creation"; | ||
} | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef RPCNameHelper_H | ||
#define RPCNameHelper_H | ||
|
||
#include "DataFormats/MuonDetId/interface/RPCDetId.h" | ||
#include <string> | ||
#include <array> | ||
|
||
struct RPCNameHelper { | ||
static std::string name(const RPCDetId& detId, const bool useRoll); | ||
static std::string chamberName(const RPCDetId& detId); | ||
static std::string rollName(const RPCDetId& detId); | ||
static std::string regionName(const int region); | ||
|
||
static const std::array<std::string, 3> regionNames; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
DQM/RPCMonitorClient/interface/RPCRecHitProbabilityClient.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef RPCRollMapHisto_H | ||
#define RPCRollMapHisto_H | ||
|
||
#include "DQMServices/Core/interface/DQMStore.h" | ||
#include <string> | ||
|
||
struct RPCRollMapHisto { | ||
typedef dqm::reco::MonitorElement MonitorElement; | ||
//typedef dqm::impl::MonitorElement MonitorElement; | ||
//typedef DQMEDHarvester::MonitorElement MonitorElement; | ||
typedef dqm::reco::DQMStore::IBooker IBooker; | ||
|
||
static MonitorElement* bookBarrel( | ||
IBooker& booker, const int wheel, const std::string& prefix, const std::string& title, const bool useRollInfo); | ||
static MonitorElement* bookEndcap( | ||
IBooker& booker, const int disk, const std::string& prefix, const std::string& title, const bool useRollInfo); | ||
|
||
static void setBarrelRollAxis(MonitorElement* me, const int wheel, const int axis, const bool useRollInfo); | ||
static void setEndcapRollAxis(MonitorElement* me, const int disk, const int axis, const bool useRollInfo); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef RPCHistoHelper_H | ||
#define RPCHistoHelper_H | ||
|
||
#include "DQMServices/Core/interface/DQMStore.h" | ||
#include <string> | ||
|
||
struct RPCSummaryMapHisto { | ||
typedef dqm::implementation::MonitorElement MonitorElement; | ||
typedef dqm::implementation::IBooker IBooker; | ||
|
||
static MonitorElement* book(IBooker& booker, const std::string& name, const std::string& title); | ||
static void setBinBarrel(MonitorElement* me, const int wheel, const int sector, const double value); | ||
static void setBinEndcap(MonitorElement* me, const int disk, const int sector, const double value); | ||
static void setBinsBarrel(MonitorElement* me, const double value); | ||
static void setBinsEndcap(MonitorElement* me, const double value); | ||
}; | ||
|
||
#endif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<use name="DQM/RPCMonitorClient"/> | ||
<use name="DQMServices/Core"/> | ||
<use name="Geometry/RPCGeometry"/> | ||
<library name="DQMRPCMonitorClient_plugins" file="*.cc"> | ||
<flags EDM_PLUGIN="1"/> | ||
</library> |
Oops, something went wrong.