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 
30  TH2F* computeEfficiency(const TH2F*, const TH2F*, const char*, const char*);
31 
32  std::vector<std::string> splitString(std::string, const std::string);
33  std::tuple<std::string, int, int> parseResidualName(std::string, const std::string);
34 
37 
38  template <typename T>
39  int findResolutionBin(const T&, const std::vector<T>&);
40 
43 };
44 
45 template <typename T>
46 int GEMEfficiencyHarvester::findResolutionBin(const T& elem, const std::vector<T>& vec) {
47  auto iter = std::find(vec.begin(), vec.end(), elem);
48  int bin = (iter != vec.end()) ? std::distance(vec.begin(), iter) + 1 : -1;
49  return bin;
50 }
51 
52 #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:46
GEMEfficiencyHarvester::folder_
std::string folder_
Definition: GEMEfficiencyHarvester.h:41
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:42
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:380
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