1 #ifndef TESTRESOLUTION_CC 2 #define TESTRESOLUTION_CC 21 theMuonLabel_( iConfig.getParameter<
edm::InputTag>(
"MuonLabel" ) ),
25 theMuonType_( iConfig.getParameter<
int>(
"MuonType" ) ),
26 theRootFileName_( iConfig.getUntrackedParameter<
std::
string>(
"OutputFileName") )
31 sigmaPt_ =
new TProfile(
"sigmaPtOverPt",
"sigmaPt/Pt vs muon Pt", 1000, 0, 100);
42 TCanvas
canvas(
"sigmaPtOverPt",
"sigmaPt/Pt vs muon Pt", 1000, 800);
44 sigmaPt_->GetXaxis()->SetTitle(
"Pt(GeV)");
77 std::vector<reco::LeafCandidate>
muons;
96 std::vector<reco::LeafCandidate>::const_iterator recMuon = muons.begin();
97 for ( ; recMuon!=muons.end(); ++recMuon ) {
108 #endif // TESTRESOLUTION_CC T getUntrackedParameter(std::string const &, T const &) const
TestResolution(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::TrackCollection > saMuonsToken_
std::vector< Track > TrackCollection
collection of Tracks
std::string theRootFileName_
std::vector< Muon > MuonCollection
collection of Muon objects
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::auto_ptr< ResolutionFunction > resolutionFunction_
std::vector< reco::LeafCandidate > fillMuonCollection(const std::vector< T > &tracks)
edm::EDGetTokenT< reco::MuonCollection > glbMuonsToken_