1 #ifndef NewMuonTrackValidatorBase_h 2 #define NewMuonTrackValidatorBase_h 47 for (
unsigned int www=0;www<
label.size();www++){
53 label(pset.getParameter<
std::vector<
edm::InputTag> >(
"label")),
54 bsSrc(pset.getParameter<
edm::InputTag >(
"beamSpot")),
154 TProfile *
p1 = (TProfile*) th2->ProfileX();
158 throw cms::Exception(
"NewMuonTrackValidator") <<
"Different number of bins!";
180 TAxis *axis = h->GetXaxis();
181 int bins = axis->GetNbins();
183 float from = axis->GetXmin();
184 float to = axis->GetXmax();
185 float width = (to - from) / bins;
186 float *new_bins =
new float[bins + 1];
188 for (
int i = 0;
i <=
bins;
i++) {
189 new_bins[
i] = TMath::Power(10, from +
i * width);
192 axis->Set(bins, new_bins);
std::vector< MonitorElement * > h_ptpullphi
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< MonitorElement * > h_assocdxy
std::vector< MonitorElement * > dxyres_vs_pt
std::vector< MonitorElement * > h_misideta
std::vector< MonitorElement * > h_assochi2_prob
std::vector< MonitorElement * > h_recopu
std::vector< MonitorElement * > h_assoc2hit
std::vector< MonitorElement * > h_misiddz
std::vector< MonitorElement * > h_assocpT
std::vector< MonitorElement * > h_dxypull
std::vector< MonitorElement * > h_assoc2dz
std::vector< TrackingParticle > TrackingParticleCollection
NewMuonTrackValidatorBase(const edm::ParameterSet &pset, edm::ConsumesCollector iC)
Constructor.
std::vector< MonitorElement * > thetapull_vs_eta
double getEta(double eta)
std::vector< MonitorElement * > h_dzpull
std::vector< MonitorElement * > etares_vs_eta
std::vector< MonitorElement * > dxyres_vs_eta
edm::EDGetTokenT< TrackingParticleCollection > tp_effic_Token
std::vector< MonitorElement * > phires_vs_eta
std::vector< MonitorElement * > h_assocphi
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > track_Collection_Token
std::vector< MonitorElement * > nhits_vs_eta
std::vector< MonitorElement * > nhits_vs_phi
std::vector< MonitorElement * > h_assocpu
std::vector< MonitorElement * > thetaCotres_vs_pt
std::vector< MonitorElement * > nDThits_vs_eta
std::vector< MonitorElement * > h_assocdz
std::vector< MonitorElement * > h_misidpu
edm::InputTag label_tp_effic
std::vector< MonitorElement * > phipull_vs_phi
std::vector< MonitorElement * > dzres_vs_pt
std::string parametersDefiner
std::vector< MonitorElement * > dzpull_vs_eta
edm::EDGetTokenT< reco::BeamSpot > bsSrc_Token
std::vector< MonitorElement * > h_recophi
std::vector< MonitorElement * > h_dzpulleta
std::vector< MonitorElement * > phipull_vs_eta
std::vector< MonitorElement * > h_recodz
std::vector< MonitorElement * > h_phipull
std::vector< MonitorElement * > chi2_vs_eta
std::vector< MonitorElement * > ptres_vs_phi
std::vector< MonitorElement * > h_nmisslayers_inner
std::vector< MonitorElement * > h_nlosthits
edm::ESHandle< MagneticField > theMF
std::vector< MonitorElement * > h_thetapullphi
std::vector< MonitorElement * > h_phipullphi
NewMuonTrackValidatorBase(const edm::ParameterSet &pset)
std::vector< MonitorElement * > h_assochi2
std::vector< MonitorElement * > nME0hits_vs_eta
std::vector< MonitorElement * > nRPChits_vs_eta
double cotThetaRes_rangeMin
std::vector< MonitorElement * > h_assoceta
std::vector< MonitorElement * > h_recodxy
std::vector< MonitorElement * > h_simulhit
std::vector< MonitorElement * > h_thetapull
std::vector< MonitorElement * > h_ptpull
std::vector< MonitorElement * > h_assoc2dxy
std::vector< MonitorElement * > h_assoc2pu
std::vector< MonitorElement * > h_assocRpos
std::vector< MonitorElement * > ptpull_vs_phi
std::vector< MonitorElement * > h_ptpulleta
std::vector< MonitorElement * > thetaCotres_vs_eta
std::vector< MonitorElement * > h_misidpT
std::vector< MonitorElement * > h_tracks
std::vector< MonitorElement * > h_losthits
std::vector< MonitorElement * > dzres_vs_eta
std::vector< MonitorElement * > chi2_vs_phi
edm::EDGetTokenT< TrackingParticleCollection > tp_fake_Token
std::vector< MonitorElement * > h_nhits
std::vector< MonitorElement * > h_assocZpos
void doProfileX(MonitorElement *th2m, MonitorElement *me)
std::vector< MonitorElement * > nPixel_LayersWithMeas_vs_eta
std::vector< MonitorElement * > ptres_vs_pt
std::vector< MonitorElement * > h_nchi2
virtual ~NewMuonTrackValidatorBase()(false)
Destructor.
std::vector< MonitorElement * > dxypull_vs_eta
std::vector< MonitorElement * > h_fakes
std::vector< MonitorElement * > h_simulZpos
std::vector< MonitorElement * > phires_vs_pt
std::vector< MonitorElement * > h_simulphi
void doProfileX(TH2 *th2, MonitorElement *me)
std::vector< MonitorElement * > h_recopT
std::vector< MonitorElement * > nTRK_LayersWithMeas_vs_eta
std::vector< MonitorElement * > nGEMhits_vs_eta
std::vector< MonitorElement * > h_simuldxy
std::vector< MonitorElement * > h_simuleta
std::vector< MonitorElement * > h_simulRpos
edm::InputTag label_pileupinfo
std::vector< MonitorElement * > nlosthits_vs_eta
std::vector< MonitorElement * > h_charge
edm::InputTag label_tp_fake
std::vector< MonitorElement * > h_assoc2pT
std::vector< MonitorElement * > h_simuldz
std::vector< MonitorElement * > h_assocSharedHit
std::vector< MonitorElement * > h_etaRes
std::vector< MonitorElement * > h_assoc2eta
std::vector< MonitorElement * > ptpull_vs_eta
double cotThetaRes_rangeMax
std::vector< std::string > associators
std::vector< MonitorElement * > nRecHits_vs_nSimHits
std::vector< MonitorElement * > nCSChits_vs_eta
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupinfo_Token
std::vector< MonitorElement * > h_assocFraction
std::vector< MonitorElement * > thetapull_vs_phi
std::vector< MonitorElement * > h_assochit
std::vector< MonitorElement * > h_recohit
std::vector< MonitorElement * > h_simulpu
std::vector< MonitorElement * > h_nmisslayers_outer
std::vector< MonitorElement * > h_nchi2_prob
bool ignoremissingtkcollection_
std::vector< MonitorElement * > chi2_vs_nhits
TProfile * getTProfile(void) const
std::vector< MonitorElement * > h_thetapulleta
std::vector< MonitorElement * > h_simulpT
int getNbinsX(void) const
get # of bins in X-axis
std::vector< edm::InputTag > label
std::vector< MonitorElement * > h_misidhit
std::vector< MonitorElement * > h_recoeta
std::vector< MonitorElement * > h_phipulleta
TH2F * getTH2F(void) const
edm::ParameterSet muonHistoParameters
std::vector< MonitorElement * > h_misidphi
std::vector< MonitorElement * > h_qoverppull
std::vector< MonitorElement * > phires_vs_phi
std::vector< MonitorElement * > h_PurityVsQuality
void fillPlotNoFlow(MonitorElement *h, T val)
std::vector< MonitorElement * > h_dxypulleta
std::vector< MonitorElement * > ptres_vs_eta
std::vector< MonitorElement * > h_assoc2phi
std::vector< MonitorElement * > h_misiddxy