Go to the documentation of this file. 1 #ifndef TESTRESOLUTION_CC
2 #define TESTRESOLUTION_CC
23 : theMuonLabel_(iConfig.getParameter<
edm::
InputTag>(
"MuonLabel")),
27 theMuonType_(iConfig.getParameter<
int>(
"MuonType")),
28 theRootFileName_(iConfig.getUntrackedParameter<
std::
string>(
"OutputFileName")) {
32 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)");
76 std::vector<reco::LeafCandidate>
muons;
93 std::vector<reco::LeafCandidate>::const_iterator recMuon =
muons.begin();
94 for (; recMuon !=
muons.end(); ++recMuon) {
103 #endif // TESTRESOLUTION_CC
TestResolution(const edm::ParameterSet &)
std::unique_ptr< ResolutionFunction > resolutionFunction_
T getUntrackedParameter(std::string const &, T const &) const
std::vector< reco::LeafCandidate > fillMuonCollection(const std::vector< T > &tracks)
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
std::vector< Muon > MuonCollection
collection of Muon objects
edm::EDGetTokenT< reco::MuonCollection > glbMuonsToken_
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
edm::EDGetTokenT< reco::TrackCollection > saMuonsToken_
std::string theRootFileName_
~TestResolution() override
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::TrackCollection > tracksToken_