CMS 3D CMS Logo

GEMEfficiencyHarvester.h
Go to the documentation of this file.
1 #ifndef DQMOffline_Muon_GEMEfficiencyHarvester_h
2 #define DQMOffline_Muon_GEMEfficiencyHarvester_h
3 
16 
17 #include <vector>
18 #include <string>
19 
21 public:
23  ~GEMEfficiencyHarvester() override;
26 
27 private:
28  TProfile* computeEfficiency(const TH1F*, const TH1F*, const char*, const char*, const double confidence_level = 0.683);
29  TH2F* computeEfficiency(const TH2F*, const TH2F*, const char*, const char*);
30  std::vector<std::string> splitString(std::string, const std::string);
31  std::tuple<std::string, int, int> parseResidualName(std::string, const std::string);
34 
35  template <typename T>
36  int findResolutionBin(const T&, const std::vector<T>&);
37 
40 };
41 
42 template <typename T>
43 int GEMEfficiencyHarvester::findResolutionBin(const T& elem, const std::vector<T>& vec) {
44  auto iter = std::find(vec.begin(), vec.end(), elem);
45  int bin = (iter != vec.end()) ? std::distance(vec.begin(), iter) + 1 : -1;
46  return bin;
47 }
48 
49 #endif // DQMOffline_Muon_GEMEfficiencyHarvester_h
ConfigurationDescriptions.h
DQMEDHarvester.h
GEMEfficiencyHarvester::parseResidualName
std::tuple< std::string, int, int > parseResidualName(std::string, const std::string)
Definition: GEMEfficiencyHarvester.cc:209
GEMEfficiencyHarvester::findResolutionBin
int findResolutionBin(const T &, const std::vector< T > &)
Definition: GEMEfficiencyHarvester.h:43
GEMEfficiencyHarvester::folder_
std::string folder_
Definition: GEMEfficiencyHarvester.h:38
GEMEfficiencyHarvester::GEMEfficiencyHarvester
GEMEfficiencyHarvester(const edm::ParameterSet &)
Definition: GEMEfficiencyHarvester.cc:7
GEMEfficiencyHarvester::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: GEMEfficiencyHarvester.cc:14
DQMStore.h
GEMEfficiencyHarvester::log_category_
std::string log_category_
Definition: GEMEfficiencyHarvester.h:39
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
GEMEfficiencyHarvester::~GEMEfficiencyHarvester
~GEMEfficiencyHarvester() override
Definition: GEMEfficiencyHarvester.cc:12
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
GEMEfficiencyHarvester::splitString
std::vector< std::string > splitString(std::string, const std::string)
Definition: GEMEfficiencyHarvester.cc:197
GEMEfficiencyHarvester::doResolution
void doResolution(DQMStore::IBooker &, DQMStore::IGetter &, const std::string)
Definition: GEMEfficiencyHarvester.cc:241
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
DQMEDHarvester
Definition: DQMEDHarvester.py:1
GEMEfficiencyHarvester::computeEfficiency
TProfile * computeEfficiency(const TH1F *, const TH1F *, const char *, const char *, const double confidence_level=0.683)
Definition: GEMEfficiencyHarvester.cc:20
GEMEfficiencyHarvester
Definition: GEMEfficiencyHarvester.h:20
T
long double T
Definition: Basic3DVectorLD.h:48
dqm::implementation::IGetter
Definition: DQMStore.h:484
GEMEfficiencyHarvester::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: GEMEfficiencyHarvester.cc:381
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733
GEMEfficiencyHarvester::doEfficiency
void doEfficiency(DQMStore::IBooker &, DQMStore::IGetter &)
Definition: GEMEfficiencyHarvester.cc:91