1 #ifndef TESTRESOLUTION_CC
2 #define TESTRESOLUTION_CC
21 theMuonLabel_( iConfig.getParameter<edm::InputTag>(
"MuonLabel" ) ),
22 theMuonType_( iConfig.getParameter<int>(
"MuonType" ) ),
23 theRootFileName_( iConfig.getUntrackedParameter<std::
string>(
"OutputFileName") )
28 sigmaPt_ =
new TProfile(
"sigmaPtOverPt",
"sigmaPt/Pt vs muon Pt", 1000, 0, 100);
39 TCanvas
canvas(
"sigmaPtOverPt",
"sigmaPt/Pt vs muon Pt", 1000, 800);
41 sigmaPt_->GetXaxis()->SetTitle(
"Pt(GeV)");
74 std::vector<reco::LeafCandidate>
muons;
93 std::vector<reco::LeafCandidate>::const_iterator recMuon =
muons.begin();
94 for ( ; recMuon!=
muons.end(); ++recMuon ) {
105 #endif // TESTRESOLUTION_CC
T getUntrackedParameter(std::string const &, T const &) const
TestResolution(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
std::string theRootFileName_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::auto_ptr< ResolutionFunction > resolutionFunction_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< reco::LeafCandidate > fillMuonCollection(const std::vector< T > &tracks)
edm::InputTag theMuonLabel_