forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TICLCandidate validation (cms-sw#21)
* changes to simTICLCandidates pdgId - keep original pdgId for charged simTICLCandidates w/o reco track - add check for pi0 pdgId * add ticlCandidates validation
- Loading branch information
1 parent
7b06e4e
commit e058f66
Showing
8 changed files
with
872 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
Validation/HGCalValidation/interface/TICLCandidateValidator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
#ifndef Validation_HGCalValidation_TICLCandidateValidator_h | ||
#define Validation_HGCalValidation_TICLCandidateValidator_h | ||
|
||
#include <iostream> | ||
#include <vector> | ||
#include <unordered_map> | ||
|
||
#include "FWCore/Framework/interface/ConsumesCollector.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Utilities/interface/EDGetToken.h" | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
|
||
#include "DataFormats/TrackReco/interface/Track.h" | ||
#include "DataFormats/HGCalReco/interface/Trackster.h" | ||
#include "DataFormats/HGCalReco/interface/TICLCandidate.h" | ||
|
||
#include "SimDataFormats/Associations/interface/TracksterToSimTracksterHitLCAssociator.h" | ||
|
||
#include "DQMServices/Core/interface/DQMStore.h" | ||
|
||
class TICLCandidateValidator { | ||
public: | ||
typedef dqm::legacy::DQMStore DQMStore; | ||
typedef dqm::legacy::MonitorElement MonitorElement; | ||
|
||
TICLCandidateValidator(){}; | ||
TICLCandidateValidator(edm::EDGetTokenT<std::vector<TICLCandidate>> TICLCandidates, | ||
edm::EDGetTokenT<std::vector<TICLCandidate>> simTICLCandidatesToken, | ||
edm::EDGetTokenT<std::vector<reco::Track>> recoTracksToken, | ||
edm::EDGetTokenT<std::vector<ticl::Trackster>> trackstersToken, | ||
edm::EDGetTokenT<hgcal::RecoToSimCollectionSimTracksters> associatorMapRtSToken, | ||
edm::EDGetTokenT<hgcal::SimToRecoCollectionSimTracksters> associatorMapStRToken); | ||
~TICLCandidateValidator(); | ||
|
||
void bookCandidatesHistos(DQMStore::IBooker& ibook, std::string baseDir); | ||
|
||
void fillCandidateHistos(const edm::Event& event, edm::Handle<ticl::TracksterCollection> simTrackstersCP_h); | ||
|
||
private: | ||
dqm::reco::MonitorElement* h_tracksters_in_candidate; | ||
dqm::reco::MonitorElement* h_candidate_raw_energy; | ||
dqm::reco::MonitorElement* h_candidate_regressed_energy; | ||
dqm::reco::MonitorElement* h_candidate_pT; | ||
dqm::reco::MonitorElement* h_candidate_charge; | ||
dqm::reco::MonitorElement* h_candidate_pdgId; | ||
dqm::reco::MonitorElement* h_candidate_partType; | ||
|
||
std::vector<dqm::reco::MonitorElement*> h_den_chg_energy_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_energy_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_energy_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_energy_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_chg_pt_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_pt_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_pt_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_pt_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_chg_eta_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_eta_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_eta_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_eta_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_chg_phi_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_phi_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_phi_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_chg_phi_candidate_energy; | ||
|
||
std::vector<dqm::reco::MonitorElement*> h_den_neut_energy_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_energy_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_energy_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_neut_pt_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_pt_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_pt_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_neut_eta_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_eta_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_eta_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_neut_phi_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_phi_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_neut_phi_candidate_energy; | ||
|
||
std::vector<dqm::reco::MonitorElement*> h_den_fake_chg_energy_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_energy_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_energy_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_energy_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_chg_pt_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_pt_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_pt_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_pt_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_chg_eta_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_eta_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_eta_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_eta_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_chg_phi_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_phi_candidate_track; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_phi_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_chg_phi_candidate_energy; | ||
|
||
std::vector<dqm::reco::MonitorElement*> h_den_fake_neut_energy_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_energy_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_energy_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_neut_pt_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_pt_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_pt_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_neut_eta_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_eta_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_eta_candidate_energy; | ||
std::vector<dqm::reco::MonitorElement*> h_den_fake_neut_phi_candidate; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_phi_candidate_pdgId; | ||
std::vector<dqm::reco::MonitorElement*> h_num_fake_neut_phi_candidate_energy; | ||
|
||
edm::EDGetTokenT<std::vector<TICLCandidate>> TICLCandidatesToken_; | ||
edm::EDGetTokenT<std::vector<TICLCandidate>> simTICLCandidatesToken_; | ||
edm::EDGetTokenT<std::vector<reco::Track>> recoTracksToken_; | ||
edm::EDGetTokenT<std::vector<ticl::Trackster>> trackstersToken_; | ||
edm::EDGetTokenT<hgcal::RecoToSimCollectionSimTracksters> associatorMapRtSToken_; | ||
edm::EDGetTokenT<hgcal::SimToRecoCollectionSimTracksters> associatorMapStRToken_; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.