#include <PhotonDataCertification.h>
|
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
|
virtual void | beginJob () |
|
virtual void | beginRun (const edm::Run &, const edm::EventSetup &) |
|
virtual void | endJob () |
|
virtual void | endRun (const edm::Run &, const edm::EventSetup &) |
|
| PhotonDataCertification (const edm::ParameterSet &pset) |
|
| ~PhotonDataCertification () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 47 of file PhotonDataCertification.h.
PhotonDataCertification::~PhotonDataCertification |
( |
| ) |
|
void PhotonDataCertification::beginJob |
( |
void |
| ) |
|
|
virtual |
void PhotonDataCertification::endJob |
( |
void |
| ) |
|
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 79 of file PhotonDataCertification.cc.
References gather_cfg::cout, and dbe_.
81 using namespace RooFit;
82 if(
verbose_)
std::cout <<
">>> EndRun (PhotonDataCertification) <<<" << std::endl;
86 dbe_->setCurrentFolder(
"Egamma/EventInfo/");
91 reportSummaryMapTH2->GetXaxis()->SetBinLabel(1,
"EB");
92 reportSummaryMapTH2->GetXaxis()->SetBinLabel(2,
"EE");
93 reportSummaryMapTH2->GetXaxis()->SetBinLabel(3,
"Total");
94 reportSummaryMapTH2->GetYaxis()->SetBinLabel(1,
"InvMassTest");
96 float EBResult =
invMassZtest(
"Egamma/PhotonAnalyzer/InvMass/h_02_invMassIsoPhotonsEBarrel",
"invMassIsolatedPhotonsEB");
97 float EEResult =
invMassZtest(
"Egamma/PhotonAnalyzer/InvMass/h_03_invMassIsoPhotonsEEndcap",
"invMassIsolatedPhotonsEE");
98 float AllResult =
invMassZtest(
"Egamma/PhotonAnalyzer/InvMass/h_01_invMassAllIsolatedPhotons",
"invMassAllIsolatedPhotons");
101 std::cout <<
"EBResult: " << EBResult << std::endl;
102 std::cout <<
"EEResult: " << EEResult << std::endl;
103 std::cout <<
"AllResult: " << AllResult << std::endl;
106 reportSummaryMapTH2->SetBinContent(1, 1, EBResult);
107 reportSummaryMapTH2->SetBinContent(2, 1, EEResult);
108 reportSummaryMapTH2->SetBinContent(3, 1, AllResult);
MonitorElement * reportSummary_
float invMassZtest(std::string path, TString name)
MonitorElement * reportSummaryMap_
TH2F * getTH2F(void) const
float PhotonDataCertification::invMassZtest |
( |
std::string |
path, |
|
|
TString |
name |
|
) |
| |
|
private |
Definition at line 113 of file PhotonDataCertification.cc.
References funct::abs(), dbe_, MonitorElement::getTH1F(), and run_regression::test.
118 if(TestElem==0)
return 0;
119 TH1F *TestHist = TestElem->
getTH1F();
120 if(TestHist==0)
return 0;
121 RooRealVar mass(
"mass",
"Mass_{2#gamma}", 0, 200,
"GeV");
122 RooRealVar mRes(
"M_{Z}",
"Z Mass", ZMass, 70, 110);
123 RooRealVar gamma(
"#Gamma",
"#Gamma", ZWidth, 0, 10.0);
124 RooBreitWigner BreitWigner(
"BreitWigner",
"Breit-Wigner",mass,mRes,gamma);
129 if(
abs(mRes.getValV() - ZMass) < ZWidth){
return 1.0;}
130 else if(
abs(mRes.getValV() - ZMass) < gamma.getValV()){
return 0.9;}
tuple path
else: Piece not in the list, fine.
Abs< T >::type abs(const T &t)
PixelRecoRange< float > Range
TH1F * getTH1F(void) const
bool PhotonDataCertification::verbose_ |
|
private |