CMS 3D CMS Logo

HSCPValidator.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HSCP
4 // Class: HSCPValidator
5 //
13 //
14 // Original Author: Seth Cooper,27 1-024,+41227672342,
15 // Created: Wed Apr 14 14:27:52 CEST 2010
16 //
17 //
24 
38 
39 
40 //
41 
42 #include "TH2F.h"
43 //
44 // class declaration
45 //
46 
48  public:
49  explicit HSCPValidator(const edm::ParameterSet&);
50  ~HSCPValidator() override;
51 
52 
53  private:
54  void beginJob() override ;
55  void analyze(const edm::Event&, const edm::EventSetup&) override;
56  void endJob() override ;
58  void makeGenPlots(const edm::Event& iEvent);
59  void makeSimTrackPlots(const edm::Event& iEvent);
60  void makeSimDigiPlotsECAL(const edm::Event& iEvent);
61  void makeSimDigiPlotsRPC(const edm::Event& iEvent);
62  void makeHLTPlots(const edm::Event& iEvent);
63  void makeRecoPlots(const edm::Event& iEvent);
64  bool IncreasedTreshold(const trigger::TriggerEvent& trEv, const edm::InputTag& InputPath, double NewThreshold, double etaCut,int NObjectAboveThreshold, bool averageThreshold);
65  // ----------member data ---------------------------
71 
72  // GEN section
80  std::vector<int> particleIds_;
82  std::map<int,int> particleIdsFoundMap_;
91  TH1F * h_genhscp_met;
95 
96 
97  //SIM-Track section
103 
104  // SIM-DIGI section
111  // ECAL
133  // RPC
138  TH1F* rpcBXBarrel_[6];
140  TH1F* rpcBXEndCap_[3];
141  //HLT
142  TH1F* hltmet;
143  TH1F* hltjet;
144  TH1F* hltmu;
145  //RECO
147  TH2F* dedxVsp;
148 
149 };
bool doSimDigiPlots_
Definition: HSCPValidator.h:69
TH1F * particleMassHist_
Definition: HSCPValidator.h:87
TH2F * simHitsEcalDigiMatchEnergyVsTimeHistEE_
TH1F * rpcTimeOfFlightBarrel_[6]
edm::EDGetTokenT< EEDigiCollection > EEDigiCollectionToken_
TH1F * rpcTimeOfFlightEndCap_[3]
void endJob() override
TH1F * simHitsEcalTimeHistEE_
edm::EDGetTokenT< EBDigiCollection > EBDigiCollectionToken_
edm::EDGetTokenT< edm::PCaloHitContainer > eeSimHitToken_
The single EDProduct to be saved for each event (AOD case)
Definition: TriggerEvent.h:25
TH1F * particlePhiHist_
Definition: HSCPValidator.h:84
TH2F * simHitsEcalEnergyVsTimeHistEB_
TH1F * simHitsEcalEnergyHistEE_
TH1F * h_genhscp_met_nohscp
Definition: HSCPValidator.h:92
edm::EDGetTokenT< edm::PCaloHitContainer > ebSimHitToken_
TH1F * digisEcalNumHistEE_
TH1F * particleBetaHist_
Definition: HSCPValidator.h:89
TH2F * digiOccupancyMapEEM_
bool IncreasedTreshold(const trigger::TriggerEvent &trEv, const edm::InputTag &InputPath, double NewThreshold, double etaCut, int NObjectAboveThreshold, bool averageThreshold)
TH1F * cluSizeDistribution_
TH1F * simHitsEcalDigiMatchTimeHistEB_
void makeSimTrackPlots(const edm::Event &iEvent)
HSCPValidator(const edm::ParameterSet &)
void makeRecoPlots(const edm::Event &iEvent)
std::vector< int > particleIds_
Definition: HSCPValidator.h:80
std::map< int, int > particleIdsFoundMap_
Definition: HSCPValidator.h:82
TH1F * simTrackParticlePtHist_
TH1F * particleEtaHist_
Definition: HSCPValidator.h:83
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken_
Definition: HSCPValidator.h:74
TH1F * simHitsEcalNumHistEE_
int iEvent
Definition: GenABIO.cc:224
TH2F * digiOccupancyMapEEP_
TH1F * particlePtHist_
Definition: HSCPValidator.h:86
TH1F * h_genhscp_scaloret
Definition: HSCPValidator.h:93
TH2F * digiOccupancyMapEB_
TH1F * efficiencyRPCRecHitSimDigis_
TH2F * simHitsEcalDigiMatchEnergyVsTimeHistEB_
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * simHitsEcalDigiMatchEnergyHistEE_
TH1F * h_genhscp_scaloret_nohscp
Definition: HSCPValidator.h:94
edm::EDGetTokenT< edm::HepMCProduct > token_
Definition: HSCPValidator.h:73
TH1F * simHitsEcalDigiMatchTimeHistEE_
std::string intToString(int num)
void makeSimDigiPlotsECAL(const edm::Event &iEvent)
edm::EDGetTokenT< edm::SimTrackContainer > simTrackToken_
~HSCPValidator() override
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitsToken_
Definition: HSCPValidator.h:78
TH2F * simHitsEcalEnergyVsTimeHistEE_
TH1F * rpcBXBarrel_[6]
TH1F * residualsRPCRecHitSimDigis_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Definition: HSCPValidator.h:79
TH1F * simHitsEcalDigiMatchIEtaHist_
TH1F * rpcBXEndCap_[3]
TH1F * simHitsEcalNumHistEB_
void beginJob() override
void makeGenPlots(const edm::Event &iEvent)
TH1F * digisEcalNumHistEB_
edm::EDGetTokenT< trigger::TriggerEvent > trEvToken_
Definition: HSCPValidator.h:75
TH1F * simTrackParticleEtaHist_
Definition: HSCPValidator.h:98
bool doSimTrackPlots_
Definition: HSCPValidator.h:68
TH1F * simHitsEcalDigiMatchIPhiHist_
TH1F * simHitsEcalDigiMatchEnergyHistEB_
TH1F * particleStatusHist_
Definition: HSCPValidator.h:88
TH1F * particlePHist_
Definition: HSCPValidator.h:85
TH1F * h_genhscp_met
Definition: HSCPValidator.h:91
TH2F * RecoHSCPPtVsGenPt
edm::ESHandle< RPCGeometry > rpcGeo
TH1F * simTrackParticlePhiHist_
Definition: HSCPValidator.h:99
void makeSimDigiPlotsRPC(const edm::Event &iEvent)
edm::EDGetTokenT< reco::TrackCollection > tkTracksToken_
Definition: HSCPValidator.h:76
void makeHLTPlots(const edm::Event &iEvent)
TH1F * simTrackParticleBetaHist_
edm::EDGetTokenT< edm::ValueMap< reco::DeDxData > > dEdxTrackToken_
Definition: HSCPValidator.h:77
TH1F * simHitsEcalEnergyHistEB_
TH1F * simTrackParticlePHist_
TH1F * particleBetaInverseHist_
Definition: HSCPValidator.h:90
TH1F * simHitsEcalTimeHistEB_