CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
PrimaryVertexValidation Class Reference

#include <Alignment/OfflineValidation/plugins/PrimaryVertexValidation.cc>

Inheritance diagram for PrimaryVertexValidation:
edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 PrimaryVertexValidation (const edm::ParameterSet &)
 
 ~PrimaryVertexValidation () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void add (std::map< std::string, TH1 *> &h, TH1 *hist)
 
void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (edm::Run const &iRun, edm::EventSetup const &iSetup) override
 
std::vector< TH1F * > bookResidualsHistogram (const TFileDirectory &dir, unsigned int theNOfBins, PVValHelper::residualType resType, PVValHelper::plotVariable varType, bool isNormalized=false)
 
std::map< std::string, TH1 * > bookVertexHistograms (const TFileDirectory &dir)
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void fill (std::map< std::string, TH1 *> &h, const std::string &s, double x)
 
void fill (std::map< std::string, TH1 *> &h, const std::string &s, double x, double y)
 
void fillByIndex (std::vector< TH1F *> &h, unsigned int index, double x, std::string tag="")
 
void fillMap (TH2F *trendMap, TH1F *residualsMapPlot[100][100], PVValHelper::estimator fitPar_, const int nXBins_, const int nYBins_)
 
void fillTrackHistos (std::map< std::string, TH1 *> &h, const std::string &ttype, const reco::TransientTrack *tt, const reco::Vertex &v, const reco::BeamSpot &beamSpot, double fBfield)
 
void fillTrendPlot (TH1F *trendPlot, TH1F *residualsPlot[100], PVValHelper::estimator fitPar_, const std::string &var_)
 
void fillTrendPlotByIndex (TH1F *trendPlot, std::vector< TH1F *> &h, PVValHelper::estimator fitPar_, PVValHelper::plotVariable plotVar=PVValHelper::END_OF_PLOTS)
 
std::pair< Measurement1D, Measurement1DfitResiduals (TH1 *hist)
 
Measurement1D getMAD (TH1F *histo)
 
Measurement1D getMedian (TH1F *histo)
 
std::pair< long long, long long > getRunTime (const edm::EventSetup &iSetup) const
 
std::tuple< std::string, std::string, std::string > getTypeString (PVValHelper::residualType type)
 
std::tuple< std::string, std::string, std::string > getVarString (PVValHelper::plotVariable var)
 
bool hasFirstLayerPixelHits (const reco::TransientTrack &track)
 
bool isBFieldConsistentWithMode (const edm::EventSetup &iSetup) const
 
bool isHit2D (const TrackingRecHit &hit, const PVValHelper::detectorPhase &thePhase) const
 
bool passesTrackCuts (const reco::Track &track, const reco::Vertex &vertex, const std::string &qualityString_, double dxyErrMax_, double dzErrMax_, double ptErrMax_)
 
std::pair< bool, bool > pixelHitsCheck (const reco::TransientTrack &track)
 
void SetVarToZero ()
 
void shrinkHistVectorToFit (std::vector< TH1F *> &h, unsigned int desired_size)
 
double square (double x)
 

Static Private Member Functions

static bool vtxSort (const reco::Vertex &a, const reco::Vertex &b)
 

Private Attributes

std::vector< TH1F * > a_d3DEtaResiduals
 
std::vector< TH1F * > a_d3DPhiResiduals
 
TH1F * a_d3DResidualsMap [nMaxBins_][nMaxBins_]
 
std::vector< TH1F * > a_dxEtaResiduals
 
std::vector< TH1F * > a_dxPhiResiduals
 
TH1F * a_dxyBiasResidualsMap [nMaxBins_][nMaxBins_]
 
std::vector< TH1F * > a_dxyEtaBiasResiduals
 
TH1F * a_dxyEtaMADBiasTrend
 
TH1F * a_dxyEtaMADTrend
 
TH1F * a_dxyEtaMeanBiasTrend
 
TH1F * a_dxyEtaMeanTrend
 
TH1F * a_dxyEtaMedianBiasTrend
 
TH1F * a_dxyEtaMedianTrend
 
std::vector< TH1F * > a_dxyEtaResiduals
 
TH1F * a_dxyEtaWidthBiasTrend
 
TH1F * a_dxyEtaWidthTrend
 
TH2F * a_dxyL1MeanMap
 
TH1F * a_dxyL1ResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * a_dxyL1WidthMap
 
TH1F * a_dxyladderMeanTrend
 
TH1F * a_dxyladderWidthTrend
 
TH2F * a_dxyMeanBiasMap
 
TH2F * a_dxyMeanMap
 
TH1F * a_dxymodZMeanTrend
 
TH1F * a_dxymodZWidthTrend
 
std::vector< TH1F * > a_dxyPhiBiasResiduals
 
TH1F * a_dxyPhiMADBiasTrend
 
TH1F * a_dxyPhiMADTrend
 
TH1F * a_dxyPhiMeanBiasTrend
 
TH1F * a_dxyPhiMeanTrend
 
TH1F * a_dxyPhiMedianBiasTrend
 
TH1F * a_dxyPhiMedianTrend
 
std::vector< TH1F * > a_dxyPhiResiduals
 
TH1F * a_dxyPhiWidthBiasTrend
 
TH1F * a_dxyPhiWidthTrend
 
TH1F * a_dxypTCentralMeanTrend
 
TH1F * a_dxypTCentralWidthTrend
 
TH1F * a_dxypTMeanTrend
 
TH1F * a_dxypTWidthTrend
 
TH1F * a_dxyResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * a_dxyVsEta
 
TH2F * a_dxyVsPhi
 
TH2F * a_dxyWidthBiasMap
 
TH2F * a_dxyWidthMap
 
std::vector< TH1F * > a_dyEtaResiduals
 
std::vector< TH1F * > a_dyPhiResiduals
 
TH1F * a_dzBiasResidualsMap [nMaxBins_][nMaxBins_]
 
std::vector< TH1F * > a_dzEtaBiasResiduals
 
TH1F * a_dzEtaMADBiasTrend
 
TH1F * a_dzEtaMADTrend
 
TH1F * a_dzEtaMeanBiasTrend
 
TH1F * a_dzEtaMeanTrend
 
TH1F * a_dzEtaMedianBiasTrend
 
TH1F * a_dzEtaMedianTrend
 
std::vector< TH1F * > a_dzEtaResiduals
 
TH1F * a_dzEtaWidthBiasTrend
 
TH1F * a_dzEtaWidthTrend
 
TH2F * a_dzL1MeanMap
 
TH1F * a_dzL1ResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * a_dzL1WidthMap
 
TH1F * a_dzladderMeanTrend
 
TH1F * a_dzladderWidthTrend
 
TH2F * a_dzMeanBiasMap
 
TH2F * a_dzMeanMap
 
TH1F * a_dzmodZMeanTrend
 
TH1F * a_dzmodZWidthTrend
 
std::vector< TH1F * > a_dzPhiBiasResiduals
 
TH1F * a_dzPhiMADBiasTrend
 
TH1F * a_dzPhiMADTrend
 
TH1F * a_dzPhiMeanBiasTrend
 
TH1F * a_dzPhiMeanTrend
 
TH1F * a_dzPhiMedianBiasTrend
 
TH1F * a_dzPhiMedianTrend
 
std::vector< TH1F * > a_dzPhiResiduals
 
TH1F * a_dzPhiWidthBiasTrend
 
TH1F * a_dzPhiWidthTrend
 
TH1F * a_dzpTCentralMeanTrend
 
TH1F * a_dzpTCentralWidthTrend
 
TH1F * a_dzpTMeanTrend
 
TH1F * a_dzpTWidthTrend
 
TH1F * a_dzResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * a_dzVsEta
 
TH2F * a_dzVsPhi
 
TH2F * a_dzWidthBiasMap
 
TH2F * a_dzWidthMap
 
std::vector< TH1F * > a_IP2DEtaResiduals
 
std::vector< TH1F * > a_IP2DPhiResiduals
 
std::vector< TH1F * > a_IP3DEtaResiduals
 
std::vector< TH1F * > a_IP3DPhiResiduals
 
std::vector< TH1F * > a_reszEtaResiduals
 
std::vector< TH1F * > a_reszPhiResiduals
 
bool askFirstLayerHit_
 
double Beamdxdz_
 
double Beamsigmaz_
 
double BeamWidthX_
 
double BeamWidthY_
 
double BSx0_
 
double BSy0_
 
double BSz0_
 
int charge_ [nMaxtracks_]
 
double chi2_ [nMaxtracks_]
 
double chi2ndof_ [nMaxtracks_]
 
float chi2normUnbiasedVertex_ [nMaxtracks_]
 
float chi2ProbUnbiasedVertex_ [nMaxtracks_]
 
float chi2UnbiasedVertex_ [nMaxtracks_]
 
const int compressionSettings_
 
double d3DErrorFromMyVertex_ [nMaxtracks_]
 
double d3DFromMyVertex_ [nMaxtracks_]
 
bool debug_
 
bool doBPix_
 
bool doFPix_
 
float DOFUnbiasedVertex_ [nMaxtracks_]
 
double dxy_ [nMaxtracks_]
 
double dxyBs_ [nMaxtracks_]
 
double dxyErrorFromMyVertex_ [nMaxtracks_]
 
double dxyFromMyVertex_ [nMaxtracks_]
 
double dz_ [nMaxtracks_]
 
double dzBs_ [nMaxtracks_]
 
double dzErrorFromMyVertex_ [nMaxtracks_]
 
double dzFromMyVertex_ [nMaxtracks_]
 
double eta_ [nMaxtracks_]
 
double etaOfProbe_
 
unsigned int EventNumber_
 
bool forceBeamSpotContraint_
 
edm::Service< TFileServicefs
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeomTokenBR_
 
TH2F * h2_probeEtaPhi_
 
TH2F * h2_probeEtaPt_
 
TH2F * h2_probeLayer1Map_
 
TH2F * h2_probePassingLayer1Map_
 
TH1F * h_Beamsigmaz
 
TH1F * h_BeamWidthX
 
TH1F * h_BeamWidthY
 
TH1F * h_BSx0
 
TH1F * h_BSy0
 
TH1F * h_BSz0
 
std::vector< TH1F * > h_dxy_Central_pT_
 
std::vector< TH1F * > h_dxy_ladder_
 
std::vector< TH1F * > h_dxy_ladderNoOverlap_
 
std::vector< TH1F * > h_dxy_ladderOverlap_
 
std::vector< TH1F * > h_dxy_modZ_
 
std::vector< TH1F * > h_dxy_pT_
 
std::vector< TH1F * > h_dz_Central_pT_
 
std::vector< TH1F * > h_dz_ladder_
 
std::vector< TH1F * > h_dz_modZ_
 
std::vector< TH1F * > h_dz_pT_
 
TH1F * h_etaMax
 
TH1F * h_fitVtxChi2_
 
TH1F * h_fitVtxChi2ndf_
 
TH1F * h_fitVtxChi2Prob_
 
TH1F * h_fitVtxNdof_
 
TH1F * h_fitVtxNtracks_
 
TH1F * h_fitVtxTrackAverageWeight_
 
TH1F * h_fitVtxTrackWeights_
 
TH1F * h_lumiFromConfig
 
TH1F * h_nbins
 
TH1F * h_nClus
 
TH1F * h_nLadders
 
TH1F * h_nModZ
 
TH1F * h_nOfflineVertices
 
std::vector< TH1F * > h_norm_dxy_Central_pT_
 
std::vector< TH1F * > h_norm_dxy_ladder_
 
std::vector< TH1F * > h_norm_dxy_modZ_
 
std::vector< TH1F * > h_norm_dxy_pT_
 
std::vector< TH1F * > h_norm_dz_Central_pT_
 
std::vector< TH1F * > h_norm_dz_ladder_
 
std::vector< TH1F * > h_norm_dz_modZ_
 
std::vector< TH1F * > h_norm_dz_pT_
 
TH1F * h_nTracks
 
TH1F * h_probeCharge_
 
TH1F * h_probeChi2_
 
TH1F * h_probed0RefitV_
 
TH1F * h_probed3DRefitV_
 
TH1F * h_probedxyRecoV_
 
TH1F * h_probedxyRefitV_
 
TH1F * h_probedzRecoV_
 
TH1F * h_probedzRefitV_
 
TH1F * h_probeEta_
 
TH1I * h_probeHasBPixL1Overlap_
 
TH1F * h_probeHits1D_
 
TH1F * h_probeHits2D_
 
TH1F * h_probeHits_
 
TH1F * h_probeHitsInBPIX_
 
TH1F * h_probeHitsInFPIX_
 
TH1F * h_probeHitsInTEC_
 
TH1F * h_probeHitsInTIB_
 
TH1F * h_probeHitsInTID_
 
TH1F * h_probeHitsInTOB_
 
TH1F * h_probeL1ClusterProb_
 
TH1F * h_probeL1Ladder_
 
TH1F * h_probeL1Module_
 
TH1F * h_probeNormChi2_
 
TH1F * h_probeP_
 
TH1F * h_probePhi_
 
TH1F * h_probePt_
 
TH1F * h_probePtRebin_
 
TH1F * h_probeQoverP_
 
TH1F * h_probeRecoVSigXY_
 
TH1F * h_probeRecoVSigZ_
 
TH1F * h_probeRefitVLogSig3D_
 
TH1F * h_probeRefitVSig3D_
 
TH1F * h_probeRefitVSigResZ_
 
TH1F * h_probeRefitVSigXY_
 
TH1F * h_probeRefitVSigZ_
 
TH1F * h_probereszRefitV_
 
TH1F * h_probesignIP2DRefitV_
 
TH1F * h_probez0RefitV_
 
TH1F * h_pTinfo
 
TH1F * h_recoVtxChi2ndf_
 
TH1F * h_recoVtxChi2Prob_
 
TH1F * h_recoVtxNtracks_
 
TH1F * h_recoVtxSumPt_
 
TH1I * h_runEndTimes
 
TH1I * h_runFromConfig
 
TH1I * h_runFromEvent
 
TH1F * h_runNumber
 
TH1I * h_runStartTimes
 
TH1F * h_xErrOfflineVertex
 
TH1F * h_xOfflineVertex
 
TH1F * h_yErrOfflineVertex
 
TH1F * h_yOfflineVertex
 
TH1F * h_zErrOfflineVertex
 
TH1F * h_zOfflineVertex
 
int hasRecVertex_ [nMaxtracks_]
 
std::map< std::string, TH1 * > hDA
 
double intLumi_
 
double IP3DsigFromMyVertex_ [nMaxtracks_]
 
double IPLsigFromMyVertex_ [nMaxtracks_]
 
double IPTsigFromMyVertex_ [nMaxtracks_]
 
int isGoodTrack_ [nMaxtracks_]
 
int isHighPurity_ [nMaxtracks_]
 
bool lightNtupleSwitch_
 
unsigned int LuminosityBlockNumber_
 
TFileDirectory MADTrendsDir
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
const double maxPt_
 
TFileDirectory Mean2DMapsDir
 
TFileDirectory MeanTrendsDir
 
TFileDirectory MedianTrendsDir
 
const double minPt_
 
std::array< float, nPtBins_+1 > mypT_bins_
 
std::vector< TH1F * > n_d3DEtaResiduals
 
std::vector< TH1F * > n_d3DPhiResiduals
 
TH1F * n_d3DResidualsMap [nMaxBins_][nMaxBins_]
 
TH1F * n_dxyBiasResidualsMap [nMaxBins_][nMaxBins_]
 
std::vector< TH1F * > n_dxyEtaBiasResiduals
 
TH1F * n_dxyEtaMADBiasTrend
 
TH1F * n_dxyEtaMADTrend
 
TH1F * n_dxyEtaMeanBiasTrend
 
TH1F * n_dxyEtaMeanTrend
 
TH1F * n_dxyEtaMedianBiasTrend
 
TH1F * n_dxyEtaMedianTrend
 
std::vector< TH1F * > n_dxyEtaResiduals
 
TH1F * n_dxyEtaWidthBiasTrend
 
TH1F * n_dxyEtaWidthTrend
 
TH2F * n_dxyL1MeanMap
 
TH1F * n_dxyL1ResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * n_dxyL1WidthMap
 
TH1F * n_dxyladderMeanTrend
 
TH1F * n_dxyladderWidthTrend
 
TH2F * n_dxyMeanBiasMap
 
TH2F * n_dxyMeanMap
 
TH1F * n_dxymodZMeanTrend
 
TH1F * n_dxymodZWidthTrend
 
std::vector< TH1F * > n_dxyPhiBiasResiduals
 
TH1F * n_dxyPhiMADBiasTrend
 
TH1F * n_dxyPhiMADTrend
 
TH1F * n_dxyPhiMeanBiasTrend
 
TH1F * n_dxyPhiMeanTrend
 
TH1F * n_dxyPhiMedianBiasTrend
 
TH1F * n_dxyPhiMedianTrend
 
std::vector< TH1F * > n_dxyPhiResiduals
 
TH1F * n_dxyPhiWidthBiasTrend
 
TH1F * n_dxyPhiWidthTrend
 
TH1F * n_dxypTCentralMeanTrend
 
TH1F * n_dxypTCentralWidthTrend
 
TH1F * n_dxypTMeanTrend
 
TH1F * n_dxypTWidthTrend
 
TH1F * n_dxyResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * n_dxyVsEta
 
TH2F * n_dxyVsPhi
 
TH2F * n_dxyWidthBiasMap
 
TH2F * n_dxyWidthMap
 
TH1F * n_dzBiasResidualsMap [nMaxBins_][nMaxBins_]
 
std::vector< TH1F * > n_dzEtaBiasResiduals
 
TH1F * n_dzEtaMADBiasTrend
 
TH1F * n_dzEtaMADTrend
 
TH1F * n_dzEtaMeanBiasTrend
 
TH1F * n_dzEtaMeanTrend
 
TH1F * n_dzEtaMedianBiasTrend
 
TH1F * n_dzEtaMedianTrend
 
std::vector< TH1F * > n_dzEtaResiduals
 
TH1F * n_dzEtaWidthBiasTrend
 
TH1F * n_dzEtaWidthTrend
 
TH2F * n_dzL1MeanMap
 
TH1F * n_dzL1ResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * n_dzL1WidthMap
 
TH1F * n_dzladderMeanTrend
 
TH1F * n_dzladderWidthTrend
 
TH2F * n_dzMeanBiasMap
 
TH2F * n_dzMeanMap
 
TH1F * n_dzmodZMeanTrend
 
TH1F * n_dzmodZWidthTrend
 
std::vector< TH1F * > n_dzPhiBiasResiduals
 
TH1F * n_dzPhiMADBiasTrend
 
TH1F * n_dzPhiMADTrend
 
TH1F * n_dzPhiMeanBiasTrend
 
TH1F * n_dzPhiMeanTrend
 
TH1F * n_dzPhiMedianBiasTrend
 
TH1F * n_dzPhiMedianTrend
 
std::vector< TH1F * > n_dzPhiResiduals
 
TH1F * n_dzPhiWidthBiasTrend
 
TH1F * n_dzPhiWidthTrend
 
TH1F * n_dzpTCentralMeanTrend
 
TH1F * n_dzpTCentralWidthTrend
 
TH1F * n_dzpTMeanTrend
 
TH1F * n_dzpTWidthTrend
 
TH1F * n_dzResidualsMap [nMaxBins_][nMaxBins_]
 
TH2F * n_dzVsEta
 
TH2F * n_dzVsPhi
 
TH2F * n_dzWidthBiasMap
 
TH2F * n_dzWidthMap
 
std::vector< TH1F * > n_IP2DEtaResiduals
 
std::vector< TH1F * > n_IP2DPhiResiduals
 
std::vector< TH1F * > n_IP3DEtaResiduals
 
std::vector< TH1F * > n_IP3DPhiResiduals
 
std::vector< TH1F * > n_reszEtaResiduals
 
std::vector< TH1F * > n_reszPhiResiduals
 
int nBins_
 
int nClus_
 
int Nevt_
 
int nhits1D_ [nMaxtracks_]
 
int nhits2D_ [nMaxtracks_]
 
int nhits_ [nMaxtracks_]
 
int nhitsBPIX_ [nMaxtracks_]
 
int nhitsFPIX_ [nMaxtracks_]
 
double nHitsOfProbe_
 
int nhitsTEC_ [nMaxtracks_]
 
int nhitsTIB_ [nMaxtracks_]
 
int nhitsTID_ [nMaxtracks_]
 
int nhitsTOB_ [nMaxtracks_]
 
unsigned int nLadders_ = 20
 
unsigned int nModZ_ = 9
 
int nOfflineVertices_
 
int nTracks_
 
int nTracksPerClus_
 
double p_ [nMaxtracks_]
 
PVValHelper::detectorPhase phase_
 
double phi_ [nMaxtracks_]
 
double pOfProbe_
 
double pt_ [nMaxtracks_]
 
double ptOfProbe_
 
double qoverp_ [nMaxtracks_]
 
TTree * rootTree_
 
bool runControl_
 
std::vector< unsigned int > runControlNumbers_
 
const edm::ESGetToken< RunInfo, RunInfoRcdrunInfoTokenBR_
 
unsigned int RunNumber_
 
std::map< unsigned int, std::pair< long long, long long > > runNumbersTimesLog_
 
bool storeNtuple_
 
float sumOfWeightsUnbiasedVertex_ [nMaxtracks_]
 
edm::EDGetTokenT< reco::BeamSpottheBeamspotToken_
 
PVValHelper::histodetails theDetails_
 
double theta_ [nMaxtracks_]
 
std::unique_ptr< TrackClusterizerInZtheTrackClusterizer_
 
edm::EDGetTokenT< reco::TrackCollectiontheTrackCollectionToken_
 
std::unique_ptr< TrackFilterForPVFindingBasetheTrackFilter_
 
edm::EDGetTokenT< reco::VertexCollectiontheVertexCollectionToken_
 
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtopoToken_
 
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtopoTokenBR_
 
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecordtrackingGeomToken_
 
int tracksUsedForVertexing_ [nMaxtracks_]
 
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecordttkToken_
 
bool useTracksFromRecoVtx_
 
double vertexZMax_
 
TFileDirectory Width2DMapsDir
 
TFileDirectory WidthTrendsDir
 
double wxy2_
 
double xErrOfflineVertex_
 
double xOfflineVertex_
 
double xPCA_ [nMaxtracks_]
 
double xUnbiasedVertex_ [nMaxtracks_]
 
double yErrOfflineVertex_
 
double yOfflineVertex_
 
double yPCA_ [nMaxtracks_]
 
double yUnbiasedVertex_ [nMaxtracks_]
 
double zErrOfflineVertex_
 
double zOfflineVertex_
 
double zPCA_ [nMaxtracks_]
 
double zUnbiasedVertex_ [nMaxtracks_]
 

Static Private Attributes

static const int cmToum = 10000
 
static const int nMaxBins_ = 100
 
static const int nMaxtracks_ = 10000
 
static const int nPtBins_ = 48
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Description: Validate alignment constants using unbiased vertex residuals

Implementation: <Notes on="" implementation>="">

Definition at line 73 of file PrimaryVertexValidation.h.

Constructor & Destructor Documentation

◆ PrimaryVertexValidation()

PrimaryVertexValidation::PrimaryVertexValidation ( const edm::ParameterSet iConfig)
explicit

Definition at line 68 of file PrimaryVertexValidation.cc.

References PVValHelper::d3D, debug_, PVValHelper::dx, PVValHelper::dxy, PVValHelper::END_OF_PLOTS, PVValHelper::END_OF_TYPES, PVValHelper::eta, etaOfProbe_, PVValHelper::generateBins(), PVValHelper::histodetails::getHigh(), PVValHelper::histodetails::getLow(), edm::ParameterSet::getParameter(), PVValHelper::getTypeString(), edm::ParameterSet::getUntrackedParameter(), PVValHelper::getVarString(), PVValHelper::histodetails::histobins, mps_fire::i, hcalRecHitTable_cff::ieta, hcalRecHitTable_cff::iphi, dqmiolumiharvest::j, TFileService::kSharedResource, PVValHelper::ladder, maxPt_, minPt_, PVValHelper::modZ, mypT_bins_, nBins_, PVValHelper::norm_d3D, PVValHelper::phi, PVValHelper::pT, PVValHelper::pTCentral, PVValHelper::histodetails::range, runControlNumbers_, PVValHelper::histodetails::setMap(), AlCaHLTBitMon_QueryRunRegistry::string, theBeamspotToken_, theDetails_, theTrackClusterizer_, theTrackCollectionToken_, theTrackFilter_, theVertexCollectionToken_, to_string(), and PVValHelper::histodetails::trendbins.

69  : magFieldToken_(esConsumes<MagneticField, IdealMagneticFieldRecord>()),
70  trackingGeomToken_(esConsumes<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>()),
71  ttkToken_(esConsumes<TransientTrackBuilder, TransientTrackRecord>(edm::ESInputTag("", "TransientTrackBuilder"))),
72  topoToken_(esConsumes<TrackerTopology, TrackerTopologyRcd>()),
73  topoTokenBR_(esConsumes<TrackerTopology, TrackerTopologyRcd, edm::Transition::BeginRun>()),
74  geomTokenBR_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord, edm::Transition::BeginRun>()),
75  runInfoTokenBR_(esConsumes<RunInfo, RunInfoRcd, edm::Transition::BeginRun>()),
76  compressionSettings_(iConfig.getUntrackedParameter<int>("compressionSettings", -1)),
77  storeNtuple_(iConfig.getParameter<bool>("storeNtuple")),
78  lightNtupleSwitch_(iConfig.getParameter<bool>("isLightNtuple")),
79  useTracksFromRecoVtx_(iConfig.getParameter<bool>("useTracksFromRecoVtx")),
80  vertexZMax_(iConfig.getUntrackedParameter<double>("vertexZMax", 99.)),
81  intLumi_(iConfig.getUntrackedParameter<double>("intLumi", 0.)),
82  askFirstLayerHit_(iConfig.getParameter<bool>("askFirstLayerHit")),
83  doBPix_(iConfig.getUntrackedParameter<bool>("doBPix", true)),
84  doFPix_(iConfig.getUntrackedParameter<bool>("doFPix", true)),
85  ptOfProbe_(iConfig.getUntrackedParameter<double>("probePt", 0.)),
86  pOfProbe_(iConfig.getUntrackedParameter<double>("probeP", 0.)),
87  etaOfProbe_(iConfig.getUntrackedParameter<double>("probeEta", 2.4)),
88  nHitsOfProbe_(iConfig.getUntrackedParameter<double>("probeNHits", 0.)),
89  nBins_(iConfig.getUntrackedParameter<int>("numberOfBins", 24)),
90  minPt_(iConfig.getUntrackedParameter<double>("minPt", 1.)),
91  maxPt_(iConfig.getUntrackedParameter<double>("maxPt", 20.)),
92  debug_(iConfig.getParameter<bool>("Debug")),
93  runControl_(iConfig.getUntrackedParameter<bool>("runControl", false)),
94  forceBeamSpotContraint_(iConfig.getUntrackedParameter<bool>("forceBeamSpot", false)) {
95  // now do what ever initialization is needed
96  // initialize phase space boundaries
97 
98  usesResource(TFileService::kSharedResource);
99 
100  std::vector<unsigned int> defaultRuns;
101  defaultRuns.push_back(0);
102  runControlNumbers_ = iConfig.getUntrackedParameter<std::vector<unsigned int>>("runControlNumber", defaultRuns);
103 
104  edm::InputTag TrackCollectionTag_ = iConfig.getParameter<edm::InputTag>("TrackCollectionTag");
105  theTrackCollectionToken_ = consumes<reco::TrackCollection>(TrackCollectionTag_);
106 
107  edm::InputTag VertexCollectionTag_ = iConfig.getParameter<edm::InputTag>("VertexCollectionTag");
108  theVertexCollectionToken_ = consumes<reco::VertexCollection>(VertexCollectionTag_);
109 
110  edm::InputTag BeamspotTag_ = iConfig.getParameter<edm::InputTag>("BeamSpotTag");
111  theBeamspotToken_ = consumes<reco::BeamSpot>(BeamspotTag_);
112 
113  // select and configure the track filter
115  std::make_unique<TrackFilterForPVFinding>(iConfig.getParameter<edm::ParameterSet>("TkFilterParameters"));
116  // select and configure the track clusterizer
117  std::string clusteringAlgorithm =
118  iConfig.getParameter<edm::ParameterSet>("TkClusParameters").getParameter<std::string>("algorithm");
119  if (clusteringAlgorithm == "gap") {
121  std::make_unique<GapClusterizerInZ>(iConfig.getParameter<edm::ParameterSet>("TkClusParameters")
122  .getParameter<edm::ParameterSet>("TkGapClusParameters"));
123  } else if (clusteringAlgorithm == "DA") {
125  std::make_unique<DAClusterizerInZ>(iConfig.getParameter<edm::ParameterSet>("TkClusParameters")
126  .getParameter<edm::ParameterSet>("TkDAClusParameters"));
127  // provide the vectorized version of the clusterizer, if supported by the build
128  } else if (clusteringAlgorithm == "DA_vect") {
130  std::make_unique<DAClusterizerInZ_vect>(iConfig.getParameter<edm::ParameterSet>("TkClusParameters")
131  .getParameter<edm::ParameterSet>("TkDAClusParameters"));
132  } else {
133  throw VertexException("PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
134  }
135 
136  theDetails_.histobins = 500;
143 
144  for (int i = PVValHelper::phi; i < PVValHelper::END_OF_PLOTS; i++) {
145  for (int j = PVValHelper::dx; j < PVValHelper::END_OF_TYPES; j++) {
146  auto plot_index = static_cast<PVValHelper::plotVariable>(i);
147  auto res_index = static_cast<PVValHelper::residualType>(j);
148 
149  if (debug_) {
150  edm::LogInfo("PrimaryVertexValidation")
151  << "==> " << std::get<0>(PVValHelper::getTypeString(res_index)) << " " << std::setw(10)
152  << std::get<0>(PVValHelper::getVarString(plot_index)) << std::endl;
153  }
154  if (res_index != PVValHelper::d3D && res_index != PVValHelper::norm_d3D)
155  theDetails_.setMap(res_index,
156  plot_index,
157  theDetails_.getLow(PVValHelper::dxy, plot_index),
158  theDetails_.getHigh(PVValHelper::dxy, plot_index));
159  else
160  theDetails_.setMap(res_index, plot_index, 0., theDetails_.getHigh(PVValHelper::dxy, plot_index));
161  }
162  }
163 
164  edm::LogVerbatim("PrimaryVertexValidation") << "######################################";
165  for (const auto& it : theDetails_.range) {
166  edm::LogVerbatim("PrimaryVertexValidation")
167  << "|" << std::setw(10) << std::get<0>(PVValHelper::getTypeString(it.first.first)) << "|" << std::setw(10)
168  << std::get<0>(PVValHelper::getVarString(it.first.second)) << "| (" << std::setw(5) << it.second.first << ";"
169  << std::setw(5) << it.second.second << ") |" << std::endl;
170  }
171 
174 
175  if (debug_) {
176  edm::LogVerbatim("PrimaryVertexValidation") << "etaBins: ";
178  edm::LogVerbatim("PrimaryVertexValidation") << ieta << " ";
179  }
180  edm::LogVerbatim("PrimaryVertexValidation") << "\n";
181 
182  edm::LogVerbatim("PrimaryVertexValidation") << "phiBins: ";
184  edm::LogVerbatim("PrimaryVertexValidation") << iphi << " ";
185  }
186  edm::LogVerbatim("PrimaryVertexValidation") << "\n";
187  }
188 
189  // create the bins of the pT-binned distributions
190 
191  mypT_bins_ = PVValHelper::makeLogBins<float, nPtBins_>(minPt_, maxPt_);
192 
193  std::string toOutput = "";
194  for (auto ptbin : mypT_bins_) {
195  toOutput += " ";
196  toOutput += std::to_string(ptbin);
197  toOutput += ",";
198  }
199 
200  edm::LogVerbatim("PrimaryVertexValidation") << "######################################\n";
201  edm::LogVerbatim("PrimaryVertexValidation") << "The pT binning is: [" << toOutput << "] \n";
202 }
static const std::string kSharedResource
Definition: TFileService.h:76
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken_
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::vector< unsigned int > runControlNumbers_
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken_
Common base class.
std::vector< float > generateBins(int n, float start, float range)
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeomToken_
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
plotLabels getVarString(plotVariable var)
static std::string to_string(const XMLCh *ch)
T getUntrackedParameter(std::string const &, T const &) const
std::map< plotVariable, std::vector< float > > trendbins
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken_
float getHigh(residualType type, plotVariable plot)
float getLow(residualType type, plotVariable plot)
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoTokenBR_
std::unique_ptr< TrackClusterizerInZ > theTrackClusterizer_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
void setMap(residualType type, plotVariable plot, float low, float high)
std::unique_ptr< TrackFilterForPVFindingBase > theTrackFilter_
Log< level::Info, false > LogInfo
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > ttkToken_
plotLabels getTypeString(residualType type)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoTokenBR_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
PVValHelper::histodetails theDetails_
std::array< float, nPtBins_+1 > mypT_bins_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomTokenBR_

◆ ~PrimaryVertexValidation()

PrimaryVertexValidation::~PrimaryVertexValidation ( )
overridedefault

Member Function Documentation

◆ add()

void PrimaryVertexValidation::add ( std::map< std::string, TH1 *> &  h,
TH1 *  hist 
)
private

◆ analyze()

void PrimaryVertexValidation::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 211 of file PrimaryVertexValidation.cc.

References a_d3DEtaResiduals, a_d3DPhiResiduals, a_d3DResidualsMap, a_dxEtaResiduals, a_dxPhiResiduals, a_dxyBiasResidualsMap, a_dxyEtaBiasResiduals, a_dxyEtaResiduals, a_dxyL1ResidualsMap, a_dxyPhiBiasResiduals, a_dxyPhiResiduals, a_dxyResidualsMap, a_dxyVsEta, a_dxyVsPhi, a_dyEtaResiduals, a_dyPhiResiduals, a_dzBiasResidualsMap, a_dzEtaBiasResiduals, a_dzEtaResiduals, a_dzL1ResidualsMap, a_dzPhiBiasResiduals, a_dzPhiResiduals, a_dzResidualsMap, a_dzVsEta, a_dzVsPhi, a_IP2DEtaResiduals, a_IP2DPhiResiduals, a_IP3DEtaResiduals, a_IP3DPhiResiduals, a_reszEtaResiduals, a_reszPhiResiduals, funct::abs(), IPTools::absoluteImpactParameter3D(), askFirstLayerHit_, Beamdxdz_, Beamsigmaz_, pwdgSkimBPark_cfi::beamSpot, BeamWidthX_, BeamWidthY_, BSx0_, BSy0_, BSz0_, TransientTrackBuilder::build(), reco::TrackBase::charge(), charge_, reco::TrackBase::chi2(), chi2_, chi2ndof_, chi2normUnbiasedVertex_, chi2ProbUnbiasedVertex_, chi2UnbiasedVertex_, SiPixelRecHit::clusterProbability(), bsc_activity_cfg::clusters, cmToum, d0, reco::TrackBase::d0Error(), d3DErrorFromMyVertex_, d3DFromMyVertex_, debug_, hcalRecHitTable_cff::detId, doBPix_, doFPix_, DOFUnbiasedVertex_, reco::TrackBase::dxy(), dxy_, dxyBs_, dxyErrorFromMyVertex_, dxyFromMyVertex_, reco::TrackBase::dz(), dz_, dzBs_, reco::TrackBase::dzError(), dzErrorFromMyVertex_, dzFromMyVertex_, PVValHelper::eta, reco::TrackBase::eta(), eta_, etaOfProbe_, EventNumber_, PVValHelper::fillByIndex(), fillTrackHistos(), forceBeamSpotContraint_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), h2_probeEtaPhi_, h2_probeEtaPt_, h2_probeLayer1Map_, h2_probePassingLayer1Map_, h_Beamsigmaz, h_BeamWidthX, h_BeamWidthY, h_BSx0, h_BSy0, h_BSz0, h_dxy_Central_pT_, h_dxy_ladder_, h_dxy_ladderNoOverlap_, h_dxy_ladderOverlap_, h_dxy_modZ_, h_dxy_pT_, h_dz_Central_pT_, h_dz_ladder_, h_dz_modZ_, h_dz_pT_, h_fitVtxChi2_, h_fitVtxChi2ndf_, h_fitVtxChi2Prob_, h_fitVtxNdof_, h_fitVtxNtracks_, h_fitVtxTrackAverageWeight_, h_fitVtxTrackWeights_, h_nClus, h_nOfflineVertices, h_norm_dxy_Central_pT_, h_norm_dxy_ladder_, h_norm_dxy_modZ_, h_norm_dxy_pT_, h_norm_dz_Central_pT_, h_norm_dz_ladder_, h_norm_dz_modZ_, h_norm_dz_pT_, h_nTracks, h_probeCharge_, h_probeChi2_, h_probed0RefitV_, h_probed3DRefitV_, h_probedxyRecoV_, h_probedxyRefitV_, h_probedzRecoV_, h_probedzRefitV_, h_probeEta_, h_probeHasBPixL1Overlap_, h_probeHits1D_, h_probeHits2D_, h_probeHits_, h_probeHitsInBPIX_, h_probeHitsInFPIX_, h_probeHitsInTEC_, h_probeHitsInTIB_, h_probeHitsInTID_, h_probeHitsInTOB_, h_probeL1ClusterProb_, h_probeL1Ladder_, h_probeL1Module_, h_probeNormChi2_, h_probeP_, h_probePhi_, h_probePt_, h_probePtRebin_, h_probeQoverP_, h_probeRecoVSigXY_, h_probeRecoVSigZ_, h_probeRefitVLogSig3D_, h_probeRefitVSig3D_, h_probeRefitVSigResZ_, h_probeRefitVSigXY_, h_probeRefitVSigZ_, h_probereszRefitV_, h_probesignIP2DRefitV_, h_probez0RefitV_, h_recoVtxChi2ndf_, h_recoVtxChi2Prob_, h_recoVtxNtracks_, h_recoVtxSumPt_, h_xErrOfflineVertex, h_xOfflineVertex, h_yErrOfflineVertex, h_yOfflineVertex, h_zErrOfflineVertex, h_zOfflineVertex, hasFirstLayerPixelHits(), hasRecVertex_, hDA, reco::TrackBase::hitPattern(), hfClusterShapes_cfi::hits, mps_fire::i, iEvent, createfilelist::int, IP3DsigFromMyVertex_, IPLsigFromMyVertex_, IPTsigFromMyVertex_, isGoodTrack_, isHighPurity_, isHit2D(), sistrip::SpyUtilities::isValid(), edm::HandleBase::isValid(), dqmiolumiharvest::j, nano_mu_digi_cff::layer, LogDebug, LogTrace, PerigeeTrajectoryParameters::longitudinalImpactParameter(), PerigeeTrajectoryError::longitudinalImpactParameterError(), LuminosityBlockNumber_, M_PI, magFieldToken_, mypT_bins_, n_d3DEtaResiduals, n_d3DPhiResiduals, n_d3DResidualsMap, n_dxyBiasResidualsMap, n_dxyEtaBiasResiduals, n_dxyEtaResiduals, n_dxyL1ResidualsMap, n_dxyPhiBiasResiduals, n_dxyPhiResiduals, n_dxyResidualsMap, n_dxyVsEta, n_dxyVsPhi, n_dzBiasResidualsMap, n_dzEtaBiasResiduals, n_dzEtaResiduals, n_dzL1ResidualsMap, n_dzPhiBiasResiduals, n_dzPhiResiduals, n_dzResidualsMap, n_dzVsEta, n_dzVsPhi, n_IP2DEtaResiduals, n_IP2DPhiResiduals, n_IP3DEtaResiduals, n_IP3DPhiResiduals, n_reszEtaResiduals, n_reszPhiResiduals, nBins_, nClus_, Nevt_, nhits1D_, nhits2D_, nhits_, nhitsBPIX_, nhitsFPIX_, nHitsOfProbe_, nhitsTEC_, nhitsTIB_, nhitsTID_, nhitsTOB_, nMaxtracks_, nOfflineVertices_, reco::TrackBase::normalizedChi2(), nPtBins_, vertices_cff::ntracks, nTracks_, nTracksPerClus_, reco::TrackBase::numberOfValidHits(), reco::TrackBase::p(), p_, TrajectoryStateClosestToPoint::perigeeError(), TrajectoryStateClosestToPoint::perigeeParameters(), phase_, PVValHelper::phi, reco::TrackBase::phi(), phi_, PixelSubdetector::PixelBarrel, pixelHitsCheck(), pOfProbe_, point, FreeTrajectoryState::position(), TrajectoryStateClosestToPoint::position(), position, conifer::pow(), DiDispStaMuonMonitor_cfi::pt, reco::TrackBase::pt(), pt_, ptOfProbe_, reco::TrackBase::px(), TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), reco::TrackBase::py(), reco::TrackBase::pz(), reco::TrackBase::qoverp(), qoverp_, reco::TrackBase::quality(), pixelTrack::qualityByName(), reco::Track::recHits(), rootTree_, runControl_, PV_cfg::runControlNumber, runControlNumbers_, RunNumber_, SetVarToZero(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), jetUpdater_cfi::sort, mathSSE::sqrt(), storeNtuple_, sumOfWeightsUnbiasedVertex_, funct::tan(), theBeamspotToken_, theDetails_, TrajectoryStateClosestToPoint::theState(), reco::TrackBase::theta(), theta_, theTrackClusterizer_, theTrackCollectionToken_, theTrackFilter_, theVertexCollectionToken_, topoToken_, HLT_2023v12_cff::track, trackingGeomToken_, pwdgSkimBPark_cfi::tracks, tracksUsedForVertexing_, PerigeeConversions::trajectoryStateClosestToPoint(), PerigeeTrajectoryParameters::transverseImpactParameter(), PVValHelper::histodetails::trendbins, ttkToken_, useTracksFromRecoVtx_, bphysicsOniaDQM_cfi::vertex, reco::TrackBase::vertex(), vertexZMax_, AlignmentTracksFromVertexSelector_cfi::vertices, vtxSort(), cms::Exception::what(), wxy2_, x, PV3DBase< T, PVType, FrameType >::x(), xErrOfflineVertex_, run3scouting_cff::xError, xOfflineVertex_, xPCA_, xUnbiasedVertex_, y, PV3DBase< T, PVType, FrameType >::y(), yErrOfflineVertex_, run3scouting_cff::yError, yOfflineVertex_, yPCA_, yUnbiasedVertex_, z, HLTMuonOfflineAnalyzer_cfi::z0, zErrOfflineVertex_, globals_cff::zError, zOfflineVertex_, zPCA_, zUnbiasedVertex_, and HLT_FULL_cff::zVertex.

211  {
212  using namespace std;
213  using namespace reco;
214  using namespace IPTools;
215 
216  if (nBins_ != 24 && debug_) {
217  edm::LogInfo("PrimaryVertexValidation") << "Using: " << nBins_ << " bins plots";
218  }
219 
220  bool passesRunControl = false;
221 
222  if (runControl_) {
223  for (const auto& runControlNumber : runControlNumbers_) {
224  if (iEvent.eventAuxiliary().run() == runControlNumber) {
225  if (debug_) {
226  edm::LogInfo("PrimaryVertexValidation")
227  << " run number: " << iEvent.eventAuxiliary().run() << " keeping run:" << runControlNumber;
228  }
229  passesRunControl = true;
230  break;
231  }
232  }
233  if (!passesRunControl)
234  return;
235  }
236 
237  Nevt_++;
238 
239  //=======================================================
240  // Initialize Root-tuple variables
241  //=======================================================
242 
243  SetVarToZero();
244 
245  //=======================================================
246  // Retrieve tracker topology from geometry
247  //=======================================================
248 
249  const TrackerTopology* const tTopo = &iSetup.getData(topoToken_);
250 
251  //=======================================================
252  // Retrieve the Magnetic Field information
253  //=======================================================
254 
256 
257  //=======================================================
258  // Retrieve the Tracking Geometry information
259  //=======================================================
260 
262 
263  //=======================================================
264  // Retrieve the Transient Track Builder information
265  //=======================================================
266 
268  double fBfield_ = ((*theB_).field()->inTesla(GlobalPoint(0., 0., 0.))).z();
269 
270  //=======================================================
271  // Retrieve the Track information
272  //=======================================================
273 
274  edm::Handle<TrackCollection> trackCollectionHandle = iEvent.getHandle(theTrackCollectionToken_);
275  if (!trackCollectionHandle.isValid())
276  return;
277  auto const& tracks = *trackCollectionHandle;
278 
279  //=======================================================
280  // Retrieve offline vartex information (only for reco)
281  //=======================================================
282 
283  //edm::Handle<VertexCollection> vertices;
285 
286  try {
288  } catch (cms::Exception& er) {
289  LogTrace("PrimaryVertexValidation") << "caught std::exception " << er.what() << std::endl;
290  }
291 
292  std::vector<Vertex> vsorted = *(vertices);
293  // sort the vertices by number of tracks in descending order
294  // use chi2 as tiebreaker
295  std::sort(vsorted.begin(), vsorted.end(), PrimaryVertexValidation::vtxSort);
296 
297  // skip events with no PV, this should not happen
298 
299  if (vsorted.empty())
300  return;
301 
302  // skip events failing vertex cut
303  if (std::abs(vsorted[0].z()) > vertexZMax_)
304  return;
305 
306  if (vsorted[0].isValid()) {
307  xOfflineVertex_ = (vsorted)[0].x();
308  yOfflineVertex_ = (vsorted)[0].y();
309  zOfflineVertex_ = (vsorted)[0].z();
310 
311  xErrOfflineVertex_ = (vsorted)[0].xError();
312  yErrOfflineVertex_ = (vsorted)[0].yError();
313  zErrOfflineVertex_ = (vsorted)[0].zError();
314  }
315 
322 
323  unsigned int vertexCollectionSize = vsorted.size();
324  int nvvertex = 0;
325 
326  for (unsigned int i = 0; i < vertexCollectionSize; i++) {
327  const Vertex& vertex = vsorted.at(i);
328  if (vertex.isValid())
329  nvvertex++;
330  }
331 
332  nOfflineVertices_ = nvvertex;
333  h_nOfflineVertices->Fill(nvvertex);
334 
335  if (!vsorted.empty() && useTracksFromRecoVtx_) {
336  double sumpt = 0;
337  size_t ntracks = 0;
338  double chi2ndf = 0.;
339  double chi2prob = 0.;
340 
341  if (!vsorted.at(0).isFake()) {
342  Vertex pv = vsorted.at(0);
343 
344  ntracks = pv.tracksSize();
345  chi2ndf = pv.normalizedChi2();
346  chi2prob = TMath::Prob(pv.chi2(), (int)pv.ndof());
347 
348  h_recoVtxNtracks_->Fill(ntracks);
349  h_recoVtxChi2ndf_->Fill(chi2ndf);
350  h_recoVtxChi2Prob_->Fill(chi2prob);
351 
352  for (Vertex::trackRef_iterator itrk = pv.tracks_begin(); itrk != pv.tracks_end(); ++itrk) {
353  double pt = (**itrk).pt();
354  sumpt += pt * pt;
355 
356  const math::XYZPoint myVertex(pv.position().x(), pv.position().y(), pv.position().z());
357 
358  double dxyRes = (**itrk).dxy(myVertex);
359  double dzRes = (**itrk).dz(myVertex);
360 
361  double dxy_err = (**itrk).dxyError();
362  double dz_err = (**itrk).dzError();
363 
364  float trackphi = ((**itrk).phi()) * (180 / M_PI);
365  float tracketa = (**itrk).eta();
366 
367  for (int i = 0; i < nBins_; i++) {
368  float phiF = theDetails_.trendbins[PVValHelper::phi][i];
369  float phiL = theDetails_.trendbins[PVValHelper::phi][i + 1];
370 
371  float etaF = theDetails_.trendbins[PVValHelper::eta][i];
372  float etaL = theDetails_.trendbins[PVValHelper::eta][i + 1];
373 
374  if (tracketa >= etaF && tracketa < etaL) {
377  PVValHelper::fillByIndex(n_dxyEtaBiasResiduals, i, (dxyRes) / dxy_err, "3");
378  PVValHelper::fillByIndex(n_dzEtaBiasResiduals, i, (dzRes) / dz_err, "4");
379  }
380 
381  if (trackphi >= phiF && trackphi < phiL) {
384  PVValHelper::fillByIndex(n_dxyPhiBiasResiduals, i, (dxyRes) / dxy_err, "7");
385  PVValHelper::fillByIndex(n_dzPhiBiasResiduals, i, (dzRes) / dz_err, "8");
386 
387  for (int j = 0; j < nBins_; j++) {
388  float etaJ = theDetails_.trendbins[PVValHelper::eta][j];
389  float etaK = theDetails_.trendbins[PVValHelper::eta][j + 1];
390 
391  if (tracketa >= etaJ && tracketa < etaK) {
392  a_dxyBiasResidualsMap[i][j]->Fill(dxyRes * cmToum);
393  a_dzBiasResidualsMap[i][j]->Fill(dzRes * cmToum);
394 
395  n_dxyBiasResidualsMap[i][j]->Fill((dxyRes) / dxy_err);
396  n_dzBiasResidualsMap[i][j]->Fill((dzRes) / dz_err);
397  }
398  }
399  }
400  }
401  }
402 
403  h_recoVtxSumPt_->Fill(sumpt);
404  }
405  }
406 
407  //=======================================================
408  // Retrieve Beamspot information
409  //=======================================================
410 
412  edm::Handle<BeamSpot> beamSpotHandle = iEvent.getHandle(theBeamspotToken_);
413 
414  if (beamSpotHandle.isValid()) {
415  beamSpot = *beamSpotHandle;
416  BSx0_ = beamSpot.x0();
417  BSy0_ = beamSpot.y0();
418  BSz0_ = beamSpot.z0();
419  Beamsigmaz_ = beamSpot.sigmaZ();
420  Beamdxdz_ = beamSpot.dxdz();
421  BeamWidthX_ = beamSpot.BeamWidthX();
422  BeamWidthY_ = beamSpot.BeamWidthY();
423 
424  wxy2_ = TMath::Power(BeamWidthX_, 2) + TMath::Power(BeamWidthY_, 2);
425 
426  } else {
427  edm::LogWarning("PrimaryVertexValidation") << "No BeamSpot found!";
428  }
429 
430  h_BSx0->Fill(BSx0_);
431  h_BSy0->Fill(BSy0_);
432  h_BSz0->Fill(BSz0_);
433  h_Beamsigmaz->Fill(Beamsigmaz_);
434  h_BeamWidthX->Fill(BeamWidthX_);
435  h_BeamWidthY->Fill(BeamWidthY_);
436 
437  if (debug_)
438  edm::LogInfo("PrimaryVertexValidation") << "Beamspot x:" << BSx0_ << " y:" << BSy0_ << " z:" << BSz0_;
439 
440  //=======================================================
441  // Starts here ananlysis
442  //=======================================================
443 
444  RunNumber_ = iEvent.eventAuxiliary().run();
445  LuminosityBlockNumber_ = iEvent.eventAuxiliary().luminosityBlock();
446  EventNumber_ = iEvent.eventAuxiliary().id().event();
447 
448  if (debug_)
449  edm::LogInfo("PrimaryVertexValidation") << " looping over " << trackCollectionHandle->size() << "tracks";
450 
451  h_nTracks->Fill(trackCollectionHandle->size());
452 
453  //======================================================
454  // Interface RECO tracks to vertex reconstruction
455  //======================================================
456 
457  std::vector<TransientTrack> t_tks;
458  for (const auto& track : tracks) {
459  TransientTrack tt = theB_->build(&(track));
460  tt.setBeamSpot(beamSpot);
461  t_tks.push_back(tt);
462  }
463 
464  if (debug_) {
465  edm::LogInfo("PrimaryVertexValidation") << "Found: " << t_tks.size() << " reconstructed tracks";
466  }
467 
468  //======================================================
469  // select the tracks
470  //======================================================
471 
472  std::vector<TransientTrack> seltks = theTrackFilter_->select(t_tks);
473 
474  //======================================================
475  // clusterize tracks in Z
476  //======================================================
477 
478  vector<vector<TransientTrack>> clusters = theTrackClusterizer_->clusterize(seltks);
479 
480  if (debug_) {
481  edm::LogInfo("PrimaryVertexValidation")
482  << " looping over: " << clusters.size() << " clusters from " << t_tks.size() << " selected tracks";
483  }
484 
485  nClus_ = clusters.size();
486  h_nClus->Fill(nClus_);
487 
488  //======================================================
489  // Starts loop on clusters
490  //======================================================
491  for (const auto& iclus : clusters) {
492  nTracksPerClus_ = 0;
493 
494  unsigned int i = 0;
495  for (const auto& theTTrack : iclus) {
496  i++;
497 
498  if (nTracks_ >= nMaxtracks_) {
499  edm::LogError("PrimaryVertexValidation")
500  << " Warning - Number of tracks: " << nTracks_ << " , greater than " << nMaxtracks_;
501  continue;
502  }
503 
504  const Track& theTrack = theTTrack.track();
505 
506  pt_[nTracks_] = theTrack.pt();
507  p_[nTracks_] = theTrack.p();
508  nhits_[nTracks_] = theTrack.numberOfValidHits();
509  eta_[nTracks_] = theTrack.eta();
510  theta_[nTracks_] = theTrack.theta();
511  phi_[nTracks_] = theTrack.phi();
512  chi2_[nTracks_] = theTrack.chi2();
513  chi2ndof_[nTracks_] = theTrack.normalizedChi2();
514  charge_[nTracks_] = theTrack.charge();
515  qoverp_[nTracks_] = theTrack.qoverp();
516  dz_[nTracks_] = theTrack.dz();
517  dxy_[nTracks_] = theTrack.dxy();
518 
519  TrackBase::TrackQuality _trackQuality = TrackBase::qualityByName("highPurity");
520  isHighPurity_[nTracks_] = theTrack.quality(_trackQuality);
521 
523  dxyBs_[nTracks_] = theTrack.dxy(point);
524  dzBs_[nTracks_] = theTrack.dz(point);
525 
526  xPCA_[nTracks_] = theTrack.vertex().x();
527  yPCA_[nTracks_] = theTrack.vertex().y();
528  zPCA_[nTracks_] = theTrack.vertex().z();
529 
530  //=======================================================
531  // Retrieve rechit information
532  //=======================================================
533 
534  const reco::HitPattern& hits = theTrack.hitPattern();
535 
536  int nRecHit1D = 0;
537  int nRecHit2D = 0;
538  int nhitinTIB = hits.numberOfValidStripTIBHits();
539  int nhitinTOB = hits.numberOfValidStripTOBHits();
540  int nhitinTID = hits.numberOfValidStripTIDHits();
541  int nhitinTEC = hits.numberOfValidStripTECHits();
542  int nhitinBPIX = hits.numberOfValidPixelBarrelHits();
543  int nhitinFPIX = hits.numberOfValidPixelEndcapHits();
544  for (trackingRecHit_iterator iHit = theTTrack.recHitsBegin(); iHit != theTTrack.recHitsEnd(); ++iHit) {
545  if ((*iHit)->isValid()) {
546  if (this->isHit2D(**iHit, phase_)) {
547  ++nRecHit2D;
548  } else {
549  ++nRecHit1D;
550  }
551  }
552  }
553 
554  nhits1D_[nTracks_] = nRecHit1D;
555  nhits2D_[nTracks_] = nRecHit2D;
556  nhitsBPIX_[nTracks_] = nhitinBPIX;
557  nhitsFPIX_[nTracks_] = nhitinFPIX;
558  nhitsTIB_[nTracks_] = nhitinTIB;
559  nhitsTID_[nTracks_] = nhitinTID;
560  nhitsTOB_[nTracks_] = nhitinTOB;
561  nhitsTEC_[nTracks_] = nhitinTEC;
562 
563  //=======================================================
564  // Good tracks for vertexing selection
565  //=======================================================
566 
567  bool pass = true;
568  if (askFirstLayerHit_)
569  pass = this->hasFirstLayerPixelHits(theTTrack);
570  if (pass && (theTrack.pt() >= ptOfProbe_) && std::abs(theTrack.eta()) <= etaOfProbe_ &&
571  (theTrack.numberOfValidHits()) >= nHitsOfProbe_ && (theTrack.p()) >= pOfProbe_) {
572  isGoodTrack_[nTracks_] = 1;
573  }
574 
575  //=======================================================
576  // Fit unbiased vertex
577  //=======================================================
578 
579  vector<TransientTrack> theFinalTracks;
580  theFinalTracks.clear();
581 
582  for (const auto& tk : iclus) {
583  pass = this->hasFirstLayerPixelHits(tk);
584  if (pass) {
585  if (tk == theTTrack)
586  continue;
587  else {
588  theFinalTracks.push_back(tk);
589  }
590  }
591  }
592 
593  if (theFinalTracks.size() > 1) {
594  if (debug_)
595  edm::LogInfo("PrimaryVertexValidation") << "Transient Track Collection size: " << theFinalTracks.size();
596  try {
597  //AdaptiveVertexFitter* theFitter = new AdaptiveVertexFitter;
598  auto theFitter = std::unique_ptr<VertexFitter<5>>(new AdaptiveVertexFitter());
599  TransientVertex theFittedVertex;
600 
602  theFittedVertex = theFitter->vertex(theFinalTracks, beamSpot); // if you want the beam constraint
603  } else {
604  theFittedVertex = theFitter->vertex(theFinalTracks);
605  }
606 
607  double totalTrackWeights = 0;
608  if (theFittedVertex.isValid()) {
609  if (theFittedVertex.hasTrackWeight()) {
610  for (const auto& theFinalTrack : theFinalTracks) {
611  sumOfWeightsUnbiasedVertex_[nTracks_] += theFittedVertex.trackWeight(theFinalTrack);
612  totalTrackWeights += theFittedVertex.trackWeight(theFinalTrack);
613  h_fitVtxTrackWeights_->Fill(theFittedVertex.trackWeight(theFinalTrack));
614  }
615  }
616 
617  h_fitVtxTrackAverageWeight_->Fill(totalTrackWeights / theFinalTracks.size());
618 
620  const math::XYZPoint myVertex(
621  theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
622 
623  const Vertex vertex = theFittedVertex;
624  fillTrackHistos(hDA, "all", &theTTrack, vertex, beamSpot, fBfield_);
625 
626  hasRecVertex_[nTracks_] = 1;
627  xUnbiasedVertex_[nTracks_] = theFittedVertex.position().x();
628  yUnbiasedVertex_[nTracks_] = theFittedVertex.position().y();
629  zUnbiasedVertex_[nTracks_] = theFittedVertex.position().z();
630 
631  chi2normUnbiasedVertex_[nTracks_] = theFittedVertex.normalisedChiSquared();
632  chi2UnbiasedVertex_[nTracks_] = theFittedVertex.totalChiSquared();
633  DOFUnbiasedVertex_[nTracks_] = theFittedVertex.degreesOfFreedom();
635  TMath::Prob(theFittedVertex.totalChiSquared(), (int)theFittedVertex.degreesOfFreedom());
636  tracksUsedForVertexing_[nTracks_] = theFinalTracks.size();
637 
638  h_fitVtxNtracks_->Fill(theFinalTracks.size());
639  h_fitVtxChi2_->Fill(theFittedVertex.totalChiSquared());
640  h_fitVtxNdof_->Fill(theFittedVertex.degreesOfFreedom());
641  h_fitVtxChi2ndf_->Fill(theFittedVertex.normalisedChiSquared());
642  h_fitVtxChi2Prob_->Fill(
643  TMath::Prob(theFittedVertex.totalChiSquared(), (int)theFittedVertex.degreesOfFreedom()));
644 
645  // from my Vertex
646  double dxyFromMyVertex = theTrack.dxy(myVertex);
647  double dzFromMyVertex = theTrack.dz(myVertex);
648 
649  GlobalPoint vert(
650  theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
651 
652  //FreeTrajectoryState theTrackNearVertex = theTTrack.trajectoryStateClosestToPoint(vert).theState();
653  //double dz_err = sqrt(theFittedVertex.positionError().czz() + theTrackNearVertex.cartesianError().position().czz());
654  //double dz_err = hypot(theTrack.dzError(),theFittedVertex.positionError().czz());
655 
656  double dz_err = sqrt(std::pow(theTrack.dzError(), 2) + theFittedVertex.positionError().czz());
657 
658  // PV2D
659  std::pair<bool, Measurement1D> s_ip2dpv = signedTransverseImpactParameter(
660  theTTrack, GlobalVector(theTrack.px(), theTrack.py(), theTrack.pz()), theFittedVertex);
661 
662  double s_ip2dpv_corr = s_ip2dpv.second.value();
663  double s_ip2dpv_err = s_ip2dpv.second.error();
664 
665  // PV3D
666  std::pair<bool, Measurement1D> s_ip3dpv = signedImpactParameter3D(
667  theTTrack, GlobalVector(theTrack.px(), theTrack.py(), theTrack.pz()), theFittedVertex);
668 
669  double s_ip3dpv_corr = s_ip3dpv.second.value();
670  double s_ip3dpv_err = s_ip3dpv.second.error();
671 
672  // PV3D absolute
673  std::pair<bool, Measurement1D> ip3dpv = absoluteImpactParameter3D(theTTrack, theFittedVertex);
674  double ip3d_corr = ip3dpv.second.value();
675  double ip3d_err = ip3dpv.second.error();
676 
677  // with respect to any specified vertex, such as primary vertex
679 
680  GlobalPoint refPoint = traj.position();
681  GlobalPoint cPToVtx = traj.theState().position();
682 
683  float my_dx = refPoint.x() - myVertex.x();
684  float my_dy = refPoint.y() - myVertex.y();
685 
686  float my_dx2 = cPToVtx.x() - myVertex.x();
687  float my_dy2 = cPToVtx.y() - myVertex.y();
688 
689  float my_dxy = std::sqrt(my_dx * my_dx + my_dy * my_dy);
690 
692  //double d0_error = traj.perigeeError().transverseImpactParameterError();
694  double z0_error = traj.perigeeError().longitudinalImpactParameterError();
695 
696  if (debug_) {
697  edm::LogInfo("PrimaryVertexValidation")
698  << "my_dx:" << my_dx << " my_dy:" << my_dy << " my_dxy:" << my_dxy << " my_dx2:" << my_dx2
699  << " my_dy2:" << my_dy2 << " d0: " << d0 << " dxyFromVtx:" << dxyFromMyVertex << "\n"
700  << " ============================== "
701  << "\n"
702  << "diff1:" << std::abs(d0) - std::abs(my_dxy) << "\n"
703  << "diff2:" << std::abs(d0) - std::abs(dxyFromMyVertex) << "\n"
704  << "diff3:" << (my_dx - my_dx2) << " " << (my_dy - my_dy2) << "\n"
705  << std::endl;
706  }
707 
708  // define IPs
709 
710  dxyFromMyVertex_[nTracks_] = dxyFromMyVertex;
711  dxyErrorFromMyVertex_[nTracks_] = s_ip2dpv_err;
712  IPTsigFromMyVertex_[nTracks_] = dxyFromMyVertex / s_ip2dpv_err;
713 
714  dzFromMyVertex_[nTracks_] = dzFromMyVertex;
715  dzErrorFromMyVertex_[nTracks_] = dz_err;
716  IPLsigFromMyVertex_[nTracks_] = dzFromMyVertex / dz_err;
717 
718  d3DFromMyVertex_[nTracks_] = ip3d_corr;
719  d3DErrorFromMyVertex_[nTracks_] = ip3d_err;
720  IP3DsigFromMyVertex_[nTracks_] = (ip3d_corr / ip3d_err);
721 
722  // fill directly the histograms of residuals
723 
724  float trackphi = (theTrack.phi()) * (180. / M_PI);
725  float tracketa = theTrack.eta();
726  float trackpt = theTrack.pt();
727  float trackp = theTrack.p();
728  float tracknhits = theTrack.numberOfValidHits();
729 
730  // determine the module number and ladder
731 
732  int ladder_num = -1.;
733  int module_num = -1.;
734  int L1BPixHitCount = 0;
735 
736  for (auto const& hit : theTrack.recHits()) {
737  const DetId& detId = hit->geographicalId();
738  unsigned int subid = detId.subdetId();
739 
740  if (hit->isValid() && (subid == PixelSubdetector::PixelBarrel)) {
741  int layer = tTopo->pxbLayer(detId);
742  if (layer == 1) {
743  const SiPixelRecHit* prechit = dynamic_cast<const SiPixelRecHit*>(
744  hit); //to be used to get the associated cluster and the cluster probability
745  double clusterProbability = prechit->clusterProbability(0);
746  if (clusterProbability > 0) {
747  h_probeL1ClusterProb_->Fill(log10(clusterProbability));
748  }
749 
750  L1BPixHitCount += 1;
751  ladder_num = tTopo->pxbLadder(detId);
752  module_num = tTopo->pxbModule(detId);
753  }
754  }
755  }
756 
757  h_probeL1Ladder_->Fill(ladder_num);
758  h_probeL1Module_->Fill(module_num);
759  h2_probeLayer1Map_->Fill(module_num, ladder_num);
760  h_probeHasBPixL1Overlap_->Fill(L1BPixHitCount);
761 
762  // residuals vs ladder and module number for map
763  if (module_num > 0 && ladder_num > 0) { // only if we are on BPix Layer 1
764  a_dxyL1ResidualsMap[ladder_num - 1][module_num - 1]->Fill(dxyFromMyVertex * cmToum);
765  a_dzL1ResidualsMap[ladder_num - 1][module_num - 1]->Fill(dzFromMyVertex * cmToum);
766  n_dxyL1ResidualsMap[ladder_num - 1][module_num - 1]->Fill(dxyFromMyVertex / s_ip2dpv_err);
767  n_dzL1ResidualsMap[ladder_num - 1][module_num - 1]->Fill(dzFromMyVertex / dz_err);
768  }
769 
770  // filling the pT-binned distributions
771 
772  for (int ipTBin = 0; ipTBin < nPtBins_; ipTBin++) {
773  float pTF = mypT_bins_[ipTBin];
774  float pTL = mypT_bins_[ipTBin + 1];
775 
776  if (debug_)
777  edm::LogInfo("PrimaryVertexValidation") << "ipTBin:" << ipTBin << " " << mypT_bins_[ipTBin]
778  << " < pT < " << mypT_bins_[ipTBin + 1] << std::endl;
779 
780  if (std::abs(tracketa) < 1.5 && (trackpt >= pTF && trackpt < pTL)) {
781  if (debug_)
782  edm::LogInfo("PrimaryVertexValidation") << "passes this cut: " << mypT_bins_[ipTBin] << std::endl;
783  PVValHelper::fillByIndex(h_dxy_pT_, ipTBin, dxyFromMyVertex * cmToum, "9");
784  PVValHelper::fillByIndex(h_dz_pT_, ipTBin, dzFromMyVertex * cmToum, "10");
785  PVValHelper::fillByIndex(h_norm_dxy_pT_, ipTBin, dxyFromMyVertex / s_ip2dpv_err, "11");
786  PVValHelper::fillByIndex(h_norm_dz_pT_, ipTBin, dzFromMyVertex / dz_err, "12");
787 
788  if (std::abs(tracketa) < 1.) {
789  if (debug_)
790  edm::LogInfo("PrimaryVertexValidation")
791  << "passes tight eta cut: " << mypT_bins_[ipTBin] << std::endl;
792  PVValHelper::fillByIndex(h_dxy_Central_pT_, ipTBin, dxyFromMyVertex * cmToum, "13");
793  PVValHelper::fillByIndex(h_dz_Central_pT_, ipTBin, dzFromMyVertex * cmToum, "14");
794  PVValHelper::fillByIndex(h_norm_dxy_Central_pT_, ipTBin, dxyFromMyVertex / s_ip2dpv_err, "15");
795  PVValHelper::fillByIndex(h_norm_dz_Central_pT_, ipTBin, dzFromMyVertex / dz_err, "16");
796  }
797  }
798  }
799 
800  // checks on the probe track quality
801  if (trackpt >= ptOfProbe_ && std::abs(tracketa) <= etaOfProbe_ && tracknhits >= nHitsOfProbe_ &&
802  trackp >= pOfProbe_) {
803  std::pair<bool, bool> pixelOcc = pixelHitsCheck((theTTrack));
804 
805  if (debug_) {
806  if (pixelOcc.first == true)
807  edm::LogInfo("PrimaryVertexValidation") << "has BPIx hits" << std::endl;
808  if (pixelOcc.second == true)
809  edm::LogInfo("PrimaryVertexValidation") << "has FPix hits" << std::endl;
810  }
811 
812  if (!doBPix_ && (pixelOcc.first == true))
813  continue;
814  if (!doFPix_ && (pixelOcc.second == true))
815  continue;
816 
817  fillTrackHistos(hDA, "sel", &(theTTrack), vertex, beamSpot, fBfield_);
818 
819  // probe checks
820  h_probePt_->Fill(theTrack.pt());
821  h_probePtRebin_->Fill(theTrack.pt());
822  h_probeP_->Fill(theTrack.p());
823  h_probeEta_->Fill(theTrack.eta());
824  h_probePhi_->Fill(theTrack.phi());
825  h2_probeEtaPhi_->Fill(theTrack.eta(), theTrack.phi());
826  h2_probeEtaPt_->Fill(theTrack.eta(), theTrack.pt());
827 
828  h_probeChi2_->Fill(theTrack.chi2());
829  h_probeNormChi2_->Fill(theTrack.normalizedChi2());
830  h_probeCharge_->Fill(theTrack.charge());
831  h_probeQoverP_->Fill(theTrack.qoverp());
832  h_probeHits_->Fill(theTrack.numberOfValidHits());
833  h_probeHits1D_->Fill(nRecHit1D);
834  h_probeHits2D_->Fill(nRecHit2D);
835  h_probeHitsInTIB_->Fill(nhitinTIB);
836  h_probeHitsInTOB_->Fill(nhitinTOB);
837  h_probeHitsInTID_->Fill(nhitinTID);
838  h_probeHitsInTEC_->Fill(nhitinTEC);
839  h_probeHitsInBPIX_->Fill(nhitinBPIX);
840  h_probeHitsInFPIX_->Fill(nhitinFPIX);
841 
842  float dxyRecoV = theTrack.dz(theRecoVertex);
843  float dzRecoV = theTrack.dxy(theRecoVertex);
844  float dxysigmaRecoV =
845  TMath::Sqrt(theTrack.d0Error() * theTrack.d0Error() + xErrOfflineVertex_ * yErrOfflineVertex_);
846  float dzsigmaRecoV =
847  TMath::Sqrt(theTrack.dzError() * theTrack.dzError() + zErrOfflineVertex_ * zErrOfflineVertex_);
848 
849  double zTrack = (theTTrack.stateAtBeamLine().trackStateAtPCA()).position().z();
850  double zVertex = theFittedVertex.position().z();
851  double tantheta = tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
852 
853  double dz2 = pow(theTrack.dzError(), 2) + wxy2_ / pow(tantheta, 2);
854  double restrkz = zTrack - zVertex;
855  double pulltrkz = (zTrack - zVertex) / TMath::Sqrt(dz2);
856 
857  h_probedxyRecoV_->Fill(dxyRecoV);
858  h_probedzRecoV_->Fill(dzRecoV);
859 
860  h_probedzRefitV_->Fill(dxyFromMyVertex);
861  h_probedxyRefitV_->Fill(dzFromMyVertex);
862 
863  h_probed0RefitV_->Fill(d0);
864  h_probez0RefitV_->Fill(z0);
865 
866  h_probesignIP2DRefitV_->Fill(s_ip2dpv_corr);
867  h_probed3DRefitV_->Fill(ip3d_corr);
868  h_probereszRefitV_->Fill(restrkz);
869 
870  h_probeRecoVSigZ_->Fill(dzRecoV / dzsigmaRecoV);
871  h_probeRecoVSigXY_->Fill(dxyRecoV / dxysigmaRecoV);
872  h_probeRefitVSigZ_->Fill(dzFromMyVertex / dz_err);
873  h_probeRefitVSigXY_->Fill(dxyFromMyVertex / s_ip2dpv_err);
874  h_probeRefitVSig3D_->Fill(ip3d_corr / ip3d_err);
875  h_probeRefitVLogSig3D_->Fill(log10(ip3d_corr / ip3d_err));
876  h_probeRefitVSigResZ_->Fill(pulltrkz);
877 
878  a_dxyVsPhi->Fill(trackphi, dxyFromMyVertex * cmToum);
879  a_dzVsPhi->Fill(trackphi, z0 * cmToum);
880  n_dxyVsPhi->Fill(trackphi, dxyFromMyVertex / s_ip2dpv_err);
881  n_dzVsPhi->Fill(trackphi, z0 / z0_error);
882 
883  a_dxyVsEta->Fill(tracketa, dxyFromMyVertex * cmToum);
884  a_dzVsEta->Fill(tracketa, z0 * cmToum);
885  n_dxyVsEta->Fill(tracketa, dxyFromMyVertex / s_ip2dpv_err);
886  n_dzVsEta->Fill(tracketa, z0 / z0_error);
887 
888  if (ladder_num > 0 && module_num > 0) {
889  LogDebug("PrimaryVertexValidation")
890  << " ladder_num: " << ladder_num << " module_num: " << module_num << std::endl;
891 
892  PVValHelper::fillByIndex(h_dxy_modZ_, module_num - 1, dxyFromMyVertex * cmToum, "17");
893  PVValHelper::fillByIndex(h_dz_modZ_, module_num - 1, dzFromMyVertex * cmToum, "18");
894  PVValHelper::fillByIndex(h_norm_dxy_modZ_, module_num - 1, dxyFromMyVertex / s_ip2dpv_err, "19");
895  PVValHelper::fillByIndex(h_norm_dz_modZ_, module_num - 1, dzFromMyVertex / dz_err, "20");
896 
897  PVValHelper::fillByIndex(h_dxy_ladder_, ladder_num - 1, dxyFromMyVertex * cmToum, "21");
898 
899  LogDebug("PrimaryVertexValidation") << "h_dxy_ladder size:" << h_dxy_ladder_.size() << std::endl;
900 
901  if (L1BPixHitCount == 1) {
902  PVValHelper::fillByIndex(h_dxy_ladderNoOverlap_, ladder_num - 1, dxyFromMyVertex * cmToum);
903  } else {
904  PVValHelper::fillByIndex(h_dxy_ladderOverlap_, ladder_num - 1, dxyFromMyVertex * cmToum);
905  }
906 
907  h2_probePassingLayer1Map_->Fill(module_num, ladder_num);
908 
909  PVValHelper::fillByIndex(h_dz_ladder_, ladder_num - 1, dzFromMyVertex * cmToum, "22");
910  PVValHelper::fillByIndex(h_norm_dxy_ladder_, ladder_num - 1, dxyFromMyVertex / s_ip2dpv_err, "23");
911  PVValHelper::fillByIndex(h_norm_dz_ladder_, ladder_num - 1, dzFromMyVertex / dz_err, "24");
912  }
913 
914  // filling the binned distributions
915  for (int i = 0; i < nBins_; i++) {
916  float phiF = theDetails_.trendbins[PVValHelper::phi][i];
917  float phiL = theDetails_.trendbins[PVValHelper::phi][i + 1];
918 
919  float etaF = theDetails_.trendbins[PVValHelper::eta][i];
920  float etaL = theDetails_.trendbins[PVValHelper::eta][i + 1];
921 
922  if (tracketa >= etaF && tracketa < etaL) {
923  PVValHelper::fillByIndex(a_dxyEtaResiduals, i, dxyFromMyVertex * cmToum, "25");
926  PVValHelper::fillByIndex(a_dzEtaResiduals, i, dzFromMyVertex * cmToum, "28");
927  PVValHelper::fillByIndex(n_dxyEtaResiduals, i, dxyFromMyVertex / s_ip2dpv_err, "29");
928  PVValHelper::fillByIndex(n_dzEtaResiduals, i, dzFromMyVertex / dz_err, "30");
929  PVValHelper::fillByIndex(a_IP2DEtaResiduals, i, s_ip2dpv_corr * cmToum, "31");
930  PVValHelper::fillByIndex(n_IP2DEtaResiduals, i, s_ip2dpv_corr / s_ip2dpv_err, "32");
933  PVValHelper::fillByIndex(a_d3DEtaResiduals, i, ip3d_corr * cmToum, "35");
934  PVValHelper::fillByIndex(n_d3DEtaResiduals, i, ip3d_corr / ip3d_err, "36");
935  PVValHelper::fillByIndex(a_IP3DEtaResiduals, i, s_ip3dpv_corr * cmToum, "37");
936  PVValHelper::fillByIndex(n_IP3DEtaResiduals, i, s_ip3dpv_corr / s_ip3dpv_err, "38");
937  }
938 
939  if (trackphi >= phiF && trackphi < phiL) {
940  PVValHelper::fillByIndex(a_dxyPhiResiduals, i, dxyFromMyVertex * cmToum, "39");
943  PVValHelper::fillByIndex(a_dzPhiResiduals, i, dzFromMyVertex * cmToum, "42");
944  PVValHelper::fillByIndex(n_dxyPhiResiduals, i, dxyFromMyVertex / s_ip2dpv_err, "43");
945  PVValHelper::fillByIndex(n_dzPhiResiduals, i, dzFromMyVertex / dz_err, "44");
946  PVValHelper::fillByIndex(a_IP2DPhiResiduals, i, s_ip2dpv_corr * cmToum, "45");
947  PVValHelper::fillByIndex(n_IP2DPhiResiduals, i, s_ip2dpv_corr / s_ip2dpv_err, "46");
950  PVValHelper::fillByIndex(a_d3DPhiResiduals, i, ip3d_corr * cmToum, "49");
951  PVValHelper::fillByIndex(n_d3DPhiResiduals, i, ip3d_corr / ip3d_err, "50");
952  PVValHelper::fillByIndex(a_IP3DPhiResiduals, i, s_ip3dpv_corr * cmToum, "51");
953  PVValHelper::fillByIndex(n_IP3DPhiResiduals, i, s_ip3dpv_corr / s_ip3dpv_err, "52");
954 
955  for (int j = 0; j < nBins_; j++) {
956  float etaJ = theDetails_.trendbins[PVValHelper::eta][j];
957  float etaK = theDetails_.trendbins[PVValHelper::eta][j + 1];
958 
959  if (tracketa >= etaJ && tracketa < etaK) {
960  a_dxyResidualsMap[i][j]->Fill(dxyFromMyVertex * cmToum);
961  a_dzResidualsMap[i][j]->Fill(dzFromMyVertex * cmToum);
962  n_dxyResidualsMap[i][j]->Fill(dxyFromMyVertex / s_ip2dpv_err);
963  n_dzResidualsMap[i][j]->Fill(dzFromMyVertex / dz_err);
964  a_d3DResidualsMap[i][j]->Fill(ip3d_corr * cmToum);
965  n_d3DResidualsMap[i][j]->Fill(ip3d_corr / ip3d_err);
966  }
967  }
968  }
969  }
970  }
971 
972  if (debug_) {
973  edm::LogInfo("PrimaryVertexValidation")
974  << " myVertex.x()= " << myVertex.x() << "\n"
975  << " myVertex.y()= " << myVertex.y() << " \n"
976  << " myVertex.z()= " << myVertex.z() << " \n"
977  << " theTrack.dz(myVertex)= " << theTrack.dz(myVertex) << " \n"
978  << " zPCA -myVertex.z() = " << (theTrack.vertex().z() - myVertex.z());
979 
980  } // ends if debug_
981  } // ends if the fitted vertex is Valid
982 
983  //delete theFitter;
984 
985  } catch (cms::Exception& er) {
986  LogTrace("PrimaryVertexValidation") << "caught std::exception " << er.what() << std::endl;
987  }
988 
989  } //ends if theFinalTracks.size() > 2
990 
991  else {
992  if (debug_)
993  edm::LogInfo("PrimaryVertexValidation") << "Not enough tracks to make a vertex. Returns no vertex info";
994  }
995 
996  ++nTracks_;
997  ++nTracksPerClus_;
998 
999  if (debug_)
1000  edm::LogInfo("PrimaryVertexValidation") << "Track " << i << " : pT = " << theTrack.pt();
1001 
1002  } // for loop on tracks
1003  } // for loop on track clusters
1004 
1005  // Fill the TTree if needed
1006 
1007  if (storeNtuple_) {
1008  rootTree_->Fill();
1009  }
1010 }
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:552
std::vector< TH1F * > h_norm_dxy_modZ_
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const AlgebraicVector3 &momentum, const GlobalPoint &referencePoint, const TrackCharge &charge, const AlgebraicSymMatrix66 &theCovarianceMatrix, const MagneticField *field)
void fillTrackHistos(std::map< std::string, TH1 *> &h, const std::string &ttype, const reco::TransientTrack *tt, const reco::Vertex &v, const reco::BeamSpot &beamSpot, double fBfield)
double qoverp() const
q / p
Definition: TrackBase.h:599
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken_
std::vector< TH1F * > n_IP3DPhiResiduals
std::vector< TH1F * > a_dxyEtaResiduals
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_d3DEtaResiduals
unsigned int pxbLayer(const DetId &id) const
std::vector< TH1F * > n_reszPhiResiduals
std::vector< unsigned int > runControlNumbers_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
static bool vtxSort(const reco::Vertex &a, const reco::Vertex &b)
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:798
Quality qualityByName(std::string const &name)
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken_
std::vector< TH1F * > h_dxy_pT_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::map< std::string, TH1 * > hDA
TrackQuality
track quality
Definition: TrackBase.h:150
std::vector< TH1F * > a_IP3DEtaResiduals
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:640
std::vector< TH1F * > n_dzPhiResiduals
double p() const
momentum vector magnitude
Definition: TrackBase.h:631
std::vector< TH1F * > a_d3DPhiResiduals
std::vector< TH1F * > n_d3DPhiResiduals
std::vector< TH1F * > n_dxyPhiBiasResiduals
std::pair< bool, Measurement1D > signedTransverseImpactParameter(const reco::TransientTrack &track, const GlobalVector &direction, const reco::Vertex &vertex)
Definition: IPTools.cc:57
TH1F * n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > n_d3DEtaResiduals
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeomToken_
std::vector< TH1F * > h_norm_dz_Central_pT_
std::pair< bool, Measurement1D > absoluteImpactParameter3D(const reco::TransientTrack &transientTrack, const reco::Vertex &vertex)
Definition: IPTools.cc:38
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:643
std::pair< bool, Measurement1D > signedImpactParameter3D(const reco::TransientTrack &track, const GlobalVector &direction, const reco::Vertex &vertex)
Definition: IPTools.cc:81
double longitudinalImpactParameterError() const
float DOFUnbiasedVertex_[nMaxtracks_]
constexpr int pow(int x)
Definition: conifer.h:24
double d3DFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_reszPhiResiduals
std::vector< TH1F * > a_IP2DPhiResiduals
float chi2ProbUnbiasedVertex_[nMaxtracks_]
unsigned int pxbLadder(const DetId &id) const
const PerigeeTrajectoryError & perigeeError() const
Log< level::Error, false > LogError
std::vector< TH1F * > n_reszEtaResiduals
double dxyFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
std::vector< TH1F * > a_dxEtaResiduals
std::pair< bool, bool > pixelHitsCheck(const reco::TransientTrack &track)
double dzErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > n_dxyEtaBiasResiduals
#define LogTrace(id)
std::vector< TH1F * > n_dxyEtaResiduals
double IPTsigFromMyVertex_[nMaxtracks_]
reco::TransientTrack build(const reco::Track *p) const
GlobalPoint position() const
std::vector< TH1F * > a_dzPhiBiasResiduals
std::map< plotVariable, std::vector< float > > trendbins
double pt() const
track transverse momentum
Definition: TrackBase.h:637
auto recHits() const
Access to reconstructed hits on the track.
Definition: Track.h:85
std::vector< TH1F * > h_norm_dxy_pT_
std::vector< TH1F * > a_dzEtaResiduals
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken_
int tracksUsedForVertexing_[nMaxtracks_]
int charge() const
track electric charge
Definition: TrackBase.h:596
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622
int iEvent
Definition: GenABIO.cc:224
Definition: TTTypes.h:54
runControlNumber
Definition: PV_cfg.py:170
std::vector< TH1F * > a_dxyEtaBiasResiduals
std::vector< TH1F * > h_norm_dxy_ladder_
std::vector< TH1F * > a_dzPhiResiduals
double dzError() const
error on dz
Definition: TrackBase.h:778
double yUnbiasedVertex_[nMaxtracks_]
std::unique_ptr< TrackClusterizerInZ > theTrackClusterizer_
T sqrt(T t)
Definition: SSEVec.h:19
std::vector< TH1F * > n_dxyPhiResiduals
TH1F * a_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double zUnbiasedVertex_[nMaxtracks_]
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:649
std::vector< TH1F * > h_dxy_ladder_
float chi2normUnbiasedVertex_[nMaxtracks_]
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:676
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_dxyPhiResiduals
std::vector< TH1F * > a_dxyPhiBiasResiduals
TH1F * a_d3DResidualsMap[nMaxBins_][nMaxBins_]
float clusterProbability(unsigned int flags=0) const
Definition: SiPixelRecHit.cc:9
std::vector< TH1F * > h_dxy_ladderNoOverlap_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
TH1F * n_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
double IPLsigFromMyVertex_[nMaxtracks_]
const PerigeeTrajectoryParameters & perigeeParameters() const
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
bool hasFirstLayerPixelHits(const reco::TransientTrack &track)
std::vector< TH1F * > n_dzEtaResiduals
std::unique_ptr< TrackFilterForPVFindingBase > theTrackFilter_
#define M_PI
std::vector< TH1F * > n_IP3DEtaResiduals
Log< level::Info, false > LogInfo
std::vector< TH1F * > h_norm_dz_pT_
bool isHit2D(const TrackingRecHit &hit, const PVValHelper::detectorPhase &thePhase) const
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:652
Definition: DetId.h:17
static constexpr float d0
TH1F * a_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dz_pT_
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > ttkToken_
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504
std::vector< TH1F * > n_dzEtaBiasResiduals
std::vector< TH1F * > h_dz_Central_pT_
std::vector< TH1F * > h_dz_ladder_
std::vector< TH1F * > a_IP2DEtaResiduals
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:646
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:587
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:593
const FreeTrajectoryState & theState() const
std::vector< TH1F * > n_IP2DPhiResiduals
double xUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_Central_pT_
PVValHelper::detectorPhase phase_
bool isValid() const
Definition: HandleBase.h:70
TH1F * n_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
double theta() const
polar angle
Definition: TrackBase.h:602
double dzFromMyVertex_[nMaxtracks_]
fixed size matrix
static int position[264][3]
Definition: ReadPGInfo.cc:289
std::vector< TH1F * > a_reszEtaResiduals
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_dxPhiResiduals
std::vector< TH1F * > h_norm_dz_modZ_
TH1F * n_dxyResidualsMap[nMaxBins_][nMaxBins_]
double dxyErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyEtaResiduals
unsigned int pxbModule(const DetId &id) const
Log< level::Warning, false > LogWarning
std::vector< TH1F * > n_IP2DEtaResiduals
std::vector< TH1F * > h_norm_dz_ladder_
char const * what() const noexcept override
Definition: Exception.cc:107
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
void fillByIndex(std::vector< TH1F *> &h, unsigned int index, double x, std::string tag="")
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
double d3DErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyPhiResiduals
double d0Error() const
error on d0
Definition: TrackBase.h:772
std::vector< TH1F * > h_dxy_ladderOverlap_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
PVValHelper::histodetails theDetails_
std::array< float, nPtBins_+1 > mypT_bins_
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
Definition: Vertex.h:38
float chi2UnbiasedVertex_[nMaxtracks_]
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
std::vector< TH1F * > h_norm_dxy_Central_pT_
Global3DVector GlobalVector
Definition: GlobalVector.h:10
std::vector< TH1F * > a_dzEtaBiasResiduals
Our base class.
Definition: SiPixelRecHit.h:23
std::vector< TH1F * > a_IP3DPhiResiduals
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608
#define LogDebug(id)
std::vector< TH1F * > n_dzPhiBiasResiduals
double IP3DsigFromMyVertex_[nMaxtracks_]

◆ beginJob()

void PrimaryVertexValidation::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 1080 of file PrimaryVertexValidation.cc.

References a_d3DEtaResiduals, a_d3DPhiResiduals, a_d3DResidualsMap, a_dxEtaResiduals, a_dxPhiResiduals, a_dxyBiasResidualsMap, a_dxyEtaBiasResiduals, a_dxyEtaMADBiasTrend, a_dxyEtaMADTrend, a_dxyEtaMeanBiasTrend, a_dxyEtaMeanTrend, a_dxyEtaMedianBiasTrend, a_dxyEtaMedianTrend, a_dxyEtaResiduals, a_dxyEtaWidthBiasTrend, a_dxyEtaWidthTrend, a_dxyL1ResidualsMap, a_dxyMeanBiasMap, a_dxyMeanMap, a_dxyPhiBiasResiduals, a_dxyPhiMADBiasTrend, a_dxyPhiMADTrend, a_dxyPhiMeanBiasTrend, a_dxyPhiMeanTrend, a_dxyPhiMedianBiasTrend, a_dxyPhiMedianTrend, a_dxyPhiResiduals, a_dxyPhiWidthBiasTrend, a_dxyPhiWidthTrend, a_dxypTCentralMeanTrend, a_dxypTCentralWidthTrend, a_dxypTMeanTrend, a_dxypTWidthTrend, a_dxyResidualsMap, a_dxyVsEta, a_dxyVsPhi, a_dxyWidthBiasMap, a_dxyWidthMap, a_dyEtaResiduals, a_dyPhiResiduals, a_dzBiasResidualsMap, a_dzEtaBiasResiduals, a_dzEtaMADBiasTrend, a_dzEtaMADTrend, a_dzEtaMeanBiasTrend, a_dzEtaMeanTrend, a_dzEtaMedianBiasTrend, a_dzEtaMedianTrend, a_dzEtaResiduals, a_dzEtaWidthBiasTrend, a_dzEtaWidthTrend, a_dzL1ResidualsMap, a_dzMeanBiasMap, a_dzMeanMap, a_dzPhiBiasResiduals, a_dzPhiMADBiasTrend, a_dzPhiMADTrend, a_dzPhiMeanBiasTrend, a_dzPhiMeanTrend, a_dzPhiMedianBiasTrend, a_dzPhiMedianTrend, a_dzPhiResiduals, a_dzPhiWidthBiasTrend, a_dzPhiWidthTrend, a_dzpTCentralMeanTrend, a_dzpTCentralWidthTrend, a_dzpTMeanTrend, a_dzpTWidthTrend, a_dzResidualsMap, a_dzVsEta, a_dzVsPhi, a_dzWidthBiasMap, a_dzWidthMap, a_IP2DEtaResiduals, a_IP2DPhiResiduals, a_IP3DEtaResiduals, a_IP3DPhiResiduals, a_reszEtaResiduals, a_reszPhiResiduals, Beamdxdz_, Beamsigmaz_, BeamWidthX_, BeamWidthY_, bookResidualsHistogram(), bookVertexHistograms(), BSx0_, BSy0_, BSz0_, charge_, chi2_, chi2ndof_, chi2normUnbiasedVertex_, chi2ProbUnbiasedVertex_, chi2UnbiasedVertex_, compressionSettings_, PVValHelper::d3D, d3DFromMyVertex_, DOFUnbiasedVertex_, PVValHelper::dx, PVValHelper::dxy, dxy_, dxyBs_, dxyErrorFromMyVertex_, dxyFromMyVertex_, PVValHelper::dy, PVValHelper::dz, dz_, dzBs_, dzErrorFromMyVertex_, dzFromMyVertex_, PVValHelper::eta, eta_, etaOfProbe_, EventNumber_, TFileService::file(), fs, PVValHelper::histodetails::getHigh(), h2_probeEtaPhi_, h2_probeEtaPt_, h2_probeLayer1Map_, h2_probePassingLayer1Map_, h_Beamsigmaz, h_BeamWidthX, h_BeamWidthY, h_BSx0, h_BSy0, h_BSz0, h_dxy_Central_pT_, h_dxy_ladder_, h_dxy_ladderNoOverlap_, h_dxy_ladderOverlap_, h_dxy_modZ_, h_dxy_pT_, h_dz_Central_pT_, h_dz_ladder_, h_dz_modZ_, h_dz_pT_, h_etaMax, h_fitVtxChi2_, h_fitVtxChi2ndf_, h_fitVtxChi2Prob_, h_fitVtxNdof_, h_fitVtxNtracks_, h_fitVtxTrackAverageWeight_, h_fitVtxTrackWeights_, h_lumiFromConfig, h_nbins, h_nClus, h_nLadders, h_nModZ, h_nOfflineVertices, h_norm_dxy_Central_pT_, h_norm_dxy_ladder_, h_norm_dxy_modZ_, h_norm_dxy_pT_, h_norm_dz_Central_pT_, h_norm_dz_ladder_, h_norm_dz_modZ_, h_norm_dz_pT_, h_nTracks, h_probeCharge_, h_probeChi2_, h_probed0RefitV_, h_probed3DRefitV_, h_probedxyRecoV_, h_probedxyRefitV_, h_probedzRecoV_, h_probedzRefitV_, h_probeEta_, h_probeHasBPixL1Overlap_, h_probeHits1D_, h_probeHits2D_, h_probeHits_, h_probeHitsInBPIX_, h_probeHitsInFPIX_, h_probeHitsInTEC_, h_probeHitsInTIB_, h_probeHitsInTID_, h_probeHitsInTOB_, h_probeL1ClusterProb_, h_probeL1Ladder_, h_probeL1Module_, h_probeNormChi2_, h_probeP_, h_probePhi_, h_probePt_, h_probePtRebin_, h_probeQoverP_, h_probeRecoVSigXY_, h_probeRecoVSigZ_, h_probeRefitVLogSig3D_, h_probeRefitVSig3D_, h_probeRefitVSigResZ_, h_probeRefitVSigXY_, h_probeRefitVSigZ_, h_probereszRefitV_, h_probesignIP2DRefitV_, h_probez0RefitV_, h_pTinfo, h_recoVtxChi2ndf_, h_recoVtxChi2Prob_, h_recoVtxNtracks_, h_recoVtxSumPt_, h_runFromConfig, h_runFromEvent, h_runNumber, h_xErrOfflineVertex, h_xOfflineVertex, h_yErrOfflineVertex, h_yOfflineVertex, h_zErrOfflineVertex, h_zOfflineVertex, hasRecVertex_, hDA, MonitorHOAlCaRecoStream_cfi::highedge, PVValHelper::histodetails::histobins, mps_fire::i, intLumi_, PVValHelper::IP2D, PVValHelper::IP3D, IP3DsigFromMyVertex_, IPLsigFromMyVertex_, IPTsigFromMyVertex_, isGoodTrack_, isHighPurity_, dqmiolumiharvest::j, PVValHelper::ladder, lightNtupleSwitch_, MonitorHOAlCaRecoStream_cfi::lowedge, LuminosityBlockNumber_, M_PI, MADTrendsDir, TFileDirectory::make(), TFileService::make(), Mean2DMapsDir, MeanTrendsDir, MedianTrendsDir, TFileService::mkdir(), PVValHelper::modZ, mypT_bins_, n_d3DEtaResiduals, n_d3DPhiResiduals, n_d3DResidualsMap, n_dxyBiasResidualsMap, n_dxyEtaBiasResiduals, n_dxyEtaMADBiasTrend, n_dxyEtaMADTrend, n_dxyEtaMeanBiasTrend, n_dxyEtaMeanTrend, n_dxyEtaMedianBiasTrend, n_dxyEtaMedianTrend, n_dxyEtaResiduals, n_dxyEtaWidthBiasTrend, n_dxyEtaWidthTrend, n_dxyL1ResidualsMap, n_dxyMeanBiasMap, n_dxyMeanMap, n_dxyPhiBiasResiduals, n_dxyPhiMADBiasTrend, n_dxyPhiMADTrend, n_dxyPhiMeanBiasTrend, n_dxyPhiMeanTrend, n_dxyPhiMedianBiasTrend, n_dxyPhiMedianTrend, n_dxyPhiResiduals, n_dxyPhiWidthBiasTrend, n_dxyPhiWidthTrend, n_dxypTCentralMeanTrend, n_dxypTCentralWidthTrend, n_dxypTMeanTrend, n_dxypTWidthTrend, n_dxyResidualsMap, n_dxyVsEta, n_dxyVsPhi, n_dxyWidthBiasMap, n_dxyWidthMap, n_dzBiasResidualsMap, n_dzEtaBiasResiduals, n_dzEtaMADBiasTrend, n_dzEtaMADTrend, n_dzEtaMeanBiasTrend, n_dzEtaMeanTrend, n_dzEtaMedianBiasTrend, n_dzEtaMedianTrend, n_dzEtaResiduals, n_dzEtaWidthBiasTrend, n_dzEtaWidthTrend, n_dzL1ResidualsMap, n_dzMeanBiasMap, n_dzMeanMap, n_dzPhiBiasResiduals, n_dzPhiMADBiasTrend, n_dzPhiMADTrend, n_dzPhiMeanBiasTrend, n_dzPhiMeanTrend, n_dzPhiMedianBiasTrend, n_dzPhiMedianTrend, n_dzPhiResiduals, n_dzPhiWidthBiasTrend, n_dzPhiWidthTrend, n_dzpTCentralMeanTrend, n_dzpTCentralWidthTrend, n_dzpTMeanTrend, n_dzpTWidthTrend, n_dzResidualsMap, n_dzVsEta, n_dzVsPhi, n_dzWidthBiasMap, n_dzWidthMap, n_IP2DEtaResiduals, n_IP2DPhiResiduals, n_IP3DEtaResiduals, n_IP3DPhiResiduals, n_reszEtaResiduals, n_reszPhiResiduals, nBins_, nClus_, Nevt_, nhits1D_, nhits2D_, nhits_, nhitsBPIX_, nhitsFPIX_, nhitsTEC_, nhitsTIB_, nhitsTID_, nhitsTOB_, nLadders_, nModZ_, nOfflineVertices_, PVValHelper::norm_d3D, PVValHelper::norm_dxy, PVValHelper::norm_dz, PVValHelper::norm_IP2D, PVValHelper::norm_IP3D, PVValHelper::norm_resz, nPtBins_, nTracks_, nTracksPerClus_, p_, PVValHelper::phi, phi_, PVValHelper::pT, pt_, PVValHelper::pTCentral, qoverp_, PVValHelper::resz, rootTree_, writedatasetfile::run, runControlNumbers_, RunNumber_, sumOfWeightsUnbiasedVertex_, theDetails_, theta_, tracksUsedForVertexing_, PVValHelper::histodetails::trendbins, useTracksFromRecoVtx_, Width2DMapsDir, WidthTrendsDir, xOfflineVertex_, xPCA_, xUnbiasedVertex_, yOfflineVertex_, yPCA_, yUnbiasedVertex_, zOfflineVertex_, zPCA_, and zUnbiasedVertex_.

1080  {
1081  edm::LogInfo("PrimaryVertexValidation") << "######################################\n"
1082  << "Begin Job \n"
1083  << "######################################";
1084 
1085  // Define TTree for output
1086  Nevt_ = 0;
1087  if (compressionSettings_ > 0) {
1088  fs->file().SetCompressionSettings(compressionSettings_);
1089  }
1090 
1091  // rootFile_ = new TFile(filename_.c_str(),"recreate");
1092  rootTree_ = fs->make<TTree>("tree", "PV Validation tree");
1093 
1094  // Track Paramters
1095 
1096  if (lightNtupleSwitch_) {
1097  rootTree_->Branch("EventNumber", &EventNumber_, "EventNumber/i");
1098  rootTree_->Branch("RunNumber", &RunNumber_, "RunNumber/i");
1099  rootTree_->Branch("LuminosityBlockNumber", &LuminosityBlockNumber_, "LuminosityBlockNumber/i");
1100  rootTree_->Branch("nOfflineVertices", &nOfflineVertices_, "nOfflineVertices/I");
1101  rootTree_->Branch("nTracks", &nTracks_, "nTracks/I");
1102  rootTree_->Branch("phi", &phi_, "phi[nTracks]/D");
1103  rootTree_->Branch("eta", &eta_, "eta[nTracks]/D");
1104  rootTree_->Branch("pt", &pt_, "pt[nTracks]/D");
1105  rootTree_->Branch("dxyFromMyVertex", &dxyFromMyVertex_, "dxyFromMyVertex[nTracks]/D");
1106  rootTree_->Branch("dzFromMyVertex", &dzFromMyVertex_, "dzFromMyVertex[nTracks]/D");
1107  rootTree_->Branch("d3DFromMyVertex", &d3DFromMyVertex_, "d3DFromMyVertex[nTracks]/D");
1108  rootTree_->Branch("IPTsigFromMyVertex", &IPTsigFromMyVertex_, "IPTsigFromMyVertex_[nTracks]/D");
1109  rootTree_->Branch("IPLsigFromMyVertex", &IPLsigFromMyVertex_, "IPLsigFromMyVertex_[nTracks]/D");
1110  rootTree_->Branch("IP3DsigFromMyVertex", &IP3DsigFromMyVertex_, "IP3DsigFromMyVertex_[nTracks]/D");
1111  rootTree_->Branch("hasRecVertex", &hasRecVertex_, "hasRecVertex[nTracks]/I");
1112  rootTree_->Branch("isGoodTrack", &isGoodTrack_, "isGoodTrack[nTracks]/I");
1113  rootTree_->Branch("isHighPurity", &isHighPurity_, "isHighPurity_[nTracks]/I");
1114 
1115  } else {
1116  rootTree_->Branch("nTracks", &nTracks_, "nTracks/I");
1117  rootTree_->Branch("nTracksPerClus", &nTracksPerClus_, "nTracksPerClus/I");
1118  rootTree_->Branch("nClus", &nClus_, "nClus/I");
1119  rootTree_->Branch("xOfflineVertex", &xOfflineVertex_, "xOfflineVertex/D");
1120  rootTree_->Branch("yOfflineVertex", &yOfflineVertex_, "yOfflineVertex/D");
1121  rootTree_->Branch("zOfflineVertex", &zOfflineVertex_, "zOfflineVertex/D");
1122  rootTree_->Branch("BSx0", &BSx0_, "BSx0/D");
1123  rootTree_->Branch("BSy0", &BSy0_, "BSy0/D");
1124  rootTree_->Branch("BSz0", &BSz0_, "BSz0/D");
1125  rootTree_->Branch("Beamsigmaz", &Beamsigmaz_, "Beamsigmaz/D");
1126  rootTree_->Branch("Beamdxdz", &Beamdxdz_, "Beamdxdz/D");
1127  rootTree_->Branch("BeamWidthX", &BeamWidthX_, "BeamWidthX/D");
1128  rootTree_->Branch("BeamWidthY", &BeamWidthY_, "BeamWidthY/D");
1129  rootTree_->Branch("pt", &pt_, "pt[nTracks]/D");
1130  rootTree_->Branch("p", &p_, "p[nTracks]/D");
1131  rootTree_->Branch("nhits", &nhits_, "nhits[nTracks]/I");
1132  rootTree_->Branch("nhits1D", &nhits1D_, "nhits1D[nTracks]/I");
1133  rootTree_->Branch("nhits2D", &nhits2D_, "nhits2D[nTracks]/I");
1134  rootTree_->Branch("nhitsBPIX", &nhitsBPIX_, "nhitsBPIX[nTracks]/I");
1135  rootTree_->Branch("nhitsFPIX", &nhitsFPIX_, "nhitsFPIX[nTracks]/I");
1136  rootTree_->Branch("nhitsTIB", &nhitsTIB_, "nhitsTIB[nTracks]/I");
1137  rootTree_->Branch("nhitsTID", &nhitsTID_, "nhitsTID[nTracks]/I");
1138  rootTree_->Branch("nhitsTOB", &nhitsTOB_, "nhitsTOB[nTracks]/I");
1139  rootTree_->Branch("nhitsTEC", &nhitsTEC_, "nhitsTEC[nTracks]/I");
1140  rootTree_->Branch("eta", &eta_, "eta[nTracks]/D");
1141  rootTree_->Branch("theta", &theta_, "theta[nTracks]/D");
1142  rootTree_->Branch("phi", &phi_, "phi[nTracks]/D");
1143  rootTree_->Branch("chi2", &chi2_, "chi2[nTracks]/D");
1144  rootTree_->Branch("chi2ndof", &chi2ndof_, "chi2ndof[nTracks]/D");
1145  rootTree_->Branch("charge", &charge_, "charge[nTracks]/I");
1146  rootTree_->Branch("qoverp", &qoverp_, "qoverp[nTracks]/D");
1147  rootTree_->Branch("dz", &dz_, "dz[nTracks]/D");
1148  rootTree_->Branch("dxy", &dxy_, "dxy[nTracks]/D");
1149  rootTree_->Branch("dzBs", &dzBs_, "dzBs[nTracks]/D");
1150  rootTree_->Branch("dxyBs", &dxyBs_, "dxyBs[nTracks]/D");
1151  rootTree_->Branch("xPCA", &xPCA_, "xPCA[nTracks]/D");
1152  rootTree_->Branch("yPCA", &yPCA_, "yPCA[nTracks]/D");
1153  rootTree_->Branch("zPCA", &zPCA_, "zPCA[nTracks]/D");
1154  rootTree_->Branch("xUnbiasedVertex", &xUnbiasedVertex_, "xUnbiasedVertex[nTracks]/D");
1155  rootTree_->Branch("yUnbiasedVertex", &yUnbiasedVertex_, "yUnbiasedVertex[nTracks]/D");
1156  rootTree_->Branch("zUnbiasedVertex", &zUnbiasedVertex_, "zUnbiasedVertex[nTracks]/D");
1157  rootTree_->Branch("chi2normUnbiasedVertex", &chi2normUnbiasedVertex_, "chi2normUnbiasedVertex[nTracks]/F");
1158  rootTree_->Branch("chi2UnbiasedVertex", &chi2UnbiasedVertex_, "chi2UnbiasedVertex[nTracks]/F");
1159  rootTree_->Branch("DOFUnbiasedVertex", &DOFUnbiasedVertex_, " DOFUnbiasedVertex[nTracks]/F");
1160  rootTree_->Branch("chi2ProbUnbiasedVertex", &chi2ProbUnbiasedVertex_, "chi2ProbUnbiasedVertex[nTracks]/F");
1161  rootTree_->Branch(
1162  "sumOfWeightsUnbiasedVertex", &sumOfWeightsUnbiasedVertex_, "sumOfWeightsUnbiasedVertex[nTracks]/F");
1163  rootTree_->Branch("tracksUsedForVertexing", &tracksUsedForVertexing_, "tracksUsedForVertexing[nTracks]/I");
1164  rootTree_->Branch("dxyFromMyVertex", &dxyFromMyVertex_, "dxyFromMyVertex[nTracks]/D");
1165  rootTree_->Branch("dzFromMyVertex", &dzFromMyVertex_, "dzFromMyVertex[nTracks]/D");
1166  rootTree_->Branch("dxyErrorFromMyVertex", &dxyErrorFromMyVertex_, "dxyErrorFromMyVertex_[nTracks]/D");
1167  rootTree_->Branch("dzErrorFromMyVertex", &dzErrorFromMyVertex_, "dzErrorFromMyVertex_[nTracks]/D");
1168  rootTree_->Branch("IPTsigFromMyVertex", &IPTsigFromMyVertex_, "IPTsigFromMyVertex_[nTracks]/D");
1169  rootTree_->Branch("IPLsigFromMyVertex", &IPLsigFromMyVertex_, "IPLsigFromMyVertex_[nTracks]/D");
1170  rootTree_->Branch("hasRecVertex", &hasRecVertex_, "hasRecVertex[nTracks]/I");
1171  rootTree_->Branch("isGoodTrack", &isGoodTrack_, "isGoodTrack[nTracks]/I");
1172  }
1173 
1174  // event histograms
1175  TFileDirectory EventFeatures = fs->mkdir("EventFeatures");
1176 
1177  TH1F::SetDefaultSumw2(kTRUE);
1178 
1180  EventFeatures.make<TH1F>("h_lumiFromConfig", "luminosity from config;;luminosity of present run", 1, -0.5, 0.5);
1181  h_lumiFromConfig->SetBinContent(1, intLumi_);
1182 
1183  h_runFromConfig = EventFeatures.make<TH1I>("h_runFromConfig",
1184  "run number from config;;run number (from configuration)",
1185  runControlNumbers_.size(),
1186  0.,
1187  runControlNumbers_.size());
1188 
1189  for (const auto& run : runControlNumbers_ | boost::adaptors::indexed(1)) {
1190  h_runFromConfig->SetBinContent(run.index(), run.value());
1191  }
1192 
1193  h_runFromEvent =
1194  EventFeatures.make<TH1I>("h_runFromEvent", "run number from event;;run number (from event)", 1, -0.5, 0.5);
1195  h_nTracks =
1196  EventFeatures.make<TH1F>("h_nTracks", "number of tracks per event;n_{tracks}/event;n_{events}", 300, -0.5, 299.5);
1197  h_nClus =
1198  EventFeatures.make<TH1F>("h_nClus", "number of track clusters;n_{clusters}/event;n_{events}", 50, -0.5, 49.5);
1199  h_nOfflineVertices = EventFeatures.make<TH1F>(
1200  "h_nOfflineVertices", "number of offline reconstructed vertices;n_{vertices}/event;n_{events}", 50, -0.5, 49.5);
1201  h_runNumber = EventFeatures.make<TH1F>("h_runNumber", "run number;run number;n_{events}", 100000, 250000., 350000.);
1202  h_xOfflineVertex = EventFeatures.make<TH1F>(
1203  "h_xOfflineVertex", "x-coordinate of offline vertex;x_{vertex};n_{events}", 100, -0.1, 0.1);
1204  h_yOfflineVertex = EventFeatures.make<TH1F>(
1205  "h_yOfflineVertex", "y-coordinate of offline vertex;y_{vertex};n_{events}", 100, -0.1, 0.1);
1206  h_zOfflineVertex = EventFeatures.make<TH1F>(
1207  "h_zOfflineVertex", "z-coordinate of offline vertex;z_{vertex};n_{events}", 100, -30., 30.);
1208  h_xErrOfflineVertex = EventFeatures.make<TH1F>(
1209  "h_xErrOfflineVertex", "x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}", 100, 0., 0.01);
1210  h_yErrOfflineVertex = EventFeatures.make<TH1F>(
1211  "h_yErrOfflineVertex", "y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}", 100, 0., 0.01);
1212  h_zErrOfflineVertex = EventFeatures.make<TH1F>(
1213  "h_zErrOfflineVertex", "z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}", 100, 0., 10.);
1214  h_BSx0 = EventFeatures.make<TH1F>("h_BSx0", "x-coordinate of reco beamspot;x^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1215  h_BSy0 = EventFeatures.make<TH1F>("h_BSy0", "y-coordinate of reco beamspot;y^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1216  h_BSz0 = EventFeatures.make<TH1F>("h_BSz0", "z-coordinate of reco beamspot;z^{BS}_{0};n_{events}", 100, -1., 1.);
1217  h_Beamsigmaz =
1218  EventFeatures.make<TH1F>("h_Beamsigmaz", "z-coordinate beam width;#sigma_{Z}^{beam};n_{events}", 100, 0., 1.);
1219  h_BeamWidthX =
1220  EventFeatures.make<TH1F>("h_BeamWidthX", "x-coordinate beam width;#sigma_{X}^{beam};n_{events}", 100, 0., 0.01);
1221  h_BeamWidthY =
1222  EventFeatures.make<TH1F>("h_BeamWidthY", "y-coordinate beam width;#sigma_{Y}^{beam};n_{events}", 100, 0., 0.01);
1223 
1224  h_etaMax = EventFeatures.make<TH1F>("etaMax", "etaMax", 1, -0.5, 0.5);
1225  h_pTinfo = EventFeatures.make<TH1F>("pTinfo", "pTinfo", 3, -1.5, 1.5);
1226  h_pTinfo->GetXaxis()->SetBinLabel(1, "n. bins");
1227  h_pTinfo->GetXaxis()->SetBinLabel(2, "pT min");
1228  h_pTinfo->GetXaxis()->SetBinLabel(3, "pT max");
1229 
1230  h_nbins = EventFeatures.make<TH1F>("nbins", "nbins", 1, -0.5, 0.5);
1231  h_nLadders = EventFeatures.make<TH1F>("nladders", "n. ladders", 1, -0.5, 0.5);
1232  h_nModZ = EventFeatures.make<TH1F>("nModZ", "n. modules along z", 1, -0.5, 0.5);
1233 
1234  // probe track histograms
1235  TFileDirectory ProbeFeatures = fs->mkdir("ProbeTrackFeatures");
1236 
1237  h_probePt_ = ProbeFeatures.make<TH1F>("h_probePt", "p_{T} of probe track;track p_{T} (GeV); tracks", 100, 0., 50.);
1238  h_probePtRebin_ = ProbeFeatures.make<TH1F>(
1239  "h_probePtRebin", "p_{T} of probe track;track p_{T} (GeV); tracks", mypT_bins_.size() - 1, mypT_bins_.data());
1240  h_probeP_ = ProbeFeatures.make<TH1F>("h_probeP", "momentum of probe track;track p (GeV); tracks", 100, 0., 100.);
1241  h_probeEta_ = ProbeFeatures.make<TH1F>(
1242  "h_probeEta", "#eta of the probe track;track #eta;tracks", 54, -etaOfProbe_, etaOfProbe_);
1243  h_probePhi_ = ProbeFeatures.make<TH1F>("h_probePhi", "#phi of probe track;track #phi (rad);tracks", 100, -3.15, 3.15);
1244 
1245  h2_probeEtaPhi_ =
1246  ProbeFeatures.make<TH2F>("h2_probeEtaPhi",
1247  "probe track #phi vs #eta;#eta of probe track;track #phi of probe track (rad); tracks",
1248  54,
1249  -etaOfProbe_,
1250  etaOfProbe_,
1251  100,
1252  -M_PI,
1253  M_PI);
1254  h2_probeEtaPt_ = ProbeFeatures.make<TH2F>("h2_probeEtaPt",
1255  "probe track p_{T} vs #eta;#eta of probe track;track p_{T} (GeV); tracks",
1256  54,
1257  -etaOfProbe_,
1258  etaOfProbe_,
1259  100,
1260  0.,
1261  50.);
1262 
1263  h_probeChi2_ =
1264  ProbeFeatures.make<TH1F>("h_probeChi2", "#chi^{2} of probe track;track #chi^{2}; tracks", 100, 0., 100.);
1265  h_probeNormChi2_ = ProbeFeatures.make<TH1F>(
1266  "h_probeNormChi2", " normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks", 100, 0., 10.);
1267  h_probeCharge_ =
1268  ProbeFeatures.make<TH1F>("h_probeCharge", "charge of probe track;track charge Q;tracks", 3, -1.5, 1.5);
1269  h_probeQoverP_ =
1270  ProbeFeatures.make<TH1F>("h_probeQoverP", "q/p of probe track; track Q/p (GeV^{-1});tracks", 200, -1., 1.);
1271  h_probedzRecoV_ = ProbeFeatures.make<TH1F>(
1272  "h_probedzRecoV", "d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks", 200, -1., 1.);
1273  h_probedxyRecoV_ = ProbeFeatures.make<TH1F>(
1274  "h_probedxyRecoV", "d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks", 200, -1., 1.);
1275  h_probedzRefitV_ = ProbeFeatures.make<TH1F>(
1276  "h_probedzRefitV", "d_{z}(V_{refit}) of probe track;track d_{z}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1277  h_probesignIP2DRefitV_ = ProbeFeatures.make<TH1F>(
1278  "h_probesignIPRefitV", "ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks", 200, -1., 1.);
1279  h_probedxyRefitV_ = ProbeFeatures.make<TH1F>(
1280  "h_probedxyRefitV", "d_{xy}(V_{refit}) of probe track;track d_{xy}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1281 
1282  h_probez0RefitV_ = ProbeFeatures.make<TH1F>(
1283  "h_probez0RefitV", "z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1284  h_probed0RefitV_ = ProbeFeatures.make<TH1F>(
1285  "h_probed0RefitV", "d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1286 
1287  h_probed3DRefitV_ = ProbeFeatures.make<TH1F>(
1288  "h_probed3DRefitV", "d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks", 200, 0., 1.);
1289  h_probereszRefitV_ = ProbeFeatures.make<TH1F>(
1290  "h_probeReszRefitV", "z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks", 200, -1., 1.);
1291 
1292  h_probeRecoVSigZ_ = ProbeFeatures.make<TH1F>(
1293  "h_probeRecoVSigZ", "Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks", 100, -8, 8);
1294  h_probeRecoVSigXY_ = ProbeFeatures.make<TH1F>(
1295  "h_probeRecoVSigXY", "Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks", 100, -8, 8);
1296  h_probeRefitVSigZ_ = ProbeFeatures.make<TH1F>(
1297  "h_probeRefitVSigZ", "Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks", 100, -8, 8);
1298  h_probeRefitVSigXY_ = ProbeFeatures.make<TH1F>(
1299  "h_probeRefitVSigXY", "Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks", 100, -8, 8);
1300  h_probeRefitVSig3D_ = ProbeFeatures.make<TH1F>(
1301  "h_probeRefitVSig3D", "3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks", 100, 0., 20.);
1303  ProbeFeatures.make<TH1F>("h_probeRefitVLogSig3D",
1304  "log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",
1305  100,
1306  -5.,
1307  4.);
1308  h_probeRefitVSigResZ_ = ProbeFeatures.make<TH1F>(
1309  "h_probeRefitVSigResZ",
1310  "Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",
1311  100,
1312  -8,
1313  8);
1314 
1315  h_probeHits_ = ProbeFeatures.make<TH1F>("h_probeNRechits", "N_{hits} ;N_{hits} ;tracks", 40, -0.5, 39.5);
1316  h_probeHits1D_ = ProbeFeatures.make<TH1F>("h_probeNRechits1D", "N_{hits} 1D ;N_{hits} 1D ;tracks", 40, -0.5, 39.5);
1317  h_probeHits2D_ = ProbeFeatures.make<TH1F>("h_probeNRechits2D", "N_{hits} 2D ;N_{hits} 2D ;tracks", 40, -0.5, 39.5);
1319  ProbeFeatures.make<TH1F>("h_probeNRechitsTIB", "N_{hits} TIB ;N_{hits} TIB;tracks", 40, -0.5, 39.5);
1321  ProbeFeatures.make<TH1F>("h_probeNRechitsTOB", "N_{hits} TOB ;N_{hits} TOB;tracks", 40, -0.5, 39.5);
1323  ProbeFeatures.make<TH1F>("h_probeNRechitsTID", "N_{hits} TID ;N_{hits} TID;tracks", 40, -0.5, 39.5);
1325  ProbeFeatures.make<TH1F>("h_probeNRechitsTEC", "N_{hits} TEC ;N_{hits} TEC;tracks", 40, -0.5, 39.5);
1327  ProbeFeatures.make<TH1F>("h_probeNRechitsBPIX", "N_{hits} BPIX;N_{hits} BPIX;tracks", 40, -0.5, 39.5);
1329  ProbeFeatures.make<TH1F>("h_probeNRechitsFPIX", "N_{hits} FPIX;N_{hits} FPIX;tracks", 40, -0.5, 39.5);
1330 
1331  h_probeL1Ladder_ = ProbeFeatures.make<TH1F>(
1332  "h_probeL1Ladder", "Ladder number (L1 hit); ladder number", nLadders_ + 2, -1.5, nLadders_ + 0.5);
1333  h_probeL1Module_ = ProbeFeatures.make<TH1F>(
1334  "h_probeL1Module", "Module number (L1 hit); module number", nModZ_ + 2, -1.5, nModZ_ + 0.5);
1335 
1336  h2_probeLayer1Map_ = ProbeFeatures.make<TH2F>("h2_probeLayer1Map",
1337  "Position in Layer 1 of first hit;module number;ladder number",
1338  nModZ_,
1339  0.5,
1340  nModZ_ + 0.5,
1341  nLadders_,
1342  0.5,
1343  nLadders_ + 0.5);
1344 
1345  h2_probePassingLayer1Map_ = ProbeFeatures.make<TH2F>("h2_probePassingLayer1Map",
1346  "Position in Layer 1 of first hit;module number;ladder number",
1347  nModZ_,
1348  0.5,
1349  nModZ_ + 0.5,
1350  nLadders_,
1351  0.5,
1352  nLadders_ + 0.5);
1354  ProbeFeatures.make<TH1I>("h_probeHasBPixL1Overlap", "n. hits in L1;n. L1-BPix hits;tracks", 5, -0.5, 4.5);
1355  h_probeL1ClusterProb_ = ProbeFeatures.make<TH1F>(
1356  "h_probeL1ClusterProb",
1357  "log_{10}(Cluster Probability) for Layer1 hits;log_{10}(cluster probability); n. Layer1 hits",
1358  100,
1359  -10.,
1360  0.);
1361 
1362  // refit vertex features
1363  TFileDirectory RefitVertexFeatures = fs->mkdir("RefitVertexFeatures");
1364  h_fitVtxNtracks_ = RefitVertexFeatures.make<TH1F>(
1365  "h_fitVtxNtracks", "N_{trks} used in vertex fit;N^{fit}_{tracks};vertices", 100, -0.5, 99.5);
1366  h_fitVtxNdof_ = RefitVertexFeatures.make<TH1F>(
1367  "h_fitVtxNdof", "N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices", 100, -0.5, 99.5);
1368  h_fitVtxChi2_ = RefitVertexFeatures.make<TH1F>(
1369  "h_fitVtxChi2", "#chi^{2} of vertex fit;vertex #chi^{2};vertices", 100, -0.5, 99.5);
1370  h_fitVtxChi2ndf_ = RefitVertexFeatures.make<TH1F>(
1371  "h_fitVtxChi2ndf", "#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices", 100, -0.5, 9.5);
1372  h_fitVtxChi2Prob_ = RefitVertexFeatures.make<TH1F>(
1373  "h_fitVtxChi2Prob", "Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1374  h_fitVtxTrackWeights_ = RefitVertexFeatures.make<TH1F>(
1375  "h_fitVtxTrackWeights", "track weights associated to track;track weights;tracks", 40, 0., 1.);
1376  h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.make<TH1F>(
1377  "h_fitVtxTrackAverageWeight_", "average track weight per vertex;#LT track weight #GT;vertices", 40, 0., 1.);
1378 
1379  if (useTracksFromRecoVtx_) {
1380  TFileDirectory RecoVertexFeatures = fs->mkdir("RecoVertexFeatures");
1382  RecoVertexFeatures.make<TH1F>("h_recoVtxNtracks", "N^{vtx}_{trks};N^{vtx}_{trks};vertices", 100, -0.5, 99.5);
1384  RecoVertexFeatures.make<TH1F>("h_recoVtxChi2ndf", "#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices", 10, -0.5, 9.5);
1385  h_recoVtxChi2Prob_ = RecoVertexFeatures.make<TH1F>(
1386  "h_recoVtxChi2Prob", "Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1387  h_recoVtxSumPt_ =
1388  RecoVertexFeatures.make<TH1F>("h_recoVtxSumPt", "Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices", 100, 0., 200.);
1389  }
1390 
1391  TFileDirectory DA = fs->mkdir("DA");
1392  //DA.cd();
1393  hDA = bookVertexHistograms(DA);
1394  //for(std::map<std::string,TH1*>::const_iterator hist=hDA.begin(); hist!=hDA.end(); hist++){
1395  //hist->second->SetDirectory(DA);
1396  // DA.make<TH1F>(hist->second);
1397  // }
1398 
1399  // initialize the residuals histograms
1400 
1401  const float dxymax_phi = theDetails_.getHigh(PVValHelper::dxy, PVValHelper::phi);
1402  const float dzmax_phi = theDetails_.getHigh(PVValHelper::dz, PVValHelper::eta);
1403  const float dxymax_eta = theDetails_.getHigh(PVValHelper::dxy, PVValHelper::phi);
1404  const float dzmax_eta = theDetails_.getHigh(PVValHelper::dz, PVValHelper::eta);
1405  //const float d3Dmax_phi = theDetails_.getHigh(PVValHelper::d3D,PVValHelper::phi);
1406  const float d3Dmax_eta = theDetails_.getHigh(PVValHelper::d3D, PVValHelper::eta);
1407 
1409  //
1410  // Unbiased track-to-vertex residuals
1411  // The vertex is refit without the probe track
1412  //
1414 
1415  // _ _ _ _ ___ _ _ _
1416  // /_\ | |__ ___ ___| |_ _| |_ ___ | _ \___ __(_)__| |_ _ __ _| |___
1417  // / _ \| '_ (_-</ _ \ | || | _/ -_) | / -_|_-< / _` | || / _` | (_-<
1418  // /_/ \_\_.__/__/\___/_|\_,_|\__\___| |_|_\___/__/_\__,_|\_,_\__,_|_/__/
1419  //
1420 
1421  TFileDirectory AbsTransPhiRes = fs->mkdir("Abs_Transv_Phi_Residuals");
1426 
1427  TFileDirectory AbsTransEtaRes = fs->mkdir("Abs_Transv_Eta_Residuals");
1432 
1433  TFileDirectory AbsLongPhiRes = fs->mkdir("Abs_Long_Phi_Residuals");
1436 
1437  TFileDirectory AbsLongEtaRes = fs->mkdir("Abs_Long_Eta_Residuals");
1440 
1441  TFileDirectory Abs3DPhiRes = fs->mkdir("Abs_3D_Phi_Residuals");
1444 
1445  TFileDirectory Abs3DEtaRes = fs->mkdir("Abs_3D_Eta_Residuals");
1448 
1449  TFileDirectory NormTransPhiRes = fs->mkdir("Norm_Transv_Phi_Residuals");
1452 
1453  TFileDirectory NormTransEtaRes = fs->mkdir("Norm_Transv_Eta_Residuals");
1456 
1457  TFileDirectory NormLongPhiRes = fs->mkdir("Norm_Long_Phi_Residuals");
1460 
1461  TFileDirectory NormLongEtaRes = fs->mkdir("Norm_Long_Eta_Residuals");
1464 
1465  TFileDirectory Norm3DPhiRes = fs->mkdir("Norm_3D_Phi_Residuals");
1468 
1469  TFileDirectory Norm3DEtaRes = fs->mkdir("Norm_3D_Eta_Residuals");
1472 
1473  TFileDirectory AbsDoubleDiffRes = fs->mkdir("Abs_DoubleDiffResiduals");
1474  TFileDirectory NormDoubleDiffRes = fs->mkdir("Norm_DoubleDiffResiduals");
1475 
1476  TFileDirectory AbsL1Map = fs->mkdir("Abs_L1Residuals");
1477  TFileDirectory NormL1Map = fs->mkdir("Norm_L1Residuals");
1478 
1479  // book residuals vs pT histograms
1480 
1481  TFileDirectory AbsTranspTRes = fs->mkdir("Abs_Transv_pT_Residuals");
1483 
1484  TFileDirectory AbsLongpTRes = fs->mkdir("Abs_Long_pT_Residuals");
1486 
1487  TFileDirectory NormTranspTRes = fs->mkdir("Norm_Transv_pT_Residuals");
1489 
1490  TFileDirectory NormLongpTRes = fs->mkdir("Norm_Long_pT_Residuals");
1492 
1493  // book residuals vs pT histograms in central region (|eta|<1.0)
1494 
1495  TFileDirectory AbsTranspTCentralRes = fs->mkdir("Abs_Transv_pTCentral_Residuals");
1497 
1498  TFileDirectory AbsLongpTCentralRes = fs->mkdir("Abs_Long_pTCentral_Residuals");
1500 
1501  TFileDirectory NormTranspTCentralRes = fs->mkdir("Norm_Transv_pTCentral_Residuals");
1504 
1505  TFileDirectory NormLongpTCentralRes = fs->mkdir("Norm_Long_pTCentral_Residuals");
1508 
1509  // book residuals vs module number
1510 
1511  TFileDirectory AbsTransModZRes = fs->mkdir("Abs_Transv_modZ_Residuals");
1513 
1514  TFileDirectory AbsLongModZRes = fs->mkdir("Abs_Long_modZ_Residuals");
1516 
1517  // _ _ _ _ _ ___ _ _ _
1518  // | \| |___ _ _ _ __ __ _| (_)______ __| | | _ \___ __(_)__| |_ _ __ _| |___
1519  // | .` / _ \ '_| ' \/ _` | | |_ / -_) _` | | / -_|_-< / _` | || / _` | (_-<
1520  // |_|\_\___/_| |_|_|_\__,_|_|_/__\___\__,_| |_|_\___/__/_\__,_|\_,_\__,_|_/__/
1521  //
1522 
1523  TFileDirectory NormTransModZRes = fs->mkdir("Norm_Transv_modZ_Residuals");
1525 
1526  TFileDirectory NormLongModZRes = fs->mkdir("Norm_Long_modZ_Residuals");
1528 
1529  TFileDirectory AbsTransLadderRes = fs->mkdir("Abs_Transv_ladder_Residuals");
1531 
1532  TFileDirectory AbsTransLadderResOverlap = fs->mkdir("Abs_Transv_ladderOverlap_Residuals");
1535 
1536  TFileDirectory AbsTransLadderResNoOverlap = fs->mkdir("Abs_Transv_ladderNoOverlap_Residuals");
1539 
1540  TFileDirectory AbsLongLadderRes = fs->mkdir("Abs_Long_ladder_Residuals");
1542 
1543  TFileDirectory NormTransLadderRes = fs->mkdir("Norm_Transv_ladder_Residuals");
1546 
1547  TFileDirectory NormLongLadderRes = fs->mkdir("Norm_Long_ladder_Residuals");
1550 
1551  // book residuals as function of nLadders and nModules
1552 
1553  for (unsigned int iLadder = 0; iLadder < nLadders_; iLadder++) {
1554  for (unsigned int iModule = 0; iModule < nModZ_; iModule++) {
1555  a_dxyL1ResidualsMap[iLadder][iModule] =
1556  AbsL1Map.make<TH1F>(Form("histo_dxy_ladder%i_module%i", iLadder, iModule),
1557  Form("d_{xy} ladder=%i module=%i;d_{xy} [#mum];tracks", iLadder, iModule),
1559  -dzmax_eta,
1560  dzmax_eta);
1561 
1562  a_dzL1ResidualsMap[iLadder][iModule] =
1563  AbsL1Map.make<TH1F>(Form("histo_dz_ladder%i_module%i", iLadder, iModule),
1564  Form("d_{z} ladder=%i module=%i;d_{z} [#mum];tracks", iLadder, iModule),
1566  -dzmax_eta,
1567  dzmax_eta);
1568 
1569  n_dxyL1ResidualsMap[iLadder][iModule] =
1570  NormL1Map.make<TH1F>(Form("histo_norm_dxy_ladder%i_module%i", iLadder, iModule),
1571  Form("d_{xy} ladder=%i module=%i;d_{xy}/#sigma_{d_{xy}};tracks", iLadder, iModule),
1573  -dzmax_eta / 100,
1574  dzmax_eta / 100);
1575 
1576  n_dzL1ResidualsMap[iLadder][iModule] =
1577  NormL1Map.make<TH1F>(Form("histo_norm_dz_ladder%i_module%i", iLadder, iModule),
1578  Form("d_{z} ladder=%i module=%i;d_{z}/#sigma_{d_{z}};tracks", iLadder, iModule),
1580  -dzmax_eta / 100,
1581  dzmax_eta / 100);
1582  }
1583  }
1584 
1585  // book residuals as function of phi and eta
1586 
1587  for (int i = 0; i < nBins_; ++i) {
1588  float phiF = theDetails_.trendbins[PVValHelper::phi][i];
1589  float phiL = theDetails_.trendbins[PVValHelper::phi][i + 1];
1590 
1591  // ___ _ _ ___ _ __ __ ___ _ _ _
1592  // | \ ___ _ _| |__| |___| \(_)/ _|/ _| | _ \___ __(_)__| |_ _ __ _| |___
1593  // | |) / _ \ || | '_ \ / -_) |) | | _| _| | / -_|_-< / _` | || / _` | (_-<
1594  // |___/\___/\_,_|_.__/_\___|___/|_|_| |_| |_|_\___/__/_\__,_|\_,_\__,_|_/__/
1595 
1596  for (int j = 0; j < nBins_; ++j) {
1597  float etaF = theDetails_.trendbins[PVValHelper::eta][j];
1598  float etaL = theDetails_.trendbins[PVValHelper::eta][j + 1];
1599 
1600  a_dxyResidualsMap[i][j] = AbsDoubleDiffRes.make<TH1F>(
1601  Form("histo_dxy_eta_plot%i_phi_plot%i", i, j),
1602  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks", etaF, etaL, phiF, phiL),
1604  -dzmax_eta,
1605  dzmax_eta);
1606 
1607  a_dzResidualsMap[i][j] = AbsDoubleDiffRes.make<TH1F>(
1608  Form("histo_dz_eta_plot%i_phi_plot%i", i, j),
1609  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks", etaF, etaL, phiF, phiL),
1611  -dzmax_eta,
1612  dzmax_eta);
1613 
1614  a_d3DResidualsMap[i][j] = AbsDoubleDiffRes.make<TH1F>(
1615  Form("histo_d3D_eta_plot%i_phi_plot%i", i, j),
1616  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks", etaF, etaL, phiF, phiL),
1618  0.,
1619  d3Dmax_eta);
1620 
1621  n_dxyResidualsMap[i][j] = NormDoubleDiffRes.make<TH1F>(
1622  Form("histo_norm_dxy_eta_plot%i_phi_plot%i", i, j),
1623  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
1624  etaF,
1625  etaL,
1626  phiF,
1627  phiL),
1629  -dzmax_eta / 100,
1630  dzmax_eta / 100);
1631 
1632  n_dzResidualsMap[i][j] = NormDoubleDiffRes.make<TH1F>(
1633  Form("histo_norm_dz_eta_plot%i_phi_plot%i", i, j),
1634  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
1635  etaF,
1636  etaL,
1637  phiF,
1638  phiL),
1640  -dzmax_eta / 100,
1641  dzmax_eta / 100);
1642 
1643  n_d3DResidualsMap[i][j] = NormDoubleDiffRes.make<TH1F>(
1644  Form("histo_norm_d3D_eta_plot%i_phi_plot%i", i, j),
1645  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",
1646  etaF,
1647  etaL,
1648  phiF,
1649  phiL),
1651  0.,
1652  d3Dmax_eta);
1653  }
1654  }
1655 
1656  // declaration of the directories
1657 
1658  TFileDirectory BiasVsParameter = fs->mkdir("BiasVsParameter");
1659 
1660  a_dxyVsPhi = BiasVsParameter.make<TH2F>("h2_dxy_vs_phi",
1661  "d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1662  nBins_,
1663  -M_PI,
1664  M_PI,
1666  -dxymax_phi,
1667  dxymax_phi);
1668 
1669  a_dzVsPhi = BiasVsParameter.make<TH2F>("h2_dz_vs_phi",
1670  "d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1671  nBins_,
1672  -M_PI,
1673  M_PI,
1675  -dzmax_phi,
1676  dzmax_phi);
1677 
1678  n_dxyVsPhi = BiasVsParameter.make<TH2F>(
1679  "h2_n_dxy_vs_phi",
1680  "d_{xy}/#sigma_{d_{xy}} vs track #phi;track #phi [rad];track d_{xy}(PV)/#sigma_{d_{xy}}",
1681  nBins_,
1682  -M_PI,
1683  M_PI,
1685  -dxymax_phi / 100.,
1686  dxymax_phi / 100.);
1687 
1688  n_dzVsPhi =
1689  BiasVsParameter.make<TH2F>("h2_n_dz_vs_phi",
1690  "d_{z}/#sigma_{d_{z}} vs track #phi;track #phi [rad];track d_{z}(PV)/#sigma_{d_{z}}",
1691  nBins_,
1692  -M_PI,
1693  M_PI,
1695  -dzmax_phi / 100.,
1696  dzmax_phi / 100.);
1697 
1698  a_dxyVsEta = BiasVsParameter.make<TH2F>("h2_dxy_vs_eta",
1699  "d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1700  nBins_,
1701  -etaOfProbe_,
1702  etaOfProbe_,
1704  -dxymax_eta,
1705  dzmax_eta);
1706 
1707  a_dzVsEta = BiasVsParameter.make<TH2F>("h2_dz_vs_eta",
1708  "d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1709  nBins_,
1710  -etaOfProbe_,
1711  etaOfProbe_,
1713  -dzmax_eta,
1714  dzmax_eta);
1715 
1716  n_dxyVsEta =
1717  BiasVsParameter.make<TH2F>("h2_n_dxy_vs_eta",
1718  "d_{xy}/#sigma_{d_{xy}} vs track #eta;track #eta;track d_{xy}(PV)/#sigma_{d_{xy}}",
1719  nBins_,
1720  -etaOfProbe_,
1721  etaOfProbe_,
1723  -dxymax_eta / 100.,
1724  dxymax_eta / 100.);
1725 
1726  n_dzVsEta = BiasVsParameter.make<TH2F>("h2_n_dz_vs_eta",
1727  "d_{z}/#sigma_{d_{z}} vs track #eta;track #eta;track d_{z}(PV)/#sigma_{d_{z}}",
1728  nBins_,
1729  -etaOfProbe_,
1730  etaOfProbe_,
1732  -dzmax_eta / 100.,
1733  dzmax_eta / 100.);
1734 
1735  MeanTrendsDir = fs->mkdir("MeanTrends");
1736  WidthTrendsDir = fs->mkdir("WidthTrends");
1737  MedianTrendsDir = fs->mkdir("MedianTrends");
1738  MADTrendsDir = fs->mkdir("MADTrends");
1739 
1740  Mean2DMapsDir = fs->mkdir("MeanMaps");
1741  Width2DMapsDir = fs->mkdir("WidthMaps");
1742 
1743  double highedge = nBins_ - 0.5;
1744  double lowedge = -0.5;
1745 
1746  // means and widths from the fit
1747 
1749  MeanTrendsDir.make<TH1F>("means_dxy_phi",
1750  "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1751  nBins_,
1752  lowedge,
1753  highedge);
1754 
1756  WidthTrendsDir.make<TH1F>("widths_dxy_phi",
1757  "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1758  nBins_,
1759  lowedge,
1760  highedge);
1761 
1763  MeanTrendsDir.make<TH1F>("means_dz_phi",
1764  "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1765  nBins_,
1766  lowedge,
1767  highedge);
1768 
1770  WidthTrendsDir.make<TH1F>("widths_dz_phi",
1771  "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1772  nBins_,
1773  lowedge,
1774  highedge);
1775 
1777  "means_dxy_eta", "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]", nBins_, lowedge, highedge);
1778 
1779  a_dxyEtaWidthTrend = WidthTrendsDir.make<TH1F>("widths_dxy_eta",
1780  "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1781  nBins_,
1782  lowedge,
1783  highedge);
1784 
1786  "means_dz_eta", "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]", nBins_, lowedge, highedge);
1787 
1789  "widths_dz_eta", "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]", nBins_, lowedge, highedge);
1790 
1792  "norm_means_dxy_phi",
1793  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1794  nBins_,
1795  lowedge,
1796  highedge);
1797 
1799  "norm_widths_dxy_phi",
1800  "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1801  nBins_,
1802  lowedge,
1803  highedge);
1804 
1806  "norm_means_dz_phi",
1807  "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1808  nBins_,
1809  lowedge,
1810  highedge);
1811 
1813  "norm_widths_dz_phi",
1814  "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1815  nBins_,
1816  lowedge,
1817  highedge);
1818 
1820  "norm_means_dxy_eta",
1821  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1822  nBins_,
1823  lowedge,
1824  highedge);
1825 
1827  "norm_widths_dxy_eta",
1828  "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1829  nBins_,
1830  lowedge,
1831  highedge);
1832 
1834  MeanTrendsDir.make<TH1F>("norm_means_dz_eta",
1835  "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1836  nBins_,
1837  lowedge,
1838  highedge);
1839 
1841  WidthTrendsDir.make<TH1F>("norm_widths_dz_eta",
1842  "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1843  nBins_,
1844  lowedge,
1845  highedge);
1846 
1847  // means and widhts vs pT and pTCentral
1848 
1849  a_dxypTMeanTrend = MeanTrendsDir.make<TH1F>("means_dxy_pT",
1850  "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1851  mypT_bins_.size() - 1,
1852  mypT_bins_.data());
1853 
1854  a_dxypTWidthTrend = WidthTrendsDir.make<TH1F>("widths_dxy_pT",
1855  "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1856  mypT_bins_.size() - 1,
1857  mypT_bins_.data());
1858 
1860  "means_dz_pT", "#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]", mypT_bins_.size() - 1, mypT_bins_.data());
1861 
1862  a_dzpTWidthTrend = WidthTrendsDir.make<TH1F>("widths_dz_pT",
1863  "#sigma_{d_{z}} vs pT;p_{T} [GeV];#sigma_{d_{z}} [#mum]",
1864  mypT_bins_.size() - 1,
1865  mypT_bins_.data());
1866 
1868  MeanTrendsDir.make<TH1F>("norm_means_dxy_pT",
1869  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1870  mypT_bins_.size() - 1,
1871  mypT_bins_.data());
1872 
1874  WidthTrendsDir.make<TH1F>("norm_widths_dxy_pT",
1875  "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1876  mypT_bins_.size() - 1,
1877  mypT_bins_.data());
1878 
1879  n_dzpTMeanTrend =
1880  MeanTrendsDir.make<TH1F>("norm_means_dz_pT",
1881  "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1882  mypT_bins_.size() - 1,
1883  mypT_bins_.data());
1884 
1886  WidthTrendsDir.make<TH1F>("norm_widths_dz_pT",
1887  "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1888  mypT_bins_.size() - 1,
1889  mypT_bins_.data());
1890 
1892  MeanTrendsDir.make<TH1F>("means_dxy_pTCentral",
1893  "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1894  mypT_bins_.size() - 1,
1895  mypT_bins_.data());
1896 
1898  WidthTrendsDir.make<TH1F>("widths_dxy_pTCentral",
1899  "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1900  mypT_bins_.size() - 1,
1901  mypT_bins_.data());
1902 
1904  MeanTrendsDir.make<TH1F>("means_dz_pTCentral",
1905  "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]",
1906  mypT_bins_.size() - 1,
1907  mypT_bins_.data());
1908 
1910  WidthTrendsDir.make<TH1F>("widths_dz_pTCentral",
1911  "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1912  mypT_bins_.size() - 1,
1913  mypT_bins_.data());
1914 
1916  "norm_means_dxy_pTCentral",
1917  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1918  mypT_bins_.size() - 1,
1919  mypT_bins_.data());
1920 
1922  "norm_widths_dxy_pTCentral",
1923  "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1924  mypT_bins_.size() - 1,
1925  mypT_bins_.data());
1926 
1928  "norm_means_dz_pTCentral",
1929  "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1930  mypT_bins_.size() - 1,
1931  mypT_bins_.data());
1932 
1934  "norm_widths_dz_pTCentral",
1935  "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1936  mypT_bins_.size() - 1,
1937  mypT_bins_.data());
1938 
1939  // 2D maps
1940 
1941  a_dxyMeanMap = Mean2DMapsDir.make<TH2F>("means_dxy_map",
1942  "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1943  nBins_,
1944  lowedge,
1945  highedge,
1946  nBins_,
1947  lowedge,
1948  highedge);
1949 
1950  a_dzMeanMap = Mean2DMapsDir.make<TH2F>("means_dz_map",
1951  "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1952  nBins_,
1953  lowedge,
1954  highedge,
1955  nBins_,
1956  lowedge,
1957  highedge);
1958 
1959  n_dxyMeanMap = Mean2DMapsDir.make<TH2F>("norm_means_dxy_map",
1960  "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1961  nBins_,
1962  lowedge,
1963  highedge,
1964  nBins_,
1965  lowedge,
1966  highedge);
1967 
1968  n_dzMeanMap = Mean2DMapsDir.make<TH2F>("norm_means_dz_map",
1969  "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1970  nBins_,
1971  lowedge,
1972  highedge,
1973  nBins_,
1974  lowedge,
1975  highedge);
1976 
1977  a_dxyWidthMap = Width2DMapsDir.make<TH2F>("widths_dxy_map",
1978  "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1979  nBins_,
1980  lowedge,
1981  highedge,
1982  nBins_,
1983  lowedge,
1984  highedge);
1985 
1986  a_dzWidthMap = Width2DMapsDir.make<TH2F>("widths_dz_map",
1987  "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1988  nBins_,
1989  lowedge,
1990  highedge,
1991  nBins_,
1992  lowedge,
1993  highedge);
1994 
1995  n_dxyWidthMap =
1996  Width2DMapsDir.make<TH2F>("norm_widths_dxy_map",
1997  "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1998  nBins_,
1999  lowedge,
2000  highedge,
2001  nBins_,
2002  lowedge,
2003  highedge);
2004 
2005  n_dzWidthMap = Width2DMapsDir.make<TH2F>("norm_widths_dz_map",
2006  "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2007  nBins_,
2008  lowedge,
2009  highedge,
2010  nBins_,
2011  lowedge,
2012  highedge);
2013 
2014  // medians and MADs
2015 
2017  MedianTrendsDir.make<TH1F>("medians_dxy_phi",
2018  "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2019  nBins_,
2020  lowedge,
2021  highedge);
2022 
2024  "MADs_dxy_phi",
2025  "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2026  nBins_,
2027  lowedge,
2028  highedge);
2029 
2031  MedianTrendsDir.make<TH1F>("medians_dz_phi",
2032  "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2033  nBins_,
2034  lowedge,
2035  highedge);
2036 
2038  "MADs_dz_phi",
2039  "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2040  nBins_,
2041  lowedge,
2042  highedge);
2043 
2045  MedianTrendsDir.make<TH1F>("medians_dxy_eta",
2046  "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2047  nBins_,
2048  lowedge,
2049  highedge);
2050 
2052  MADTrendsDir.make<TH1F>("MADs_dxy_eta",
2053  "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2054  nBins_,
2055  lowedge,
2056  highedge);
2057 
2059  MedianTrendsDir.make<TH1F>("medians_dz_eta",
2060  "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2061  nBins_,
2062  lowedge,
2063  highedge);
2064 
2065  a_dzEtaMADTrend =
2066  MADTrendsDir.make<TH1F>("MADs_dz_eta",
2067  "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2068  nBins_,
2069  lowedge,
2070  highedge);
2071 
2073  "norm_medians_dxy_phi",
2074  "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2075  nBins_,
2076  lowedge,
2077  highedge);
2078 
2079  n_dxyPhiMADTrend = MADTrendsDir.make<TH1F>("norm_MADs_dxy_phi",
2080  "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi "
2081  "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2082  nBins_,
2083  lowedge,
2084  highedge);
2085 
2087  "norm_medians_dz_phi",
2088  "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2089  nBins_,
2090  lowedge,
2091  highedge);
2092 
2093  n_dzPhiMADTrend = MADTrendsDir.make<TH1F>("norm_MADs_dz_phi",
2094  "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi "
2095  "(sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2096  nBins_,
2097  lowedge,
2098  highedge);
2099 
2101  "norm_medians_dxy_eta",
2102  "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2103  nBins_,
2104  lowedge,
2105  highedge);
2106 
2108  "norm_MADs_dxy_eta",
2109  "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2110  nBins_,
2111  lowedge,
2112  highedge);
2113 
2115  "norm_medians_dz_eta",
2116  "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2117  nBins_,
2118  lowedge,
2119  highedge);
2120 
2122  "norm_MADs_dz_eta",
2123  "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2124  nBins_,
2125  lowedge,
2126  highedge);
2127 
2129  //
2130  // plots of biased residuals
2131  // The vertex includes the probe track
2132  //
2134 
2135  if (useTracksFromRecoVtx_) {
2136  TFileDirectory AbsTransPhiBiasRes = fs->mkdir("Abs_Transv_Phi_BiasResiduals");
2138 
2139  TFileDirectory AbsTransEtaBiasRes = fs->mkdir("Abs_Transv_Eta_BiasResiduals");
2141 
2142  TFileDirectory AbsLongPhiBiasRes = fs->mkdir("Abs_Long_Phi_BiasResiduals");
2144 
2145  TFileDirectory AbsLongEtaBiasRes = fs->mkdir("Abs_Long_Eta_BiasResiduals");
2147 
2148  TFileDirectory NormTransPhiBiasRes = fs->mkdir("Norm_Transv_Phi_BiasResiduals");
2150 
2151  TFileDirectory NormTransEtaBiasRes = fs->mkdir("Norm_Transv_Eta_BiasResiduals");
2153 
2154  TFileDirectory NormLongPhiBiasRes = fs->mkdir("Norm_Long_Phi_BiasResiduals");
2156 
2157  TFileDirectory NormLongEtaBiasRes = fs->mkdir("Norm_Long_Eta_BiasResiduals");
2159 
2160  TFileDirectory AbsDoubleDiffBiasRes = fs->mkdir("Abs_DoubleDiffBiasResiduals");
2161  TFileDirectory NormDoubleDiffBiasRes = fs->mkdir("Norm_DoubleDiffBiasResiduals");
2162 
2163  for (int i = 0; i < nBins_; ++i) {
2164  float phiF = theDetails_.trendbins[PVValHelper::phi][i];
2165  float phiL = theDetails_.trendbins[PVValHelper::phi][i + 1];
2166 
2167  for (int j = 0; j < nBins_; ++j) {
2168  float etaF = theDetails_.trendbins[PVValHelper::eta][j];
2169  float etaL = theDetails_.trendbins[PVValHelper::eta][j + 1];
2170 
2171  a_dxyBiasResidualsMap[i][j] = AbsDoubleDiffBiasRes.make<TH1F>(
2172  Form("histo_dxy_eta_plot%i_phi_plot%i", i, j),
2173  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks", etaF, etaL, phiF, phiL),
2175  -dzmax_eta,
2176  dzmax_eta);
2177 
2178  a_dzBiasResidualsMap[i][j] = AbsDoubleDiffBiasRes.make<TH1F>(
2179  Form("histo_dxy_eta_plot%i_phi_plot%i", i, j),
2180  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks", etaF, etaL, phiF, phiL),
2182  -dzmax_eta,
2183  dzmax_eta);
2184 
2185  n_dxyBiasResidualsMap[i][j] = NormDoubleDiffBiasRes.make<TH1F>(
2186  Form("histo_norm_dxy_eta_plot%i_phi_plot%i", i, j),
2187  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
2188  etaF,
2189  etaL,
2190  phiF,
2191  phiL),
2193  -dzmax_eta / 100,
2194  dzmax_eta / 100);
2195 
2196  n_dzBiasResidualsMap[i][j] = NormDoubleDiffBiasRes.make<TH1F>(
2197  Form("histo_norm_dxy_eta_plot%i_phi_plot%i", i, j),
2198  Form("%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
2199  etaF,
2200  etaL,
2201  phiF,
2202  phiL),
2204  -dzmax_eta / 100,
2205  dzmax_eta / 100);
2206  }
2207  }
2208 
2209  // declaration of the directories
2210 
2211  TFileDirectory MeanBiasTrendsDir = fs->mkdir("MeanBiasTrends");
2212  TFileDirectory WidthBiasTrendsDir = fs->mkdir("WidthBiasTrends");
2213  TFileDirectory MedianBiasTrendsDir = fs->mkdir("MedianBiasTrends");
2214  TFileDirectory MADBiasTrendsDir = fs->mkdir("MADBiasTrends");
2215 
2216  TFileDirectory Mean2DBiasMapsDir = fs->mkdir("MeanBiasMaps");
2217  TFileDirectory Width2DBiasMapsDir = fs->mkdir("WidthBiasMaps");
2218 
2219  // means and widths from the fit
2220 
2222  MeanBiasTrendsDir.make<TH1F>("means_dxy_phi",
2223  "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
2224  nBins_,
2225  lowedge,
2226  highedge);
2227 
2228  a_dxyPhiWidthBiasTrend = WidthBiasTrendsDir.make<TH1F>(
2229  "widths_dxy_phi",
2230  "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
2231  nBins_,
2232  lowedge,
2233  highedge);
2234 
2236  MeanBiasTrendsDir.make<TH1F>("means_dz_phi",
2237  "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
2238  nBins_,
2239  lowedge,
2240  highedge);
2241 
2243  WidthBiasTrendsDir.make<TH1F>("widths_dz_phi",
2244  "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
2245  nBins_,
2246  lowedge,
2247  highedge);
2248 
2249  a_dxyEtaMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2250  "means_dxy_eta", "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]", nBins_, lowedge, highedge);
2251 
2253  WidthBiasTrendsDir.make<TH1F>("widths_dxy_eta",
2254  "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
2255  nBins_,
2256  lowedge,
2257  highedge);
2258 
2259  a_dzEtaMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2260  "means_dz_eta", "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]", nBins_, lowedge, highedge);
2261 
2263  WidthBiasTrendsDir.make<TH1F>("widths_dz_eta",
2264  "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
2265  nBins_,
2266  lowedge,
2267  highedge);
2268 
2269  n_dxyPhiMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2270  "norm_means_dxy_phi",
2271  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
2272  nBins_,
2273  lowedge,
2274  highedge);
2275 
2276  n_dxyPhiWidthBiasTrend = WidthBiasTrendsDir.make<TH1F>(
2277  "norm_widths_dxy_phi",
2278  "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
2279  nBins_,
2280  lowedge,
2281  highedge);
2282 
2283  n_dzPhiMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2284  "norm_means_dz_phi",
2285  "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
2286  nBins_,
2287  lowedge,
2288  highedge);
2289 
2290  n_dzPhiWidthBiasTrend = WidthBiasTrendsDir.make<TH1F>(
2291  "norm_widths_dz_phi",
2292  "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
2293  nBins_,
2294  lowedge,
2295  highedge);
2296 
2297  n_dxyEtaMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2298  "norm_means_dxy_eta",
2299  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
2300  nBins_,
2301  lowedge,
2302  highedge);
2303 
2304  n_dxyEtaWidthBiasTrend = WidthBiasTrendsDir.make<TH1F>(
2305  "norm_widths_dxy_eta",
2306  "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
2307  nBins_,
2308  lowedge,
2309  highedge);
2310 
2311  n_dzEtaMeanBiasTrend = MeanBiasTrendsDir.make<TH1F>(
2312  "norm_means_dz_eta",
2313  "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
2314  nBins_,
2315  lowedge,
2316  highedge);
2317 
2318  n_dzEtaWidthBiasTrend = WidthBiasTrendsDir.make<TH1F>(
2319  "norm_widths_dz_eta",
2320  "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
2321  nBins_,
2322  lowedge,
2323  highedge);
2324 
2325  // 2D maps
2326 
2327  a_dxyMeanBiasMap = Mean2DBiasMapsDir.make<TH2F>("means_dxy_map",
2328  "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
2329  nBins_,
2330  lowedge,
2331  highedge,
2332  nBins_,
2333  lowedge,
2334  highedge);
2335 
2336  a_dzMeanBiasMap = Mean2DBiasMapsDir.make<TH2F>("means_dz_map",
2337  "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
2338  nBins_,
2339  lowedge,
2340  highedge,
2341  nBins_,
2342  lowedge,
2343  highedge);
2344 
2346  Mean2DBiasMapsDir.make<TH2F>("norm_means_dxy_map",
2347  "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2348  nBins_,
2349  lowedge,
2350  highedge,
2351  nBins_,
2352  lowedge,
2353  highedge);
2354 
2355  n_dzMeanBiasMap =
2356  Mean2DBiasMapsDir.make<TH2F>("norm_means_dz_map",
2357  "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2358  nBins_,
2359  lowedge,
2360  highedge,
2361  nBins_,
2362  lowedge,
2363  highedge);
2364 
2365  a_dxyWidthBiasMap = Width2DBiasMapsDir.make<TH2F>("widths_dxy_map",
2366  "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
2367  nBins_,
2368  lowedge,
2369  highedge,
2370  nBins_,
2371  lowedge,
2372  highedge);
2373 
2374  a_dzWidthBiasMap = Width2DBiasMapsDir.make<TH2F>("widths_dz_map",
2375  "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
2376  nBins_,
2377  lowedge,
2378  highedge,
2379  nBins_,
2380  lowedge,
2381  highedge);
2382 
2384  Width2DBiasMapsDir.make<TH2F>("norm_widths_dxy_map",
2385  "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
2386  nBins_,
2387  lowedge,
2388  highedge,
2389  nBins_,
2390  lowedge,
2391  highedge);
2392 
2394  Width2DBiasMapsDir.make<TH2F>("norm_widths_dz_map",
2395  "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2396  nBins_,
2397  lowedge,
2398  highedge,
2399  nBins_,
2400  lowedge,
2401  highedge);
2402 
2403  // medians and MADs
2404 
2405  a_dxyPhiMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2406  "medians_dxy_phi",
2407  "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2408  nBins_,
2409  lowedge,
2410  highedge);
2411 
2412  a_dxyPhiMADBiasTrend = MADBiasTrendsDir.make<TH1F>(
2413  "MADs_dxy_phi",
2414  "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2415  nBins_,
2416  lowedge,
2417  highedge);
2418 
2419  a_dzPhiMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2420  "medians_dz_phi",
2421  "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2422  nBins_,
2423  lowedge,
2424  highedge);
2425 
2426  a_dzPhiMADBiasTrend = MADBiasTrendsDir.make<TH1F>(
2427  "MADs_dz_phi",
2428  "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2429  nBins_,
2430  lowedge,
2431  highedge);
2432 
2434  MedianBiasTrendsDir.make<TH1F>("medians_dxy_eta",
2435  "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2436  nBins_,
2437  lowedge,
2438  highedge);
2439 
2440  a_dxyEtaMADBiasTrend = MADBiasTrendsDir.make<TH1F>(
2441  "MADs_dxy_eta",
2442  "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2443  nBins_,
2444  lowedge,
2445  highedge);
2446 
2448  MedianBiasTrendsDir.make<TH1F>("medians_dz_eta",
2449  "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2450  nBins_,
2451  lowedge,
2452  highedge);
2453 
2455  MADBiasTrendsDir.make<TH1F>("MADs_dz_eta",
2456  "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2457  nBins_,
2458  lowedge,
2459  highedge);
2460 
2461  n_dxyPhiMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2462  "norm_medians_dxy_phi",
2463  "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2464  nBins_,
2465  lowedge,
2466  highedge);
2467 
2468  n_dxyPhiMADBiasTrend = MADBiasTrendsDir.make<TH1F>("norm_MADs_dxy_phi",
2469  "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi "
2470  "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2471  nBins_,
2472  lowedge,
2473  highedge);
2474 
2475  n_dzPhiMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2476  "norm_medians_dz_phi",
2477  "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2478  nBins_,
2479  lowedge,
2480  highedge);
2481 
2482  n_dzPhiMADBiasTrend = MADBiasTrendsDir.make<TH1F>("norm_MADs_dz_phi",
2483  "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi "
2484  "sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2485  nBins_,
2486  lowedge,
2487  highedge);
2488 
2489  n_dxyEtaMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2490  "norm_medians_dxy_eta",
2491  "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2492  nBins_,
2493  lowedge,
2494  highedge);
2495 
2496  n_dxyEtaMADBiasTrend = MADBiasTrendsDir.make<TH1F>(
2497  "norm_MADs_dxy_eta",
2498  "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2499  nBins_,
2500  lowedge,
2501  highedge);
2502 
2503  n_dzEtaMedianBiasTrend = MedianBiasTrendsDir.make<TH1F>(
2504  "norm_medians_dz_eta",
2505  "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2506  nBins_,
2507  lowedge,
2508  highedge);
2509 
2510  n_dzEtaMADBiasTrend = MADBiasTrendsDir.make<TH1F>(
2511  "norm_MADs_dz_eta",
2512  "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2513  nBins_,
2514  lowedge,
2515  highedge);
2516  }
2517 }
std::vector< TH1F * > h_norm_dxy_modZ_
std::vector< TH1F * > n_IP3DPhiResiduals
std::vector< TH1F * > a_dxyEtaResiduals
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_d3DEtaResiduals
std::vector< TH1F * > n_reszPhiResiduals
std::vector< unsigned int > runControlNumbers_
std::vector< TH1F * > h_dxy_pT_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::map< std::string, TH1 * > hDA
std::vector< TH1F * > a_IP3DEtaResiduals
std::vector< TH1F * > n_dzPhiResiduals
std::vector< TH1F * > a_d3DPhiResiduals
std::vector< TH1F * > n_d3DPhiResiduals
std::vector< TH1F * > n_dxyPhiBiasResiduals
TH1F * n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > n_d3DEtaResiduals
std::vector< TH1F * > h_norm_dz_Central_pT_
float DOFUnbiasedVertex_[nMaxtracks_]
double d3DFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_reszPhiResiduals
std::vector< TH1F * > a_IP2DPhiResiduals
float chi2ProbUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > n_reszEtaResiduals
double dxyFromMyVertex_[nMaxtracks_]
std::map< std::string, TH1 * > bookVertexHistograms(const TFileDirectory &dir)
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
std::vector< TH1F * > a_dxEtaResiduals
double dzErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > n_dxyEtaBiasResiduals
std::vector< TH1F * > n_dxyEtaResiduals
double IPTsigFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dzPhiBiasResiduals
std::map< plotVariable, std::vector< float > > trendbins
T * make(const Args &...args) const
make new ROOT object
std::vector< TH1F * > h_norm_dxy_pT_
std::vector< TH1F * > a_dzEtaResiduals
float getHigh(residualType type, plotVariable plot)
int tracksUsedForVertexing_[nMaxtracks_]
std::vector< TH1F * > a_dxyEtaBiasResiduals
std::vector< TH1F * > h_norm_dxy_ladder_
std::vector< TH1F * > a_dzPhiResiduals
double yUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > n_dxyPhiResiduals
TH1F * a_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
double zUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_ladder_
float chi2normUnbiasedVertex_[nMaxtracks_]
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_dxyPhiResiduals
std::vector< TH1F * > a_dxyPhiBiasResiduals
TH1F * a_d3DResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dxy_ladderNoOverlap_
TH1F * n_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
double IPLsigFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > n_dzEtaResiduals
#define M_PI
std::vector< TH1F * > n_IP3DEtaResiduals
Log< level::Info, false > LogInfo
std::vector< TH1F * > h_norm_dz_pT_
TH1F * a_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dz_pT_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
std::vector< TH1F * > n_dzEtaBiasResiduals
std::vector< TH1F * > h_dz_Central_pT_
edm::Service< TFileService > fs
std::vector< TH1F * > h_dz_ladder_
std::vector< TH1F * > a_IP2DEtaResiduals
std::vector< TH1F * > n_IP2DPhiResiduals
double xUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_Central_pT_
TH1F * n_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
double dzFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_reszEtaResiduals
std::vector< TH1F * > bookResidualsHistogram(const TFileDirectory &dir, unsigned int theNOfBins, PVValHelper::residualType resType, PVValHelper::plotVariable varType, bool isNormalized=false)
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
std::vector< TH1F * > a_dxPhiResiduals
std::vector< TH1F * > h_norm_dz_modZ_
TH1F * n_dxyResidualsMap[nMaxBins_][nMaxBins_]
double dxyErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyEtaResiduals
std::vector< TH1F * > n_IP2DEtaResiduals
std::vector< TH1F * > h_norm_dz_ladder_
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_dyPhiResiduals
std::vector< TH1F * > h_dxy_ladderOverlap_
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
PVValHelper::histodetails theDetails_
std::array< float, nPtBins_+1 > mypT_bins_
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
float chi2UnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_norm_dxy_Central_pT_
std::vector< TH1F * > a_dzEtaBiasResiduals
std::vector< TH1F * > a_IP3DPhiResiduals
std::vector< TH1F * > n_dzPhiBiasResiduals
double IP3DsigFromMyVertex_[nMaxtracks_]
TFile & file() const
return opened TFile
Definition: TFileService.h:37

◆ beginRun()

void PrimaryVertexValidation::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 2520 of file PrimaryVertexValidation.cc.

References debug_, TrackerGeometry::dets(), etaOfProbe_, Exception, geomTokenBR_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), PixelTopologyMap::getPXBLadders(), PixelTopologyMap::getPXBModules(), getRunTime(), h_dxy_ladder_, h_dxy_ladderNoOverlap_, h_dxy_ladderOverlap_, h_dxy_modZ_, h_dz_ladder_, h_dz_modZ_, h_etaMax, h_nbins, h_nLadders, h_nModZ, h_norm_dxy_ladder_, h_norm_dxy_modZ_, h_norm_dz_ladder_, h_pTinfo, h_runFromEvent, h_runNumber, isBFieldConsistentWithMode(), TrackerGeometry::isThere(), PVValHelper::max_eta_phase0, PVValHelper::max_eta_phase1, PVValHelper::max_eta_phase2, maxPt_, SiStripPI::min, minPt_, mypT_bins_, nBins_, nLadders_, nModZ_, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, PVValHelper::phase0, PVValHelper::phase1, PVValHelper::phase2, phase_, edm::ESHandle< T >::product(), ptOfProbe_, edm::RunBase::run(), sistrip::runNumber_, RunNumber_, runNumbersTimesLog_, PVValHelper::shrinkHistVectorToFit(), and topoTokenBR_.

2520  {
2521  //=======================================================
2522  // check on the b-field consistency
2523  //=======================================================
2524 
2525  if (!isBFieldConsistentWithMode(iSetup)) {
2526  edm::LogWarning("PrimaryVertexValidation")
2527  << "*********************************************************************************\n"
2528  << "* The configuration (ptOfProbe > " << ptOfProbe_
2529  << "GeV) is not correctly set for current value of magnetic field \n"
2530  << "* Switching it to 0. !!! \n"
2531  << "*********************************************************************************" << std::endl;
2532  ptOfProbe_ = 0.;
2533  }
2534 
2535  //=======================================================
2536  // Run numbers analysis
2537  //=======================================================
2538 
2539  const auto runNumber_ = iRun.run();
2540  h_runNumber->Fill(runNumber_);
2541 
2542  if (!runNumbersTimesLog_.count(runNumber_)) {
2543  auto times = getRunTime(iSetup);
2544 
2545  if (debug_) {
2546  const time_t start_time = times.first / 1000000;
2547  edm::LogInfo("PrimaryVertexValidation")
2548  << runNumber_ << " has start time: " << times.first << " - " << times.second << std::endl;
2549  edm::LogInfo("PrimaryVertexValidation")
2550  << "human readable time: " << std::asctime(std::gmtime(&start_time)) << std::endl;
2551  }
2552 
2554  }
2555 
2556  if (h_runFromEvent->GetEntries() == 0) {
2557  h_runFromEvent->SetBinContent(1, RunNumber_);
2558  }
2559 
2560  //=======================================================
2561  // Retrieve tracker topology from geometry
2562  //=======================================================
2563 
2564  const TrackerTopology* const tTopo = &iSetup.getData(topoTokenBR_);
2565 
2566  //=======================================================
2567  // Retrieve geometry information
2568  //=======================================================
2569 
2570  edm::LogInfo("read tracker geometry...");
2571  edm::ESHandle<TrackerGeometry> pDD = iSetup.getHandle(geomTokenBR_);
2572  edm::LogInfo("tracker geometry read") << "There are: " << pDD->dets().size() << " detectors";
2573 
2574  PixelTopologyMap PTMap = PixelTopologyMap(pDD.product(), tTopo);
2575  nLadders_ = PTMap.getPXBLadders(1);
2576  nModZ_ = PTMap.getPXBModules(1);
2577 
2578  //=======================================================
2579  // shrink to fit
2580  //=======================================================
2581 
2582  if (h_dxy_ladderOverlap_.size() != nLadders_) {
2589 
2590  if (debug_) {
2591  edm::LogInfo("PrimaryVertexValidation") << "checking size:" << h_dxy_ladder_.size() << std::endl;
2592  }
2593  }
2594 
2595  if (h_dxy_modZ_.size() != nModZ_) {
2600 
2601  if (debug_) {
2602  edm::LogInfo("PrimaryVertexValidation") << "checking size:" << h_dxy_modZ_.size() << std::endl;
2603  }
2604  }
2605 
2607  // switch on the phase-2
2609  if (debug_) {
2610  edm::LogInfo("PrimaryVertexValidation")
2611  << " pixel phase2 setup, nLadders: " << nLadders_ << " nModules:" << nModZ_;
2612  }
2613 
2614  } else if ((pDD->isThere(GeomDetEnumerators::P1PXB)) || (pDD->isThere(GeomDetEnumerators::P1PXEC))) {
2615  // switch on the phase-1
2617  if (debug_) {
2618  edm::LogInfo("PrimaryVertexValidation")
2619  << " pixel phase1 setup, nLadders: " << nLadders_ << " nModules:" << nModZ_;
2620  }
2621  } else {
2622  // switch on the phase-0
2624  if (debug_) {
2625  edm::LogInfo("PrimaryVertexValidation")
2626  << " pixel phase0 setup, nLadders: " << nLadders_ << " nModules:" << nModZ_;
2627  }
2628  }
2629 
2630  switch (phase_) {
2631  case PVValHelper::phase0:
2633  break;
2634  case PVValHelper::phase1:
2636  break;
2637  case PVValHelper::phase2:
2639  break;
2640  default:
2641  throw cms::Exception("LogicError") << "Unknown detector phase: " << phase_;
2642  }
2643 
2644  if (h_etaMax->GetEntries() == 0.) {
2645  h_etaMax->SetBinContent(1., etaOfProbe_);
2646  h_nbins->SetBinContent(1., nBins_);
2647  h_nLadders->SetBinContent(1., nLadders_);
2648  h_nModZ->SetBinContent(1., nModZ_);
2649  h_pTinfo->SetBinContent(1., mypT_bins_.size());
2650  h_pTinfo->SetBinContent(2., minPt_);
2651  h_pTinfo->SetBinContent(3., maxPt_);
2652  }
2653 }
std::vector< TH1F * > h_norm_dxy_modZ_
static const char runNumber_[]
const unsigned getPXBModules(unsigned int lay) const
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
constexpr double max_eta_phase2
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
constexpr double max_eta_phase1
T const * product() const
Definition: ESHandle.h:86
std::vector< TH1F * > h_norm_dxy_ladder_
bool isThere(GeomDetEnumerators::SubDetector subdet) const
std::vector< TH1F * > h_dxy_ladder_
std::vector< TH1F * > h_dxy_ladderNoOverlap_
Log< level::Info, false > LogInfo
bool isBFieldConsistentWithMode(const edm::EventSetup &iSetup) const
void shrinkHistVectorToFit(std::vector< TH1F *> &h, unsigned int desired_size)
std::vector< TH1F * > h_dz_ladder_
constexpr double max_eta_phase0
PVValHelper::detectorPhase phase_
std::map< unsigned int, std::pair< long long, long long > > runNumbersTimesLog_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoTokenBR_
Log< level::Warning, false > LogWarning
std::vector< TH1F * > h_norm_dz_ladder_
std::vector< TH1F * > h_dxy_ladderOverlap_
std::array< float, nPtBins_+1 > mypT_bins_
std::pair< long long, long long > getRunTime(const edm::EventSetup &iSetup) const
const unsigned getPXBLadders(unsigned int lay) const
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomTokenBR_

◆ bookResidualsHistogram()

std::vector< TH1F * > PrimaryVertexValidation::bookResidualsHistogram ( const TFileDirectory dir,
unsigned int  theNOfBins,
PVValHelper::residualType  resType,
PVValHelper::plotVariable  varType,
bool  isNormalized = false 
)
private

Definition at line 3481 of file PrimaryVertexValidation.cc.

References cms::cuda::assert(), DeadROC_duringRun::dir, down, PVValHelper::eta, PVValHelper::getTypeString(), PVValHelper::getVarString(), h, cond::hash, PVValHelper::histodetails::histobins, mps_fire::i, PVValHelper::phi, PVValHelper::histodetails::range, AlCaHLTBitMon_QueryRunRegistry::string, theDetails_, runGCPTkAlMap::title, PVValHelper::histodetails::trendbins, units(), up, and dumpRecoGeometry_cfg::varType.

Referenced by beginJob().

3485  {
3486  TH1F::SetDefaultSumw2(kTRUE);
3487 
3488  auto hash = std::make_pair(resType, varType);
3489 
3490  double down = theDetails_.range[hash].first;
3491  double up = theDetails_.range[hash].second;
3492 
3493  if (isNormalized) {
3494  up = up / 100.;
3495  down = down / 100.;
3496  }
3497 
3498  std::vector<TH1F*> h;
3499  h.reserve(theNOfBins);
3500 
3501  if (theNOfBins == 0) {
3502  edm::LogError("PrimaryVertexValidation")
3503  << "bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
3504  assert(false);
3505  }
3506 
3507  std::string s_resType = std::get<0>(PVValHelper::getTypeString(resType));
3508  std::string s_varType = std::get<0>(PVValHelper::getVarString(varType));
3509 
3510  std::string t_resType = std::get<1>(PVValHelper::getTypeString(resType));
3511  std::string t_varType = std::get<1>(PVValHelper::getVarString(varType));
3512  std::string units = std::get<2>(PVValHelper::getTypeString(resType));
3513 
3514  for (unsigned int i = 0; i < theNOfBins; i++) {
3516  ? Form("%s vs %s - bin %i (%f < %s < %f);%s %s;tracks",
3517  t_resType.c_str(),
3518  t_varType.c_str(),
3519  i,
3521  t_varType.c_str(),
3523  t_resType.c_str(),
3524  units.c_str())
3525  : Form("%s vs %s - bin %i;%s %s;tracks",
3526  t_resType.c_str(),
3527  t_varType.c_str(),
3528  i,
3529  t_resType.c_str(),
3530  units.c_str());
3531 
3532  TH1F* htemp = dir.make<TH1F>(
3533  Form("histo_%s_%s_plot%i", s_resType.c_str(), s_varType.c_str(), i),
3534  //Form("%s vs %s - bin %i;%s %s;tracks",t_resType.c_str(),t_varType.c_str(),i,t_resType.c_str(),units.c_str()),
3535  title.Data(),
3537  down,
3538  up);
3539  h.push_back(htemp);
3540  }
3541 
3542  return h;
3543 }
Definition: BitonicSort.h:7
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
Log< level::Error, false > LogError
assert(be >=bs)
plotLabels getVarString(plotVariable var)
std::map< plotVariable, std::vector< float > > trendbins
plotLabels getTypeString(residualType type)
TString units(TString variable, Char_t axis)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
PVValHelper::histodetails theDetails_

◆ bookVertexHistograms()

std::map< std::string, TH1 * > PrimaryVertexValidation::bookVertexHistograms ( const TFileDirectory dir)
private

Definition at line 3359 of file PrimaryVertexValidation.cc.

References DeadROC_duringRun::dir, h, M_PI, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by beginJob().

3361 {
3362  TH1F::SetDefaultSumw2(kTRUE);
3363 
3364  std::map<std::string, TH1*> h;
3365 
3366  // histograms of track quality (Data and MC)
3367  std::string types[] = {"all", "sel"};
3368  for (const auto& type : types) {
3369  h["pseudorapidity_" + type] =
3370  dir.make<TH1F>(("rapidity_" + type).c_str(), "track pseudorapidity; track #eta; tracks", 100, -3., 3.);
3371  h["z0_" + type] = dir.make<TH1F>(("z0_" + type).c_str(), "track z_{0};track z_{0} (cm);tracks", 80, -40., 40.);
3372  h["phi_" + type] = dir.make<TH1F>(("phi_" + type).c_str(), "track #phi; track #phi;tracks", 80, -M_PI, M_PI);
3373  h["eta_" + type] = dir.make<TH1F>(("eta_" + type).c_str(), "track #eta; track #eta;tracks", 80, -4., 4.);
3374  h["pt_" + type] = dir.make<TH1F>(("pt_" + type).c_str(), "track p_{T}; track p_{T} [GeV];tracks", 100, 0., 20.);
3375  h["p_" + type] = dir.make<TH1F>(("p_" + type).c_str(), "track p; track p [GeV];tracks", 100, 0., 20.);
3376  h["found_" + type] =
3377  dir.make<TH1F>(("found_" + type).c_str(), "n. found hits;n^{found}_{hits};tracks", 30, 0., 30.);
3378  h["lost_" + type] = dir.make<TH1F>(("lost_" + type).c_str(), "n. lost hits;n^{lost}_{hits};tracks", 20, 0., 20.);
3379  h["nchi2_" + type] =
3380  dir.make<TH1F>(("nchi2_" + type).c_str(), "normalized track #chi^{2};track #chi^{2}/ndf;tracks", 100, 0., 20.);
3381  h["rstart_" + type] = dir.make<TH1F>(
3382  ("rstart_" + type).c_str(), "track start radius; track innermost radius r (cm);tracks", 100, 0., 20.);
3383  h["expectedInner_" + type] = dir.make<TH1F>(
3384  ("expectedInner_" + type).c_str(), "n. expected inner hits;n^{expected}_{inner};tracks", 10, 0., 10.);
3385  h["expectedOuter_" + type] = dir.make<TH1F>(
3386  ("expectedOuter_" + type).c_str(), "n. expected outer hits;n^{expected}_{outer};tracks ", 10, 0., 10.);
3387  h["logtresxy_" + type] =
3388  dir.make<TH1F>(("logtresxy_" + type).c_str(),
3389  "log10(track r-#phi resolution/#mum);log10(track r-#phi resolution/#mum);tracks",
3390  100,
3391  0.,
3392  5.);
3393  h["logtresz_" + type] = dir.make<TH1F>(("logtresz_" + type).c_str(),
3394  "log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",
3395  100,
3396  0.,
3397  5.);
3398  h["tpullxy_" + type] =
3399  dir.make<TH1F>(("tpullxy_" + type).c_str(), "track r-#phi pull;pull_{r-#phi};tracks", 100, -10., 10.);
3400  h["tpullz_" + type] =
3401  dir.make<TH1F>(("tpullz_" + type).c_str(), "track r-z pull;pull_{r-z};tracks", 100, -50., 50.);
3402  h["tlogDCAxy_" + type] = dir.make<TH1F>(
3403  ("tlogDCAxy_" + type).c_str(), "track log_{10}(DCA_{r-#phi});track log_{10}(DCA_{r-#phi});tracks", 200, -5., 3.);
3404  h["tlogDCAz_" + type] = dir.make<TH1F>(
3405  ("tlogDCAz_" + type).c_str(), "track log_{10}(DCA_{r-z});track log_{10}(DCA_{r-z});tracks", 200, -5., 5.);
3406  h["lvseta_" + type] = dir.make<TH2F>(
3407  ("lvseta_" + type).c_str(), "cluster length vs #eta;track #eta;cluster length", 60, -3., 3., 20, 0., 20);
3408  h["lvstanlambda_" + type] = dir.make<TH2F>(("lvstanlambda_" + type).c_str(),
3409  "cluster length vs tan #lambda; tan#lambda;cluster length",
3410  60,
3411  -6.,
3412  6.,
3413  20,
3414  0.,
3415  20);
3416  h["restrkz_" + type] =
3417  dir.make<TH1F>(("restrkz_" + type).c_str(), "z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
3418  h["restrkzvsphi_" + type] = dir.make<TH2F>(("restrkzvsphi_" + type).c_str(),
3419  "z-residuals (track - vertex) vs track #phi;track #phi;res_{z} (cm)",
3420  12,
3421  -M_PI,
3422  M_PI,
3423  100,
3424  -0.5,
3425  0.5);
3426  h["restrkzvseta_" + type] = dir.make<TH2F>(("restrkzvseta_" + type).c_str(),
3427  "z-residuals (track - vertex) vs track #eta;track #eta;res_{z} (cm)",
3428  12,
3429  -3.,
3430  3.,
3431  200,
3432  -0.5,
3433  0.5);
3434  h["pulltrkzvsphi_" + type] =
3435  dir.make<TH2F>(("pulltrkzvsphi_" + type).c_str(),
3436  "normalized z-residuals (track - vertex) vs track #phi;track #phi;res_{z}/#sigma_{res_{z}}",
3437  12,
3438  -M_PI,
3439  M_PI,
3440  100,
3441  -5.,
3442  5.);
3443  h["pulltrkzvseta_" + type] =
3444  dir.make<TH2F>(("pulltrkzvseta_" + type).c_str(),
3445  "normalized z-residuals (track - vertex) vs track #eta;track #eta;res_{z}/#sigma_{res_{z}}",
3446  12,
3447  -3.,
3448  3.,
3449  100,
3450  -5.,
3451  5.);
3452  h["pulltrkz_" + type] = dir.make<TH1F>(("pulltrkz_" + type).c_str(),
3453  "normalized z-residuals (track vs vertex);res_{z}/#sigma_{res_{z}};tracks",
3454  100,
3455  -5.,
3456  5.);
3457  h["sigmatrkz0_" + type] = dir.make<TH1F>(
3458  ("sigmatrkz0_" + type).c_str(), "z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
3459  h["sigmatrkz_" + type] = dir.make<TH1F>(
3460  ("sigmatrkz_" + type).c_str(), "z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100, 0., 5.);
3461  h["nbarrelhits_" + type] = dir.make<TH1F>(
3462  ("nbarrelhits_" + type).c_str(), "number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
3463  h["nbarrelLayers_" + type] = dir.make<TH1F>(
3464  ("nbarrelLayers_" + type).c_str(), "number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
3465  h["nPxLayers_" + type] = dir.make<TH1F>(
3466  ("nPxLayers_" + type).c_str(), "number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
3467  h["nSiLayers_" + type] =
3468  dir.make<TH1F>(("nSiLayers_" + type).c_str(), "number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
3469  h["trackAlgo_" + type] =
3470  dir.make<TH1F>(("trackAlgo_" + type).c_str(), "track algorithm;track algo;tracks", 30, 0., 30.);
3471  h["trackQuality_" + type] =
3472  dir.make<TH1F>(("trackQuality_" + type).c_str(), "track quality;track quality;tracks", 7, -1., 6.);
3473  }
3474 
3475  return h;
3476 }
#define M_PI
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ endJob()

void PrimaryVertexValidation::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 2656 of file PrimaryVertexValidation.cc.

References a_dxyBiasResidualsMap, a_dxyEtaBiasResiduals, a_dxyEtaMADBiasTrend, a_dxyEtaMADTrend, a_dxyEtaMeanBiasTrend, a_dxyEtaMeanTrend, a_dxyEtaMedianBiasTrend, a_dxyEtaMedianTrend, a_dxyEtaResiduals, a_dxyEtaWidthBiasTrend, a_dxyEtaWidthTrend, a_dxyL1MeanMap, a_dxyL1ResidualsMap, a_dxyL1WidthMap, a_dxyladderMeanTrend, a_dxyladderWidthTrend, a_dxyMeanBiasMap, a_dxyMeanMap, a_dxymodZMeanTrend, a_dxymodZWidthTrend, a_dxyPhiBiasResiduals, a_dxyPhiMADBiasTrend, a_dxyPhiMADTrend, a_dxyPhiMeanBiasTrend, a_dxyPhiMeanTrend, a_dxyPhiMedianBiasTrend, a_dxyPhiMedianTrend, a_dxyPhiResiduals, a_dxyPhiWidthBiasTrend, a_dxyPhiWidthTrend, a_dxypTCentralMeanTrend, a_dxypTCentralWidthTrend, a_dxypTMeanTrend, a_dxypTWidthTrend, a_dxyResidualsMap, a_dxyWidthBiasMap, a_dxyWidthMap, a_dzBiasResidualsMap, a_dzEtaBiasResiduals, a_dzEtaMADBiasTrend, a_dzEtaMADTrend, a_dzEtaMeanBiasTrend, a_dzEtaMeanTrend, a_dzEtaMedianBiasTrend, a_dzEtaMedianTrend, a_dzEtaResiduals, a_dzEtaWidthBiasTrend, a_dzEtaWidthTrend, a_dzL1MeanMap, a_dzL1ResidualsMap, a_dzL1WidthMap, a_dzladderMeanTrend, a_dzladderWidthTrend, a_dzMeanBiasMap, a_dzMeanMap, a_dzmodZMeanTrend, a_dzmodZWidthTrend, a_dzPhiBiasResiduals, a_dzPhiMADBiasTrend, a_dzPhiMADTrend, a_dzPhiMeanBiasTrend, a_dzPhiMeanTrend, a_dzPhiMedianBiasTrend, a_dzPhiMedianTrend, a_dzPhiResiduals, a_dzPhiWidthBiasTrend, a_dzPhiWidthTrend, a_dzpTCentralMeanTrend, a_dzpTCentralWidthTrend, a_dzpTMeanTrend, a_dzpTWidthTrend, a_dzResidualsMap, a_dzWidthBiasMap, a_dzWidthMap, submitPVResolutionJobs::count, PVValHelper::eta, fillMap(), fillTrendPlotByIndex(), fs, h2_probeLayer1Map_, h2_probePassingLayer1Map_, h_dxy_Central_pT_, h_dxy_ladder_, h_dxy_modZ_, h_dxy_pT_, h_dz_Central_pT_, h_dz_ladder_, h_dz_modZ_, h_dz_pT_, h_norm_dxy_Central_pT_, h_norm_dxy_ladder_, h_norm_dxy_modZ_, h_norm_dxy_pT_, h_norm_dz_Central_pT_, h_norm_dz_ladder_, h_norm_dz_modZ_, h_norm_dz_pT_, h_probeL1Ladder_, h_probeL1Module_, h_runEndTimes, h_runStartTimes, PVValHelper::MAD, TFileDirectory::make(), PVValHelper::MEAN, Mean2DMapsDir, MeanTrendsDir, PVValHelper::MEDIAN, TFileService::mkdir(), n_dxyBiasResidualsMap, n_dxyEtaBiasResiduals, n_dxyEtaMADBiasTrend, n_dxyEtaMADTrend, n_dxyEtaMeanBiasTrend, n_dxyEtaMeanTrend, n_dxyEtaMedianBiasTrend, n_dxyEtaMedianTrend, n_dxyEtaResiduals, n_dxyEtaWidthBiasTrend, n_dxyEtaWidthTrend, n_dxyL1MeanMap, n_dxyL1ResidualsMap, n_dxyL1WidthMap, n_dxyladderMeanTrend, n_dxyladderWidthTrend, n_dxyMeanBiasMap, n_dxyMeanMap, n_dxymodZMeanTrend, n_dxymodZWidthTrend, n_dxyPhiBiasResiduals, n_dxyPhiMADBiasTrend, n_dxyPhiMADTrend, n_dxyPhiMeanBiasTrend, n_dxyPhiMeanTrend, n_dxyPhiMedianBiasTrend, n_dxyPhiMedianTrend, n_dxyPhiResiduals, n_dxyPhiWidthBiasTrend, n_dxyPhiWidthTrend, n_dxypTCentralMeanTrend, n_dxypTCentralWidthTrend, n_dxypTMeanTrend, n_dxypTWidthTrend, n_dxyResidualsMap, n_dxyWidthBiasMap, n_dxyWidthMap, n_dzBiasResidualsMap, n_dzEtaBiasResiduals, n_dzEtaMADBiasTrend, n_dzEtaMADTrend, n_dzEtaMeanBiasTrend, n_dzEtaMeanTrend, n_dzEtaMedianBiasTrend, n_dzEtaMedianTrend, n_dzEtaResiduals, n_dzEtaWidthBiasTrend, n_dzEtaWidthTrend, n_dzL1MeanMap, n_dzL1ResidualsMap, n_dzL1WidthMap, n_dzladderMeanTrend, n_dzladderWidthTrend, n_dzMeanBiasMap, n_dzMeanMap, n_dzmodZMeanTrend, n_dzmodZWidthTrend, n_dzPhiBiasResiduals, n_dzPhiMADBiasTrend, n_dzPhiMADTrend, n_dzPhiMeanBiasTrend, n_dzPhiMeanTrend, n_dzPhiMedianBiasTrend, n_dzPhiMedianTrend, n_dzPhiResiduals, n_dzPhiWidthBiasTrend, n_dzPhiWidthTrend, n_dzpTCentralMeanTrend, n_dzpTCentralWidthTrend, n_dzpTMeanTrend, n_dzpTWidthTrend, n_dzResidualsMap, n_dzWidthBiasMap, n_dzWidthMap, nBins_, Nevt_, nLadders_, nModZ_, PVValHelper::phi, writedatasetfile::run, runNumbersTimesLog_, to_string(), useTracksFromRecoVtx_, PVValHelper::WIDTH, Width2DMapsDir, and WidthTrendsDir.

Referenced by o2olib.O2ORunMgr::executeJob().

2656  {
2657  // shring the histograms to fit
2658  h_probeL1Ladder_->GetXaxis()->SetRangeUser(-1.5, nLadders_ + 0.5);
2659  h_probeL1Module_->GetXaxis()->SetRangeUser(-1.5, nModZ_ + 0.5);
2660  h2_probeLayer1Map_->GetXaxis()->SetRangeUser(0.5, nModZ_ + 0.5);
2661  h2_probeLayer1Map_->GetYaxis()->SetRangeUser(0.5, nLadders_ + 0.5);
2662  h2_probePassingLayer1Map_->GetXaxis()->SetRangeUser(0.5, nModZ_ + 0.5);
2663  h2_probePassingLayer1Map_->GetYaxis()->SetRangeUser(0.5, nLadders_ + 0.5);
2664 
2665  TFileDirectory RunFeatures = fs->mkdir("RunFeatures");
2666  h_runStartTimes = RunFeatures.make<TH1I>(
2667  "runStartTimes", "run start times", runNumbersTimesLog_.size(), 0, runNumbersTimesLog_.size());
2668  h_runEndTimes =
2669  RunFeatures.make<TH1I>("runEndTimes", "run end times", runNumbersTimesLog_.size(), 0, runNumbersTimesLog_.size());
2670 
2671  unsigned int count = 1;
2672  for (const auto& run : runNumbersTimesLog_) {
2673  // strip down the microseconds
2674  h_runStartTimes->SetBinContent(count, run.second.first / 10e6);
2675  h_runStartTimes->GetXaxis()->SetBinLabel(count, (std::to_string(run.first)).c_str());
2676 
2677  h_runEndTimes->SetBinContent(count, run.second.second / 10e6);
2678  h_runEndTimes->GetXaxis()->SetBinLabel(count, (std::to_string(run.first)).c_str());
2679 
2680  count++;
2681  }
2682 
2683  edm::LogInfo("PrimaryVertexValidation") << "######################################\n"
2684  << "# PrimaryVertexValidation::endJob()\n"
2685  << "# Number of analyzed events: " << Nevt_ << "\n"
2686  << "######################################";
2687 
2688  // means and widhts vs ladder and module number
2689 
2691  "means_dxy_modZ", "#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]", nModZ_, 0., nModZ_);
2692 
2694  "widths_dxy_modZ", "#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]", nModZ_, 0., nModZ_);
2695 
2697  "means_dz_modZ", "#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]", nModZ_, 0., nModZ_);
2698 
2700  "widths_dz_modZ", "#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]", nModZ_, 0., nModZ_);
2701 
2702  a_dxyladderMeanTrend = MeanTrendsDir.make<TH1F>("means_dxy_ladder",
2703  "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2704  nLadders_,
2705  0.,
2706  nLadders_);
2707 
2709  WidthTrendsDir.make<TH1F>("widths_dxy_ladder",
2710  "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2711  nLadders_,
2712  0.,
2713  nLadders_);
2714 
2716  "means_dz_ladder", "#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]", nLadders_, 0., nLadders_);
2717 
2719  WidthTrendsDir.make<TH1F>("widths_dz_ladder",
2720  "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2721  nLadders_,
2722  0.,
2723  nLadders_);
2724 
2726  "norm_means_dxy_modZ",
2727  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2728  nModZ_,
2729  0.,
2730  nModZ_);
2731 
2733  "norm_widths_dxy_modZ",
2734  "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2735  nModZ_,
2736  0.,
2737  nModZ_);
2738 
2740  MeanTrendsDir.make<TH1F>("norm_means_dz_modZ",
2741  "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2742  nModZ_,
2743  0.,
2744  nModZ_);
2745 
2747  WidthTrendsDir.make<TH1F>("norm_widths_dz_modZ",
2748  "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2749  nModZ_,
2750  0.,
2751  nModZ_);
2752 
2754  "norm_means_dxy_ladder",
2755  "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2756  nLadders_,
2757  0.,
2758  nLadders_);
2759 
2761  "norm_widths_dxy_ladder",
2762  "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2763  nLadders_,
2764  0.,
2765  nLadders_);
2766 
2768  "norm_means_dz_ladder",
2769  "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2770  nLadders_,
2771  0.,
2772  nLadders_);
2773 
2775  "norm_widths_dz_ladder",
2776  "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2777  nLadders_,
2778  0.,
2779  nLadders_);
2780 
2781  // 2D maps of residuals in bins of L1 modules
2782 
2783  a_dxyL1MeanMap = Mean2DMapsDir.make<TH2F>("means_dxy_l1map",
2784  "#LT d_{xy} #GT map;module number [z];ladder number [#varphi]",
2785  nModZ_,
2786  0.,
2787  nModZ_,
2788  nLadders_,
2789  0.,
2790  nLadders_);
2791 
2792  a_dzL1MeanMap = Mean2DMapsDir.make<TH2F>("means_dz_l1map",
2793  "#LT d_{z} #GT map;module number [z];ladder number [#varphi]",
2794  nModZ_,
2795  0.,
2796  nModZ_,
2797  nLadders_,
2798  0.,
2799  nLadders_);
2800 
2801  n_dxyL1MeanMap =
2802  Mean2DMapsDir.make<TH2F>("norm_means_dxy_l1map",
2803  "#LT d_{xy}/#sigma_{d_{xy}} #GT map;module number [z];ladder number [#varphi]",
2804  nModZ_,
2805  0.,
2806  nModZ_,
2807  nLadders_,
2808  0.,
2809  nLadders_);
2810 
2811  n_dzL1MeanMap = Mean2DMapsDir.make<TH2F>("norm_means_dz_l1map",
2812  "#LT d_{z}/#sigma_{d_{z}} #GT map;module number [z];ladder number [#varphi]",
2813  nModZ_,
2814  0.,
2815  nModZ_,
2816  nLadders_,
2817  0.,
2818  nLadders_);
2819 
2820  a_dxyL1WidthMap = Width2DMapsDir.make<TH2F>("widths_dxy_l1map",
2821  "#sigma_{d_{xy}} map;module number [z];ladder number [#varphi]",
2822  nModZ_,
2823  0.,
2824  nModZ_,
2825  nLadders_,
2826  0.,
2827  nLadders_);
2828 
2829  a_dzL1WidthMap = Width2DMapsDir.make<TH2F>("widths_dz_l1map",
2830  "#sigma_{d_{z}} map;module number [z];ladder number [#varphi]",
2831  nModZ_,
2832  0.,
2833  nModZ_,
2834  nLadders_,
2835  0.,
2836  nLadders_);
2837 
2838  n_dxyL1WidthMap =
2839  Width2DMapsDir.make<TH2F>("norm_widths_dxy_l1map",
2840  "width(d_{xy}/#sigma_{d_{xy}}) map;module number [z];ladder number [#varphi]",
2841  nModZ_,
2842  0.,
2843  nModZ_,
2844  nLadders_,
2845  0.,
2846  nLadders_);
2847 
2848  n_dzL1WidthMap =
2849  Width2DMapsDir.make<TH2F>("norm_widths_dz_l1map",
2850  "width(d_{z}/#sigma_{d_{z}}) map;module number [z];ladder number [#varphi]",
2851  nModZ_,
2852  0.,
2853  nModZ_,
2854  nLadders_,
2855  0.,
2856  nLadders_);
2857 
2858  if (useTracksFromRecoVtx_) {
2863 
2868 
2873 
2878 
2879  // medians and MADs
2880 
2885 
2890 
2895 
2900 
2901  // 2d Maps
2902 
2907 
2912  }
2913 
2914  // do profiles
2915 
2920 
2925 
2930 
2935 
2936  // vs transverse momentum
2937 
2942 
2947 
2952 
2957 
2958  // vs ladder and module number
2959 
2964 
2969 
2974 
2979 
2980  // medians and MADs
2981 
2984 
2987 
2992 
2997 
3002 
3003  // 2D Maps
3004 
3009 
3014 
3015  // 2D Maps of residuals in bins of L1 modules
3016 
3021 
3026 }
std::vector< TH1F * > h_norm_dxy_modZ_
std::vector< TH1F * > a_dxyEtaResiduals
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dxy_pT_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > n_dzPhiResiduals
std::vector< TH1F * > n_dxyPhiBiasResiduals
TH1F * n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_norm_dz_Central_pT_
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
static std::string to_string(const XMLCh *ch)
std::vector< TH1F * > n_dxyEtaBiasResiduals
std::vector< TH1F * > n_dxyEtaResiduals
std::vector< TH1F * > a_dzPhiBiasResiduals
T * make(const Args &...args) const
make new ROOT object
std::vector< TH1F * > h_norm_dxy_pT_
std::vector< TH1F * > a_dzEtaResiduals
std::vector< TH1F * > a_dxyEtaBiasResiduals
std::vector< TH1F * > h_norm_dxy_ladder_
std::vector< TH1F * > a_dzPhiResiduals
std::vector< TH1F * > n_dxyPhiResiduals
TH1F * a_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dxy_ladder_
std::vector< TH1F * > a_dxyPhiResiduals
std::vector< TH1F * > a_dxyPhiBiasResiduals
TH1F * n_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
void fillMap(TH2F *trendMap, TH1F *residualsMapPlot[100][100], PVValHelper::estimator fitPar_, const int nXBins_, const int nYBins_)
std::vector< TH1F * > n_dzEtaResiduals
Log< level::Info, false > LogInfo
std::vector< TH1F * > h_norm_dz_pT_
TH1F * a_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_dz_pT_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
std::vector< TH1F * > n_dzEtaBiasResiduals
std::vector< TH1F * > h_dz_Central_pT_
edm::Service< TFileService > fs
std::vector< TH1F * > h_dz_ladder_
std::vector< TH1F * > h_dxy_Central_pT_
TH1F * n_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
std::map< unsigned int, std::pair< long long, long long > > runNumbersTimesLog_
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_norm_dz_modZ_
TH1F * n_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_norm_dz_ladder_
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > h_norm_dxy_Central_pT_
void fillTrendPlotByIndex(TH1F *trendPlot, std::vector< TH1F *> &h, PVValHelper::estimator fitPar_, PVValHelper::plotVariable plotVar=PVValHelper::END_OF_PLOTS)
std::vector< TH1F * > a_dzEtaBiasResiduals
std::vector< TH1F * > n_dzPhiBiasResiduals

◆ endRun()

void PrimaryVertexValidation::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprivate

Definition at line 84 of file PrimaryVertexValidation.h.

84 {};

◆ fill() [1/2]

void PrimaryVertexValidation::fill ( std::map< std::string, TH1 *> &  h,
const std::string &  s,
double  x 
)
private

◆ fill() [2/2]

void PrimaryVertexValidation::fill ( std::map< std::string, TH1 *> &  h,
const std::string &  s,
double  x,
double  y 
)
private

◆ fillByIndex()

void PrimaryVertexValidation::fillByIndex ( std::vector< TH1F *> &  h,
unsigned int  index,
double  x,
std::string  tag = "" 
)
private

◆ fillDescriptions()

void PrimaryVertexValidation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 3666 of file PrimaryVertexValidation.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, GapClusterizerInZ::fillPSetDescription(), TrackFilterForPVFinding::fillPSetDescription(), DAClusterizerInZ_vect::fillPSetDescription(), ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

3666  {
3668  desc.setComment("Validates alignment payloads by evaluating unbiased track paramter resisuals to vertices");
3669 
3670  // PV Validation specific
3671 
3672  desc.addUntracked<int>("compressionSettings", -1);
3673  desc.add<bool>("storeNtuple", false);
3674  desc.add<bool>("isLightNtuple", true);
3675  desc.add<bool>("useTracksFromRecoVtx", false);
3676  desc.addUntracked<double>("vertexZMax", 99);
3677  desc.addUntracked<double>("intLumi", 0.);
3678  desc.add<bool>("askFirstLayerHit", false);
3679  desc.addUntracked<bool>("doBPix", true);
3680  desc.addUntracked<bool>("doFPix", true);
3681  desc.addUntracked<double>("probePt", 0.);
3682  desc.addUntracked<double>("probeP", 0.);
3683  desc.addUntracked<double>("probeEta", 2.4);
3684  desc.addUntracked<double>("probeNHits", 0.);
3685  desc.addUntracked<int>("numberOfBins", 24);
3686  desc.addUntracked<double>("minPt", 1.);
3687  desc.addUntracked<double>("maxPt", 20.);
3688  desc.add<bool>("Debug", false);
3689  desc.addUntracked<bool>("runControl", false);
3690  desc.addUntracked<bool>("forceBeamSpot", false);
3691 
3692  std::vector<unsigned int> defaultRuns;
3693  defaultRuns.push_back(0);
3694  desc.addUntracked<std::vector<unsigned int>>("runControlNumber", defaultRuns);
3695 
3696  // event sources
3697 
3698  desc.add<edm::InputTag>("TrackCollectionTag", edm::InputTag("ALCARECOTkAlMinBias"));
3699  desc.add<edm::InputTag>("VertexCollectionTag", edm::InputTag("offlinePrimaryVertices"));
3700  desc.add<edm::InputTag>("BeamSpotTag", edm::InputTag("offlineBeamSpot"));
3701 
3702  // track filtering
3705  psd0.add<int>("numTracksThreshold", 0); // HI only
3706  desc.add<edm::ParameterSetDescription>("TkFilterParameters", psd0);
3707 
3708  // PV Clusterization
3709  {
3711  {
3714  psd0.add<edm::ParameterSetDescription>("TkDAClusParameters", psd1);
3715 
3718  psd0.add<edm::ParameterSetDescription>("TkGapClusParameters", psd2);
3719  }
3720  psd0.add<std::string>("algorithm", "DA_vect");
3721  desc.add<edm::ParameterSetDescription>("TkClusParameters", psd0);
3722  }
3723 
3724  descriptions.add("primaryVertexValidation", desc);
3725 }
static void fillPSetDescription(edm::ParameterSetDescription &desc)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillPSetDescription(edm::ParameterSetDescription &desc)

◆ fillMap()

void PrimaryVertexValidation::fillMap ( TH2F *  trendMap,
TH1F *  residualsMapPlot[100][100],
PVValHelper::estimator  fitPar_,
const int  nXBins_,
const int  nYBins_ 
)
private

Definition at line 3251 of file PrimaryVertexValidation.cc.

References Measurement1D::error(), PVValHelper::eta, HLT_2023v12_cff::etaBins, PVValHelper::fitResiduals(), PVValHelper::getMAD(), PVValHelper::getMedian(), mps_fire::i, dqmiolumiharvest::j, PVValHelper::MAD, PVValHelper::MEAN, PVValHelper::MEDIAN, PVValHelper::phi, l1tTrackJets_cfi::phiBins, theDetails_, PVValHelper::histodetails::trendbins, Measurement1D::value(), and PVValHelper::WIDTH.

Referenced by endJob().

3257 {
3258  for (int i = 0; i < nYBins_; ++i) {
3259  char phibincenter[129];
3261  sprintf(phibincenter, "%.f", (phiBins[i] + phiBins[i + 1]) / 2.);
3262 
3263  if (nXBins_ == nYBins_) {
3264  trendMap->GetYaxis()->SetBinLabel(i + 1, phibincenter);
3265  }
3266 
3267  for (int j = 0; j < nXBins_; ++j) {
3268  char etabincenter[129];
3270  sprintf(etabincenter, "%.1f", (etaBins[j] + etaBins[j + 1]) / 2.);
3271 
3272  if (i == 0) {
3273  if (nXBins_ == nYBins_) {
3274  trendMap->GetXaxis()->SetBinLabel(j + 1, etabincenter);
3275  }
3276  }
3277 
3278  switch (fitPar_) {
3279  case PVValHelper::MEAN: {
3280  float mean_ = PVValHelper::fitResiduals(residualsMapPlot[i][j]).first.value();
3281  float meanErr_ = PVValHelper::fitResiduals(residualsMapPlot[i][j]).first.error();
3282  trendMap->SetBinContent(j + 1, i + 1, mean_);
3283  trendMap->SetBinError(j + 1, i + 1, meanErr_);
3284  break;
3285  }
3286  case PVValHelper::WIDTH: {
3287  float width_ = PVValHelper::fitResiduals(residualsMapPlot[i][j]).second.value();
3288  float widthErr_ = PVValHelper::fitResiduals(residualsMapPlot[i][j]).second.error();
3289  trendMap->SetBinContent(j + 1, i + 1, width_);
3290  trendMap->SetBinError(j + 1, i + 1, widthErr_);
3291  break;
3292  }
3293  case PVValHelper::MEDIAN: {
3294  float median_ = PVValHelper::getMedian(residualsMapPlot[i][j]).value();
3295  float medianErr_ = PVValHelper::getMedian(residualsMapPlot[i][j]).error();
3296  trendMap->SetBinContent(j + 1, i + 1, median_);
3297  trendMap->SetBinError(j + 1, i + 1, medianErr_);
3298  break;
3299  }
3300  case PVValHelper::MAD: {
3301  float mad_ = PVValHelper::getMAD(residualsMapPlot[i][j]).value();
3302  float madErr_ = PVValHelper::getMAD(residualsMapPlot[i][j]).error();
3303  trendMap->SetBinContent(j + 1, i + 1, mad_);
3304  trendMap->SetBinError(j + 1, i + 1, madErr_);
3305  break;
3306  }
3307  default:
3308  edm::LogWarning("PrimaryVertexValidation:") << " fillMap() " << fitPar_ << " unknown estimator!" << std::endl;
3309  }
3310  } // closes loop on eta bins
3311  } // cloeses loop on phi bins
3312 }
Measurement1D getMedian(TH1F *histo)
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)
Measurement1D getMAD(TH1F *histo)
std::map< plotVariable, std::vector< float > > trendbins
double value() const
Definition: Measurement1D.h:25
double error() const
Definition: Measurement1D.h:27
Log< level::Warning, false > LogWarning
PVValHelper::histodetails theDetails_

◆ fillTrackHistos()

void PrimaryVertexValidation::fillTrackHistos ( std::map< std::string, TH1 *> &  h,
const std::string &  ttype,
const reco::TransientTrack tt,
const reco::Vertex v,
const reco::BeamSpot beamSpot,
double  fBfield 
)
private

Definition at line 3546 of file PrimaryVertexValidation.cc.

References funct::abs(), Reference_intrackfit_cff::barrel, pwdgSkimBPark_cfi::beamSpot, funct::cos(), d0, PVValHelper::dz, run3scouting_cff::dzError, PVValHelper::fill(), nano_mu_digi_cff::float, h, edm::Ref< C, T, F >::isNonnull(), hgcalLayerClustersEE_cfi::kappa, dqm-mbProfile::log, PixelSubdetector::PixelBarrel, position, conifer::pow(), submitPVResolutionJobs::q, nanoDQM_cfi::Rho, funct::sin(), mathSSE::sqrt(), funct::tan(), DetId::Tracker, findQualityFiles::v, wxy2_, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::y1, and z.

Referenced by analyze().

3553 {
3554  using namespace reco;
3555 
3556  PVValHelper::fill(h, "pseudorapidity_" + ttype, tt->track().eta());
3557  PVValHelper::fill(h, "z0_" + ttype, tt->track().vz());
3558  PVValHelper::fill(h, "phi_" + ttype, tt->track().phi());
3559  PVValHelper::fill(h, "eta_" + ttype, tt->track().eta());
3560  PVValHelper::fill(h, "pt_" + ttype, tt->track().pt());
3561  PVValHelper::fill(h, "p_" + ttype, tt->track().p());
3562  PVValHelper::fill(h, "found_" + ttype, tt->track().found());
3563  PVValHelper::fill(h, "lost_" + ttype, tt->track().lost());
3564  PVValHelper::fill(h, "nchi2_" + ttype, tt->track().normalizedChi2());
3565  PVValHelper::fill(h, "rstart_" + ttype, (tt->track().innerPosition()).Rho());
3566 
3567  double d0Error = tt->track().d0Error();
3568  double d0 = tt->track().dxy(beamSpot.position());
3569  double dz = tt->track().dz(beamSpot.position());
3570  if (d0Error > 0) {
3571  PVValHelper::fill(h, "logtresxy_" + ttype, log(d0Error / 0.0001) / log(10.));
3572  PVValHelper::fill(h, "tpullxy_" + ttype, d0 / d0Error);
3573  PVValHelper::fill(h, "tlogDCAxy_" + ttype, log(std::abs(d0 / d0Error)));
3574  }
3575  //double z0=tt->track().vz();
3576  double dzError = tt->track().dzError();
3577  if (dzError > 0) {
3578  PVValHelper::fill(h, "logtresz_" + ttype, log(dzError / 0.0001) / log(10.));
3579  PVValHelper::fill(h, "tpullz_" + ttype, dz / dzError);
3580  PVValHelper::fill(h, "tlogDCAz_" + ttype, log(std::abs(dz / dzError)));
3581  }
3582 
3583  //
3584  double wxy2_ = pow(beamSpot.BeamWidthX(), 2) + pow(beamSpot.BeamWidthY(), 2);
3585 
3587  h, "sigmatrkz_" + ttype, sqrt(pow(tt->track().dzError(), 2) + wxy2_ / pow(tan(tt->track().theta()), 2)));
3588  PVValHelper::fill(h, "sigmatrkz0_" + ttype, tt->track().dzError());
3589 
3590  // track vs vertex
3591  if (v.isValid()) { // && (v.ndof()<10.)) {
3592  // emulate clusterizer input
3593  //const TransientTrack & tt = theB_->build(&t); wrong !!!!
3594  //reco::TransientTrack tt = theB_->build(&t);
3595  //ttt->track().setBeamSpot(beamSpot); // need the setBeamSpot !
3596  double z = (tt->stateAtBeamLine().trackStateAtPCA()).position().z();
3597  double tantheta = tan((tt->stateAtBeamLine().trackStateAtPCA()).momentum().theta());
3598  double dz2 = pow(tt->track().dzError(), 2) + wxy2_ / pow(tantheta, 2);
3599 
3600  PVValHelper::fill(h, "restrkz_" + ttype, z - v.position().z());
3601  PVValHelper::fill(h, "restrkzvsphi_" + ttype, tt->track().phi(), z - v.position().z());
3602  PVValHelper::fill(h, "restrkzvseta_" + ttype, tt->track().eta(), z - v.position().z());
3603  PVValHelper::fill(h, "pulltrkzvsphi_" + ttype, tt->track().phi(), (z - v.position().z()) / sqrt(dz2));
3604  PVValHelper::fill(h, "pulltrkzvseta_" + ttype, tt->track().eta(), (z - v.position().z()) / sqrt(dz2));
3605 
3606  PVValHelper::fill(h, "pulltrkz_" + ttype, (z - v.position().z()) / sqrt(dz2));
3607 
3608  double x1 = tt->track().vx() - beamSpot.x0();
3609  double y1 = tt->track().vy() - beamSpot.y0();
3610 
3611  double kappa = -0.002998 * fBfield_ * tt->track().qoverp() / cos(tt->track().theta());
3612  double D0 = x1 * sin(tt->track().phi()) - y1 * cos(tt->track().phi()) - 0.5 * kappa * (x1 * x1 + y1 * y1);
3613  double q = sqrt(1. - 2. * kappa * D0);
3614  double s0 = (x1 * cos(tt->track().phi()) + y1 * sin(tt->track().phi())) / q;
3615  // double s1;
3616  if (std::abs(kappa * s0) > 0.001) {
3617  //s1=asin(kappa*s0)/kappa;
3618  } else {
3619  //double ks02=(kappa*s0)*(kappa*s0);
3620  //s1=s0*(1.+ks02/6.+3./40.*ks02*ks02+5./112.*pow(ks02,3));
3621  }
3622  // sp.ddcap=-2.*D0/(1.+q);
3623  //double zdcap=tt->track().vz()-s1/tan(tt->track().theta());
3624  }
3625  //
3626 
3627  // collect some info on hits and clusters
3628  PVValHelper::fill(h, "nbarrelLayers_" + ttype, tt->track().hitPattern().pixelBarrelLayersWithMeasurement());
3629  PVValHelper::fill(h, "nPxLayers_" + ttype, tt->track().hitPattern().pixelLayersWithMeasurement());
3630  PVValHelper::fill(h, "nSiLayers_" + ttype, tt->track().hitPattern().trackerLayersWithMeasurement());
3632  h, "expectedInner_" + ttype, tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_INNER_HITS));
3634  h, "expectedOuter_" + ttype, tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_OUTER_HITS));
3635  PVValHelper::fill(h, "trackAlgo_" + ttype, tt->track().algo());
3636  PVValHelper::fill(h, "trackQuality_" + ttype, tt->track().qualityMask());
3637 
3638  //
3639  int longesthit = 0, nbarrel = 0;
3640  for (auto const& hit : tt->track().recHits()) {
3641  if (hit->isValid() && hit->geographicalId().det() == DetId::Tracker) {
3642  bool barrel = DetId(hit->geographicalId()).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
3643  //bool endcap = DetId::DetId(hit->geographicalId()).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
3644  if (barrel) {
3645  const SiPixelRecHit* pixhit = dynamic_cast<const SiPixelRecHit*>(&(*hit));
3646  edm::Ref<edmNew::DetSetVector<SiPixelCluster>, SiPixelCluster> const& clust = (*pixhit).cluster();
3647  if (clust.isNonnull()) {
3648  nbarrel++;
3649  if (clust->sizeY() - longesthit > 0)
3650  longesthit = clust->sizeY();
3651  if (clust->sizeY() > 20.) {
3652  PVValHelper::fill(h, "lvseta_" + ttype, tt->track().eta(), 19.9);
3653  PVValHelper::fill(h, "lvstanlambda_" + ttype, tan(tt->track().lambda()), 19.9);
3654  } else {
3655  PVValHelper::fill(h, "lvseta_" + ttype, tt->track().eta(), float(clust->sizeY()));
3656  PVValHelper::fill(h, "lvstanlambda_" + ttype, tan(tt->track().lambda()), float(clust->sizeY()));
3657  }
3658  }
3659  }
3660  }
3661  }
3662  PVValHelper::fill(h, "nbarrelhits_" + ttype, float(nbarrel));
3663  //-------------------------------------------------------------------
3664 }
Divides< arg, void > D0
Definition: Factorize.h:135
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
constexpr int pow(int x)
Definition: conifer.h:24
Definition: TTTypes.h:54
T sqrt(T t)
Definition: SSEVec.h:19
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void fill(std::map< std::string, TH1 *> &h, const std::string &s, double x)
Definition: DetId.h:17
static constexpr float d0
Pixel cluster – collection of neighboring pixels above threshold.
fixed size matrix
static int position[264][3]
Definition: ReadPGInfo.cc:289
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
Our base class.
Definition: SiPixelRecHit.h:23

◆ fillTrendPlot()

void PrimaryVertexValidation::fillTrendPlot ( TH1F *  trendPlot,
TH1F *  residualsPlot[100],
PVValHelper::estimator  fitPar_,
const std::string &  var_ 
)
private

Definition at line 3127 of file PrimaryVertexValidation.cc.

References Measurement1D::error(), PVValHelper::eta, HLT_2023v12_cff::etaBins, PVValHelper::fitResiduals(), PVValHelper::getMAD(), PVValHelper::getMedian(), mps_fire::i, PVValHelper::MAD, PVValHelper::MEAN, PVValHelper::MEDIAN, nBins_, PVValHelper::phi, l1tTrackJets_cfi::phiBins, theDetails_, PVValHelper::histodetails::trendbins, Measurement1D::value(), and PVValHelper::WIDTH.

3132 {
3133  for (int i = 0; i < nBins_; ++i) {
3134  char phibincenter[129];
3136  sprintf(phibincenter, "%.f", (phiBins[i] + phiBins[i + 1]) / 2.);
3137 
3138  char etabincenter[129];
3140  sprintf(etabincenter, "%.1f", (etaBins[i] + etaBins[i + 1]) / 2.);
3141 
3142  switch (fitPar_) {
3143  case PVValHelper::MEAN: {
3144  float mean_ = PVValHelper::fitResiduals(residualsPlot[i]).first.value();
3145  float meanErr_ = PVValHelper::fitResiduals(residualsPlot[i]).first.error();
3146  trendPlot->SetBinContent(i + 1, mean_);
3147  trendPlot->SetBinError(i + 1, meanErr_);
3148  break;
3149  }
3150  case PVValHelper::WIDTH: {
3151  float width_ = PVValHelper::fitResiduals(residualsPlot[i]).second.value();
3152  float widthErr_ = PVValHelper::fitResiduals(residualsPlot[i]).second.error();
3153  trendPlot->SetBinContent(i + 1, width_);
3154  trendPlot->SetBinError(i + 1, widthErr_);
3155  break;
3156  }
3157  case PVValHelper::MEDIAN: {
3158  float median_ = PVValHelper::getMedian(residualsPlot[i]).value();
3159  float medianErr_ = PVValHelper::getMedian(residualsPlot[i]).error();
3160  trendPlot->SetBinContent(i + 1, median_);
3161  trendPlot->SetBinError(i + 1, medianErr_);
3162  break;
3163  }
3164  case PVValHelper::MAD: {
3165  float mad_ = PVValHelper::getMAD(residualsPlot[i]).value();
3166  float madErr_ = PVValHelper::getMAD(residualsPlot[i]).error();
3167  trendPlot->SetBinContent(i + 1, mad_);
3168  trendPlot->SetBinError(i + 1, madErr_);
3169  break;
3170  }
3171  default:
3172  edm::LogWarning("PrimaryVertexValidation")
3173  << "fillTrendPlot() " << fitPar_ << " unknown estimator!" << std::endl;
3174  break;
3175  }
3176 
3177  if (var_.find("eta") != std::string::npos) {
3178  trendPlot->GetXaxis()->SetBinLabel(i + 1, etabincenter);
3179  } else if (var_.find("phi") != std::string::npos) {
3180  trendPlot->GetXaxis()->SetBinLabel(i + 1, phibincenter);
3181  } else {
3182  edm::LogWarning("PrimaryVertexValidation")
3183  << "fillTrendPlot() " << var_ << " unknown track parameter!" << std::endl;
3184  }
3185  }
3186 }
Measurement1D getMedian(TH1F *histo)
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)
Measurement1D getMAD(TH1F *histo)
std::map< plotVariable, std::vector< float > > trendbins
double value() const
Definition: Measurement1D.h:25
double error() const
Definition: Measurement1D.h:27
Log< level::Warning, false > LogWarning
PVValHelper::histodetails theDetails_

◆ fillTrendPlotByIndex()

void PrimaryVertexValidation::fillTrendPlotByIndex ( TH1F *  trendPlot,
std::vector< TH1F *> &  h,
PVValHelper::estimator  fitPar_,
PVValHelper::plotVariable  plotVar = PVValHelper::END_OF_PLOTS 
)
private

FIXME DO SOMETHING HERE

Definition at line 3189 of file PrimaryVertexValidation.cc.

References newFWLiteAna::bin, HLT_2023v12_cff::distance, Measurement1D::error(), PVValHelper::eta, HLT_2023v12_cff::etaBins, PVValHelper::fitResiduals(), PVValHelper::getMAD(), PVValHelper::getMedian(), h, PVValHelper::MAD, PVValHelper::MEAN, PVValHelper::MEDIAN, PVValHelper::phi, l1tTrackJets_cfi::phiBins, theDetails_, PVValHelper::histodetails::trendbins, Measurement1D::value(), and PVValHelper::WIDTH.

Referenced by endJob().

3194 {
3195  for (auto iterator = h.begin(); iterator != h.end(); iterator++) {
3196  unsigned int bin = std::distance(h.begin(), iterator) + 1;
3197  std::pair<Measurement1D, Measurement1D> myFit = PVValHelper::fitResiduals((*iterator));
3198 
3199  switch (fitPar_) {
3200  case PVValHelper::MEAN: {
3201  float mean_ = myFit.first.value();
3202  float meanErr_ = myFit.first.error();
3203  trendPlot->SetBinContent(bin, mean_);
3204  trendPlot->SetBinError(bin, meanErr_);
3205  break;
3206  }
3207  case PVValHelper::WIDTH: {
3208  float width_ = myFit.second.value();
3209  float widthErr_ = myFit.second.error();
3210  trendPlot->SetBinContent(bin, width_);
3211  trendPlot->SetBinError(bin, widthErr_);
3212  break;
3213  }
3214  case PVValHelper::MEDIAN: {
3215  float median_ = PVValHelper::getMedian(*iterator).value();
3216  float medianErr_ = PVValHelper::getMedian(*iterator).error();
3217  trendPlot->SetBinContent(bin, median_);
3218  trendPlot->SetBinError(bin, medianErr_);
3219  break;
3220  }
3221  case PVValHelper::MAD: {
3222  float mad_ = PVValHelper::getMAD(*iterator).value();
3223  float madErr_ = PVValHelper::getMAD(*iterator).error();
3224  trendPlot->SetBinContent(bin, mad_);
3225  trendPlot->SetBinError(bin, madErr_);
3226  break;
3227  }
3228  default:
3229  edm::LogWarning("PrimaryVertexValidation")
3230  << "fillTrendPlotByIndex() " << fitPar_ << " unknown estimator!" << std::endl;
3231  break;
3232  }
3233 
3234  char bincenter[129];
3235  if (plotVar == PVValHelper::eta) {
3237  sprintf(bincenter, "%.1f", (etaBins[bin - 1] + etaBins[bin]) / 2.);
3238  trendPlot->GetXaxis()->SetBinLabel(bin, bincenter);
3239  } else if (plotVar == PVValHelper::phi) {
3241  sprintf(bincenter, "%.f", (phiBins[bin - 1] + phiBins[bin]) / 2.);
3242  trendPlot->GetXaxis()->SetBinLabel(bin, bincenter);
3243  } else {
3245  //edm::LogWarning("PrimaryVertexValidation")<<"fillTrendPlotByIndex() "<< plotVar <<" unknown track parameter!"<<std::endl;
3246  }
3247  }
3248 }
Measurement1D getMedian(TH1F *histo)
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)
Measurement1D getMAD(TH1F *histo)
std::map< plotVariable, std::vector< float > > trendbins
double value() const
Definition: Measurement1D.h:25
double error() const
Definition: Measurement1D.h:27
Log< level::Warning, false > LogWarning
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
PVValHelper::histodetails theDetails_

◆ fitResiduals()

std::pair<Measurement1D, Measurement1D> PrimaryVertexValidation::fitResiduals ( TH1 *  hist)
private

◆ getMAD()

Measurement1D PrimaryVertexValidation::getMAD ( TH1F *  histo)
private

◆ getMedian()

Measurement1D PrimaryVertexValidation::getMedian ( TH1F *  histo)
private

◆ getRunTime()

std::pair< long long, long long > PrimaryVertexValidation::getRunTime ( const edm::EventSetup iSetup) const
private

Definition at line 3029 of file PrimaryVertexValidation.cc.

References debug_, submitPVValidationJobs::runInfo, and runInfoTokenBR_.

Referenced by beginRun().

3031 {
3033  if (debug_) {
3034  edm::LogInfo("PrimaryVertexValidation")
3035  << runInfo.product()->m_start_time_str << " " << runInfo.product()->m_stop_time_str << std::endl;
3036  }
3037  return std::make_pair(runInfo.product()->m_start_time_ll, runInfo.product()->m_stop_time_ll);
3038 }
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoTokenBR_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
Log< level::Info, false > LogInfo

◆ getTypeString()

std::tuple<std::string, std::string, std::string> PrimaryVertexValidation::getTypeString ( PVValHelper::residualType  type)
private

◆ getVarString()

std::tuple<std::string, std::string, std::string> PrimaryVertexValidation::getVarString ( PVValHelper::plotVariable  var)
private

◆ hasFirstLayerPixelHits()

bool PrimaryVertexValidation::hasFirstLayerPixelHits ( const reco::TransientTrack track)
private

Definition at line 1063 of file PrimaryVertexValidation.cc.

References mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, topSingleLeptonDQM_PU_cfi::pattern, and HLT_2023v12_cff::track.

Referenced by analyze().

1063  {
1064  using namespace reco;
1065  const HitPattern& p = track.hitPattern();
1066  for (int i = 0; i < p.numberOfAllHits(HitPattern::TRACK_HITS); i++) {
1067  uint32_t pattern = p.getHitPattern(HitPattern::TRACK_HITS, i);
1068  if (p.pixelBarrelHitFilter(pattern) || p.pixelEndcapHitFilter(pattern)) {
1069  if (p.getLayer(pattern) == 1) {
1070  if (p.validHitFilter(pattern)) {
1071  return true;
1072  }
1073  }
1074  }
1075  }
1076  return false;
1077 }
fixed size matrix

◆ isBFieldConsistentWithMode()

bool PrimaryVertexValidation::isBFieldConsistentWithMode ( const edm::EventSetup iSetup) const
private

Definition at line 3041 of file PrimaryVertexValidation.cc.

References ptOfProbe_, submitPVValidationJobs::runInfo, and runInfoTokenBR_.

Referenced by beginRun().

3043 {
3045  double average_current = runInfo.product()->m_avg_current;
3046  bool isOn = (average_current > 2000.);
3047  bool is0T = (ptOfProbe_ == 0.);
3048 
3049  return ((isOn && !is0T) || (!isOn && is0T));
3050 }
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoTokenBR_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130

◆ isHit2D()

bool PrimaryVertexValidation::isHit2D ( const TrackingRecHit hit,
const PVValHelper::detectorPhase thePhase 
) const
private

Definition at line 1013 of file PrimaryVertexValidation.cc.

References hcalRecHitTable_cff::detId, PVValHelper::phase2, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, and DetId::Tracker.

Referenced by analyze().

1013  {
1014  if (hit.dimension() < 2) {
1015  return false; // some (muon...) stuff really has RecHit1D
1016  } else {
1017  const DetId detId(hit.geographicalId());
1018  if (detId.det() == DetId::Tracker) {
1019  if (detId.subdetId() == PixelSubdetector::PixelBarrel || detId.subdetId() == PixelSubdetector::PixelEndcap) {
1020  return true; // pixel is always 2D
1021  } else if (thePhase != PVValHelper::phase2) { // should be SiStrip now
1022  if (dynamic_cast<const SiStripRecHit2D*>(&hit))
1023  return false; // normal hit
1024  else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
1025  return true; // matched is 2D
1026  else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
1027  return false; // crazy hit...
1028  else {
1029  edm::LogError("UnknownType") << "@SUB=PrimaryVertexValidation::isHit2D"
1030  << "Tracker hit not in pixel and neither SiStripRecHit2D nor "
1031  << "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1032  return false;
1033  }
1034  } else {
1035  return false;
1036  }
1037  } else { // not tracker??
1038  edm::LogWarning("DetectorMismatch") << "@SUB=PrimaryVertexValidation::isHit2D"
1039  << "Hit not in tracker with 'official' dimension >=2.";
1040  return true; // dimension() >= 2 so accept that...
1041  }
1042  }
1043  // never reached...
1044 }
Log< level::Error, false > LogError
Definition: DetId.h:17
Log< level::Warning, false > LogWarning

◆ passesTrackCuts()

bool PrimaryVertexValidation::passesTrackCuts ( const reco::Track track,
const reco::Vertex vertex,
const std::string &  qualityString_,
double  dxyErrMax_,
double  dzErrMax_,
double  ptErrMax_ 
)
private

Definition at line 3325 of file PrimaryVertexValidation.cc.

References funct::abs(), PVValHelper::dxy, PVValHelper::dz, reco::TrackBase::qualityByName(), mathSSE::sqrt(), HLT_2023v12_cff::track, and bphysicsOniaDQM_cfi::vertex.

3332 {
3333  math::XYZPoint vtxPoint(0.0, 0.0, 0.0);
3334  double vzErr = 0.0, vxErr = 0.0, vyErr = 0.0;
3335  vtxPoint = vertex.position();
3336  vzErr = vertex.zError();
3337  vxErr = vertex.xError();
3338  vyErr = vertex.yError();
3339 
3340  double dxy = 0.0, dz = 0.0, dxysigma = 0.0, dzsigma = 0.0;
3341  dxy = track.dxy(vtxPoint);
3342  dz = track.dz(vtxPoint);
3343  dxysigma = sqrt(track.d0Error() * track.d0Error() + vxErr * vyErr);
3344  dzsigma = sqrt(track.dzError() * track.dzError() + vzErr * vzErr);
3345 
3346  if (track.quality(reco::TrackBase::qualityByName(qualityString_)) != 1)
3347  return false;
3348  if (std::abs(dxy / dxysigma) > dxyErrMax_)
3349  return false;
3350  if (std::abs(dz / dzsigma) > dzErrMax_)
3351  return false;
3352  if (track.ptError() / track.pt() > ptErrMax_)
3353  return false;
3354 
3355  return true;
3356 }
T sqrt(T t)
Definition: SSEVec.h:19
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12

◆ pixelHitsCheck()

std::pair< bool, bool > PrimaryVertexValidation::pixelHitsCheck ( const reco::TransientTrack track)
private

Definition at line 1047 of file PrimaryVertexValidation.cc.

References AlCaHLTBitMon_ParallelJobs::p, and HLT_2023v12_cff::track.

Referenced by analyze().

1047  {
1048  bool hasBPixHits = false;
1049  bool hasFPixHits = false;
1050 
1051  const reco::HitPattern& p = track.hitPattern();
1052  if (p.numberOfValidPixelEndcapHits() != 0) {
1053  hasFPixHits = true;
1054  }
1055  if (p.numberOfValidPixelBarrelHits() != 0) {
1056  hasBPixHits = true;
1057  }
1058 
1059  return std::make_pair(hasBPixHits, hasFPixHits);
1060 }

◆ SetVarToZero()

void PrimaryVertexValidation::SetVarToZero ( )
private

Definition at line 3053 of file PrimaryVertexValidation.cc.

References Beamdxdz_, Beamsigmaz_, BeamWidthX_, BeamWidthY_, BSx0_, BSy0_, BSz0_, charge_, chi2_, chi2ndof_, chi2normUnbiasedVertex_, chi2ProbUnbiasedVertex_, chi2UnbiasedVertex_, d3DErrorFromMyVertex_, d3DFromMyVertex_, DOFUnbiasedVertex_, dxy_, dxyBs_, dxyErrorFromMyVertex_, dxyFromMyVertex_, dz_, dzBs_, dzErrorFromMyVertex_, dzFromMyVertex_, eta_, hasRecVertex_, mps_fire::i, IP3DsigFromMyVertex_, IPLsigFromMyVertex_, IPTsigFromMyVertex_, isGoodTrack_, isHighPurity_, LuminosityBlockNumber_, nClus_, nhits1D_, nhits2D_, nhits_, nhitsBPIX_, nhitsFPIX_, nhitsTEC_, nhitsTIB_, nhitsTID_, nhitsTOB_, nMaxtracks_, nOfflineVertices_, nTracks_, p_, phi_, pt_, qoverp_, RunNumber_, sumOfWeightsUnbiasedVertex_, theta_, tracksUsedForVertexing_, wxy2_, xErrOfflineVertex_, xOfflineVertex_, xPCA_, xUnbiasedVertex_, yErrOfflineVertex_, yOfflineVertex_, yPCA_, yUnbiasedVertex_, zErrOfflineVertex_, zOfflineVertex_, zPCA_, and zUnbiasedVertex_.

Referenced by analyze().

3055 {
3056  nTracks_ = 0;
3057  nClus_ = 0;
3058  nOfflineVertices_ = 0;
3059  RunNumber_ = 0;
3061  xOfflineVertex_ = -999.;
3062  yOfflineVertex_ = -999.;
3063  zOfflineVertex_ = -999.;
3064  xErrOfflineVertex_ = 0.;
3065  yErrOfflineVertex_ = 0.;
3066  zErrOfflineVertex_ = 0.;
3067  BSx0_ = -999.;
3068  BSy0_ = -999.;
3069  BSz0_ = -999.;
3070  Beamsigmaz_ = -999.;
3071  Beamdxdz_ = -999.;
3072  BeamWidthX_ = -999.;
3073  BeamWidthY_ = -999.;
3074  wxy2_ = -999.;
3075 
3076  for (int i = 0; i < nMaxtracks_; ++i) {
3077  pt_[i] = 0;
3078  p_[i] = 0;
3079  nhits_[i] = 0;
3080  nhits1D_[i] = 0;
3081  nhits2D_[i] = 0;
3082  nhitsBPIX_[i] = 0;
3083  nhitsFPIX_[i] = 0;
3084  nhitsTIB_[i] = 0;
3085  nhitsTID_[i] = 0;
3086  nhitsTOB_[i] = 0;
3087  nhitsTEC_[i] = 0;
3088  isHighPurity_[i] = 0;
3089  eta_[i] = 0;
3090  theta_[i] = 0;
3091  phi_[i] = 0;
3092  chi2_[i] = 0;
3093  chi2ndof_[i] = 0;
3094  charge_[i] = 0;
3095  qoverp_[i] = 0;
3096  dz_[i] = 0;
3097  dxy_[i] = 0;
3098  dzBs_[i] = 0;
3099  dxyBs_[i] = 0;
3100  xPCA_[i] = 0;
3101  yPCA_[i] = 0;
3102  zPCA_[i] = 0;
3103  xUnbiasedVertex_[i] = 0;
3104  yUnbiasedVertex_[i] = 0;
3105  zUnbiasedVertex_[i] = 0;
3107  chi2UnbiasedVertex_[i] = 0;
3109  DOFUnbiasedVertex_[i] = 0;
3112  dxyFromMyVertex_[i] = 0;
3113  dzFromMyVertex_[i] = 0;
3114  d3DFromMyVertex_[i] = 0;
3115  dxyErrorFromMyVertex_[i] = 0;
3116  dzErrorFromMyVertex_[i] = 0;
3117  d3DErrorFromMyVertex_[i] = 0;
3118  IPTsigFromMyVertex_[i] = 0;
3119  IPLsigFromMyVertex_[i] = 0;
3120  IP3DsigFromMyVertex_[i] = 0;
3121  hasRecVertex_[i] = 0;
3122  isGoodTrack_[i] = 0;
3123  }
3124 }
float DOFUnbiasedVertex_[nMaxtracks_]
double d3DFromMyVertex_[nMaxtracks_]
float chi2ProbUnbiasedVertex_[nMaxtracks_]
double dxyFromMyVertex_[nMaxtracks_]
double dzErrorFromMyVertex_[nMaxtracks_]
double IPTsigFromMyVertex_[nMaxtracks_]
int tracksUsedForVertexing_[nMaxtracks_]
double yUnbiasedVertex_[nMaxtracks_]
double zUnbiasedVertex_[nMaxtracks_]
float chi2normUnbiasedVertex_[nMaxtracks_]
double IPLsigFromMyVertex_[nMaxtracks_]
double xUnbiasedVertex_[nMaxtracks_]
double dzFromMyVertex_[nMaxtracks_]
double dxyErrorFromMyVertex_[nMaxtracks_]
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
double d3DErrorFromMyVertex_[nMaxtracks_]
float chi2UnbiasedVertex_[nMaxtracks_]
double IP3DsigFromMyVertex_[nMaxtracks_]

◆ shrinkHistVectorToFit()

void PrimaryVertexValidation::shrinkHistVectorToFit ( std::vector< TH1F *> &  h,
unsigned int  desired_size 
)
private

◆ square()

double PrimaryVertexValidation::square ( double  x)
inlineprivate

Definition at line 140 of file PrimaryVertexValidation.h.

References x.

140 { return x * x; }

◆ vtxSort()

bool PrimaryVertexValidation::vtxSort ( const reco::Vertex a,
const reco::Vertex b 
)
staticprivate

Definition at line 3315 of file PrimaryVertexValidation.cc.

References a, b, and funct::true.

Referenced by analyze().

3317 {
3318  if (a.tracksSize() != b.tracksSize())
3319  return a.tracksSize() > b.tracksSize() ? true : false;
3320  else
3321  return a.chi2() < b.chi2() ? true : false;
3322 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

Member Data Documentation

◆ a_d3DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_d3DEtaResiduals
private

Definition at line 350 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_d3DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_d3DPhiResiduals
private

Definition at line 349 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_d3DResidualsMap

TH1F* PrimaryVertexValidation::a_d3DResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 376 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dxEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxEtaResiduals
private

Definition at line 332 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dxPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxPhiResiduals
private

Definition at line 331 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dxyBiasResidualsMap

TH1F* PrimaryVertexValidation::a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 541 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyEtaBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxyEtaBiasResiduals
private

Definition at line 526 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyEtaMADBiasTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMADBiasTrend
private

Definition at line 577 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaMADTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMADTrend
private

Definition at line 463 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaMeanBiasTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMeanBiasTrend
private

Definition at line 554 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaMeanTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMeanTrend
private

Definition at line 396 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaMedianBiasTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMedianBiasTrend
private

Definition at line 576 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaMedianTrend

TH1F* PrimaryVertexValidation::a_dxyEtaMedianTrend
private

Definition at line 462 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxyEtaResiduals
private

Definition at line 329 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyEtaWidthBiasTrend

TH1F* PrimaryVertexValidation::a_dxyEtaWidthBiasTrend
private

Definition at line 555 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyEtaWidthTrend

TH1F* PrimaryVertexValidation::a_dxyEtaWidthTrend
private

Definition at line 397 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyL1MeanMap

TH2F* PrimaryVertexValidation::a_dxyL1MeanMap
private

Definition at line 507 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxyL1ResidualsMap

TH1F* PrimaryVertexValidation::a_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 384 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyL1WidthMap

TH2F* PrimaryVertexValidation::a_dxyL1WidthMap
private

Definition at line 513 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxyladderMeanTrend

TH1F* PrimaryVertexValidation::a_dxyladderMeanTrend
private

Definition at line 440 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxyladderWidthTrend

TH1F* PrimaryVertexValidation::a_dxyladderWidthTrend
private

Definition at line 441 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxyMeanBiasMap

TH2F* PrimaryVertexValidation::a_dxyMeanBiasMap
private

Definition at line 593 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyMeanMap

TH2F* PrimaryVertexValidation::a_dxyMeanMap
private

Definition at line 493 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxymodZMeanTrend

TH1F* PrimaryVertexValidation::a_dxymodZMeanTrend
private

Definition at line 435 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxymodZWidthTrend

TH1F* PrimaryVertexValidation::a_dxymodZWidthTrend
private

Definition at line 436 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dxyPhiBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxyPhiBiasResiduals
private

Definition at line 525 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyPhiMADBiasTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMADBiasTrend
private

Definition at line 572 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiMADTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMADTrend
private

Definition at line 458 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiMeanBiasTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMeanBiasTrend
private

Definition at line 549 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiMeanTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMeanTrend
private

Definition at line 391 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiMedianBiasTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMedianBiasTrend
private

Definition at line 571 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiMedianTrend

TH1F* PrimaryVertexValidation::a_dxyPhiMedianTrend
private

Definition at line 457 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dxyPhiResiduals
private

Definition at line 328 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyPhiWidthBiasTrend

TH1F* PrimaryVertexValidation::a_dxyPhiWidthBiasTrend
private

Definition at line 550 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyPhiWidthTrend

TH1F* PrimaryVertexValidation::a_dxyPhiWidthTrend
private

Definition at line 392 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxypTCentralMeanTrend

TH1F* PrimaryVertexValidation::a_dxypTCentralMeanTrend
private

Definition at line 418 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxypTCentralWidthTrend

TH1F* PrimaryVertexValidation::a_dxypTCentralWidthTrend
private

Definition at line 419 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxypTMeanTrend

TH1F* PrimaryVertexValidation::a_dxypTMeanTrend
private

Definition at line 413 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxypTWidthTrend

TH1F* PrimaryVertexValidation::a_dxypTWidthTrend
private

Definition at line 414 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyResidualsMap

TH1F* PrimaryVertexValidation::a_dxyResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 374 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dxyVsEta

TH2F* PrimaryVertexValidation::a_dxyVsEta
private

Definition at line 485 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dxyVsPhi

TH2F* PrimaryVertexValidation::a_dxyVsPhi
private

Definition at line 479 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dxyWidthBiasMap

TH2F* PrimaryVertexValidation::a_dxyWidthBiasMap
private

Definition at line 599 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dxyWidthMap

TH2F* PrimaryVertexValidation::a_dxyWidthMap
private

Definition at line 499 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dyEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dyEtaResiduals
private

Definition at line 335 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dyPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dyPhiResiduals
private

Definition at line 334 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dzBiasResidualsMap

TH1F* PrimaryVertexValidation::a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 542 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzEtaBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dzEtaBiasResiduals
private

Definition at line 529 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzEtaMADBiasTrend

TH1F* PrimaryVertexValidation::a_dzEtaMADBiasTrend
private

Definition at line 579 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaMADTrend

TH1F* PrimaryVertexValidation::a_dzEtaMADTrend
private

Definition at line 465 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaMeanBiasTrend

TH1F* PrimaryVertexValidation::a_dzEtaMeanBiasTrend
private

Definition at line 556 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaMeanTrend

TH1F* PrimaryVertexValidation::a_dzEtaMeanTrend
private

Definition at line 398 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaMedianBiasTrend

TH1F* PrimaryVertexValidation::a_dzEtaMedianBiasTrend
private

Definition at line 578 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaMedianTrend

TH1F* PrimaryVertexValidation::a_dzEtaMedianTrend
private

Definition at line 464 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dzEtaResiduals
private

Definition at line 338 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzEtaWidthBiasTrend

TH1F* PrimaryVertexValidation::a_dzEtaWidthBiasTrend
private

Definition at line 557 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzEtaWidthTrend

TH1F* PrimaryVertexValidation::a_dzEtaWidthTrend
private

Definition at line 399 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzL1MeanMap

TH2F* PrimaryVertexValidation::a_dzL1MeanMap
private

Definition at line 508 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzL1ResidualsMap

TH1F* PrimaryVertexValidation::a_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 385 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzL1WidthMap

TH2F* PrimaryVertexValidation::a_dzL1WidthMap
private

Definition at line 514 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzladderMeanTrend

TH1F* PrimaryVertexValidation::a_dzladderMeanTrend
private

Definition at line 442 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzladderWidthTrend

TH1F* PrimaryVertexValidation::a_dzladderWidthTrend
private

Definition at line 443 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzMeanBiasMap

TH2F* PrimaryVertexValidation::a_dzMeanBiasMap
private

Definition at line 594 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzMeanMap

TH2F* PrimaryVertexValidation::a_dzMeanMap
private

Definition at line 494 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzmodZMeanTrend

TH1F* PrimaryVertexValidation::a_dzmodZMeanTrend
private

Definition at line 437 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzmodZWidthTrend

TH1F* PrimaryVertexValidation::a_dzmodZWidthTrend
private

Definition at line 438 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ a_dzPhiBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dzPhiBiasResiduals
private

Definition at line 528 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzPhiMADBiasTrend

TH1F* PrimaryVertexValidation::a_dzPhiMADBiasTrend
private

Definition at line 574 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiMADTrend

TH1F* PrimaryVertexValidation::a_dzPhiMADTrend
private

Definition at line 460 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiMeanBiasTrend

TH1F* PrimaryVertexValidation::a_dzPhiMeanBiasTrend
private

Definition at line 551 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiMeanTrend

TH1F* PrimaryVertexValidation::a_dzPhiMeanTrend
private

Definition at line 393 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiMedianBiasTrend

TH1F* PrimaryVertexValidation::a_dzPhiMedianBiasTrend
private

Definition at line 573 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiMedianTrend

TH1F* PrimaryVertexValidation::a_dzPhiMedianTrend
private

Definition at line 459 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_dzPhiResiduals
private

Definition at line 337 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzPhiWidthBiasTrend

TH1F* PrimaryVertexValidation::a_dzPhiWidthBiasTrend
private

Definition at line 552 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzPhiWidthTrend

TH1F* PrimaryVertexValidation::a_dzPhiWidthTrend
private

Definition at line 394 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzpTCentralMeanTrend

TH1F* PrimaryVertexValidation::a_dzpTCentralMeanTrend
private

Definition at line 420 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzpTCentralWidthTrend

TH1F* PrimaryVertexValidation::a_dzpTCentralWidthTrend
private

Definition at line 421 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzpTMeanTrend

TH1F* PrimaryVertexValidation::a_dzpTMeanTrend
private

Definition at line 415 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzpTWidthTrend

TH1F* PrimaryVertexValidation::a_dzpTWidthTrend
private

Definition at line 416 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzResidualsMap

TH1F* PrimaryVertexValidation::a_dzResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 375 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ a_dzVsEta

TH2F* PrimaryVertexValidation::a_dzVsEta
private

Definition at line 486 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dzVsPhi

TH2F* PrimaryVertexValidation::a_dzVsPhi
private

Definition at line 480 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_dzWidthBiasMap

TH2F* PrimaryVertexValidation::a_dzWidthBiasMap
private

Definition at line 600 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_dzWidthMap

TH2F* PrimaryVertexValidation::a_dzWidthMap
private

Definition at line 500 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ a_IP2DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_IP2DEtaResiduals
private

Definition at line 341 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_IP2DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_IP2DPhiResiduals
private

Definition at line 340 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_IP3DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_IP3DEtaResiduals
private

Definition at line 344 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_IP3DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_IP3DPhiResiduals
private

Definition at line 343 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_reszEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_reszEtaResiduals
private

Definition at line 347 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ a_reszPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::a_reszPhiResiduals
private

Definition at line 346 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ askFirstLayerHit_

bool PrimaryVertexValidation::askFirstLayerHit_
private

Definition at line 177 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ Beamdxdz_

double PrimaryVertexValidation::Beamdxdz_
private

Definition at line 246 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ Beamsigmaz_

double PrimaryVertexValidation::Beamsigmaz_
private

Definition at line 245 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ BeamWidthX_

double PrimaryVertexValidation::BeamWidthX_
private

Definition at line 247 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ BeamWidthY_

double PrimaryVertexValidation::BeamWidthY_
private

Definition at line 248 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ BSx0_

double PrimaryVertexValidation::BSx0_
private

Definition at line 242 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ BSy0_

double PrimaryVertexValidation::BSy0_
private

Definition at line 243 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ BSz0_

double PrimaryVertexValidation::BSz0_
private

Definition at line 244 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ charge_

int PrimaryVertexValidation::charge_[nMaxtracks_]
private

Definition at line 269 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ chi2_

double PrimaryVertexValidation::chi2_[nMaxtracks_]
private

Definition at line 267 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ chi2ndof_

double PrimaryVertexValidation::chi2ndof_[nMaxtracks_]
private

Definition at line 268 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ chi2normUnbiasedVertex_

float PrimaryVertexValidation::chi2normUnbiasedVertex_[nMaxtracks_]
private

Definition at line 281 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ chi2ProbUnbiasedVertex_

float PrimaryVertexValidation::chi2ProbUnbiasedVertex_[nMaxtracks_]
private

Definition at line 283 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ chi2UnbiasedVertex_

float PrimaryVertexValidation::chi2UnbiasedVertex_[nMaxtracks_]
private

Definition at line 282 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ cmToum

const int PrimaryVertexValidation::cmToum = 10000
staticprivate

Definition at line 212 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ compressionSettings_

const int PrimaryVertexValidation::compressionSettings_
private

Definition at line 162 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ d3DErrorFromMyVertex_

double PrimaryVertexValidation::d3DErrorFromMyVertex_[nMaxtracks_]
private

Definition at line 294 of file PrimaryVertexValidation.h.

Referenced by analyze(), and SetVarToZero().

◆ d3DFromMyVertex_

double PrimaryVertexValidation::d3DFromMyVertex_[nMaxtracks_]
private

Definition at line 290 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ debug_

bool PrimaryVertexValidation::debug_
private

Definition at line 195 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginRun(), getRunTime(), and PrimaryVertexValidation().

◆ doBPix_

bool PrimaryVertexValidation::doBPix_
private

Definition at line 178 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ doFPix_

bool PrimaryVertexValidation::doFPix_
private

Definition at line 179 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ DOFUnbiasedVertex_

float PrimaryVertexValidation::DOFUnbiasedVertex_[nMaxtracks_]
private

Definition at line 284 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dxy_

double PrimaryVertexValidation::dxy_[nMaxtracks_]
private

Definition at line 272 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dxyBs_

double PrimaryVertexValidation::dxyBs_[nMaxtracks_]
private

Definition at line 273 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dxyErrorFromMyVertex_

double PrimaryVertexValidation::dxyErrorFromMyVertex_[nMaxtracks_]
private

Definition at line 292 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dxyFromMyVertex_

double PrimaryVertexValidation::dxyFromMyVertex_[nMaxtracks_]
private

Definition at line 288 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dz_

double PrimaryVertexValidation::dz_[nMaxtracks_]
private

Definition at line 271 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dzBs_

double PrimaryVertexValidation::dzBs_[nMaxtracks_]
private

Definition at line 274 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dzErrorFromMyVertex_

double PrimaryVertexValidation::dzErrorFromMyVertex_[nMaxtracks_]
private

Definition at line 293 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ dzFromMyVertex_

double PrimaryVertexValidation::dzFromMyVertex_[nMaxtracks_]
private

Definition at line 289 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ eta_

double PrimaryVertexValidation::eta_[nMaxtracks_]
private

Definition at line 264 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ etaOfProbe_

double PrimaryVertexValidation::etaOfProbe_
private

Definition at line 182 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and PrimaryVertexValidation().

◆ EventNumber_

unsigned int PrimaryVertexValidation::EventNumber_
private

Definition at line 232 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ forceBeamSpotContraint_

bool PrimaryVertexValidation::forceBeamSpotContraint_
private

Definition at line 199 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ fs

edm::Service<TFileService> PrimaryVertexValidation::fs
private

Definition at line 303 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ geomTokenBR_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> PrimaryVertexValidation::geomTokenBR_
private

Definition at line 159 of file PrimaryVertexValidation.h.

Referenced by beginRun().

◆ h2_probeEtaPhi_

TH2F* PrimaryVertexValidation::h2_probeEtaPhi_
private

Definition at line 628 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h2_probeEtaPt_

TH2F* PrimaryVertexValidation::h2_probeEtaPt_
private

Definition at line 629 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h2_probeLayer1Map_

TH2F* PrimaryVertexValidation::h2_probeLayer1Map_
private

Definition at line 677 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h2_probePassingLayer1Map_

TH2F* PrimaryVertexValidation::h2_probePassingLayer1Map_
private

Definition at line 678 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_Beamsigmaz

TH1F* PrimaryVertexValidation::h_Beamsigmaz
private

Definition at line 622 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_BeamWidthX

TH1F* PrimaryVertexValidation::h_BeamWidthX
private

Definition at line 623 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_BeamWidthY

TH1F* PrimaryVertexValidation::h_BeamWidthY
private

Definition at line 624 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_BSx0

TH1F* PrimaryVertexValidation::h_BSx0
private

Definition at line 619 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_BSy0

TH1F* PrimaryVertexValidation::h_BSy0
private

Definition at line 620 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_BSz0

TH1F* PrimaryVertexValidation::h_BSz0
private

Definition at line 621 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_dxy_Central_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_Central_pT_
private

Definition at line 704 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_dxy_ladder_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_ladder_
private

Definition at line 719 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_dxy_ladderNoOverlap_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_ladderNoOverlap_
private

Definition at line 717 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and beginRun().

◆ h_dxy_ladderOverlap_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_ladderOverlap_
private

Definition at line 716 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and beginRun().

◆ h_dxy_modZ_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_modZ_
private

Definition at line 711 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_dxy_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_dxy_pT_
private

Definition at line 699 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_dz_Central_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_dz_Central_pT_
private

Definition at line 705 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_dz_ladder_

std::vector<TH1F*> PrimaryVertexValidation::h_dz_ladder_
private

Definition at line 720 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_dz_modZ_

std::vector<TH1F*> PrimaryVertexValidation::h_dz_modZ_
private

Definition at line 712 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_dz_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_dz_pT_
private

Definition at line 700 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_etaMax

TH1F* PrimaryVertexValidation::h_etaMax
private

Definition at line 314 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_fitVtxChi2_

TH1F* PrimaryVertexValidation::h_fitVtxChi2_
private

Definition at line 683 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxChi2ndf_

TH1F* PrimaryVertexValidation::h_fitVtxChi2ndf_
private

Definition at line 685 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxChi2Prob_

TH1F* PrimaryVertexValidation::h_fitVtxChi2Prob_
private

Definition at line 686 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxNdof_

TH1F* PrimaryVertexValidation::h_fitVtxNdof_
private

Definition at line 682 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxNtracks_

TH1F* PrimaryVertexValidation::h_fitVtxNtracks_
private

Definition at line 684 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxTrackAverageWeight_

TH1F* PrimaryVertexValidation::h_fitVtxTrackAverageWeight_
private

Definition at line 688 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_fitVtxTrackWeights_

TH1F* PrimaryVertexValidation::h_fitVtxTrackWeights_
private

Definition at line 687 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_lumiFromConfig

TH1F* PrimaryVertexValidation::h_lumiFromConfig
private

Definition at line 610 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ h_nbins

TH1F* PrimaryVertexValidation::h_nbins
private

Definition at line 315 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_nClus

TH1F* PrimaryVertexValidation::h_nClus
private

Definition at line 607 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_nLadders

TH1F* PrimaryVertexValidation::h_nLadders
private

Definition at line 316 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_nModZ

TH1F* PrimaryVertexValidation::h_nModZ
private

Definition at line 317 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_nOfflineVertices

TH1F* PrimaryVertexValidation::h_nOfflineVertices
private

Definition at line 608 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_norm_dxy_Central_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dxy_Central_pT_
private

Definition at line 706 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_norm_dxy_ladder_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dxy_ladder_
private

Definition at line 721 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_norm_dxy_modZ_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dxy_modZ_
private

Definition at line 713 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_norm_dxy_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dxy_pT_
private

Definition at line 701 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_norm_dz_Central_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dz_Central_pT_
private

Definition at line 707 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_norm_dz_ladder_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dz_ladder_
private

Definition at line 722 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and endJob().

◆ h_norm_dz_modZ_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dz_modZ_
private

Definition at line 714 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_norm_dz_pT_

std::vector<TH1F*> PrimaryVertexValidation::h_norm_dz_pT_
private

Definition at line 702 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_nTracks

TH1F* PrimaryVertexValidation::h_nTracks
private

Definition at line 606 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeCharge_

TH1F* PrimaryVertexValidation::h_probeCharge_
private

Definition at line 638 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeChi2_

TH1F* PrimaryVertexValidation::h_probeChi2_
private

Definition at line 636 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probed0RefitV_

TH1F* PrimaryVertexValidation::h_probed0RefitV_
private

Definition at line 647 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probed3DRefitV_

TH1F* PrimaryVertexValidation::h_probed3DRefitV_
private

Definition at line 651 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probedxyRecoV_

TH1F* PrimaryVertexValidation::h_probedxyRecoV_
private

Definition at line 642 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probedxyRefitV_

TH1F* PrimaryVertexValidation::h_probedxyRefitV_
private

Definition at line 645 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probedzRecoV_

TH1F* PrimaryVertexValidation::h_probedzRecoV_
private

Definition at line 641 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probedzRefitV_

TH1F* PrimaryVertexValidation::h_probedzRefitV_
private

Definition at line 644 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeEta_

TH1F* PrimaryVertexValidation::h_probeEta_
private

Definition at line 634 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHasBPixL1Overlap_

TH1I* PrimaryVertexValidation::h_probeHasBPixL1Overlap_
private

Definition at line 674 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHits1D_

TH1F* PrimaryVertexValidation::h_probeHits1D_
private

Definition at line 663 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHits2D_

TH1F* PrimaryVertexValidation::h_probeHits2D_
private

Definition at line 664 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHits_

TH1F* PrimaryVertexValidation::h_probeHits_
private

Definition at line 662 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInBPIX_

TH1F* PrimaryVertexValidation::h_probeHitsInBPIX_
private

Definition at line 669 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInFPIX_

TH1F* PrimaryVertexValidation::h_probeHitsInFPIX_
private

Definition at line 670 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInTEC_

TH1F* PrimaryVertexValidation::h_probeHitsInTEC_
private

Definition at line 668 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInTIB_

TH1F* PrimaryVertexValidation::h_probeHitsInTIB_
private

Definition at line 665 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInTID_

TH1F* PrimaryVertexValidation::h_probeHitsInTID_
private

Definition at line 667 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeHitsInTOB_

TH1F* PrimaryVertexValidation::h_probeHitsInTOB_
private

Definition at line 666 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeL1ClusterProb_

TH1F* PrimaryVertexValidation::h_probeL1ClusterProb_
private

Definition at line 676 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeL1Ladder_

TH1F* PrimaryVertexValidation::h_probeL1Ladder_
private

Definition at line 672 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_probeL1Module_

TH1F* PrimaryVertexValidation::h_probeL1Module_
private

Definition at line 673 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ h_probeNormChi2_

TH1F* PrimaryVertexValidation::h_probeNormChi2_
private

Definition at line 637 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeP_

TH1F* PrimaryVertexValidation::h_probeP_
private

Definition at line 631 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probePhi_

TH1F* PrimaryVertexValidation::h_probePhi_
private

Definition at line 635 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probePt_

TH1F* PrimaryVertexValidation::h_probePt_
private

Definition at line 632 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probePtRebin_

TH1F* PrimaryVertexValidation::h_probePtRebin_
private

Definition at line 633 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeQoverP_

TH1F* PrimaryVertexValidation::h_probeQoverP_
private

Definition at line 639 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRecoVSigXY_

TH1F* PrimaryVertexValidation::h_probeRecoVSigXY_
private

Definition at line 655 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRecoVSigZ_

TH1F* PrimaryVertexValidation::h_probeRecoVSigZ_
private

Definition at line 654 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRefitVLogSig3D_

TH1F* PrimaryVertexValidation::h_probeRefitVLogSig3D_
private

Definition at line 659 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRefitVSig3D_

TH1F* PrimaryVertexValidation::h_probeRefitVSig3D_
private

Definition at line 658 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRefitVSigResZ_

TH1F* PrimaryVertexValidation::h_probeRefitVSigResZ_
private

Definition at line 660 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRefitVSigXY_

TH1F* PrimaryVertexValidation::h_probeRefitVSigXY_
private

Definition at line 657 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probeRefitVSigZ_

TH1F* PrimaryVertexValidation::h_probeRefitVSigZ_
private

Definition at line 656 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probereszRefitV_

TH1F* PrimaryVertexValidation::h_probereszRefitV_
private

Definition at line 652 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probesignIP2DRefitV_

TH1F* PrimaryVertexValidation::h_probesignIP2DRefitV_
private

Definition at line 650 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_probez0RefitV_

TH1F* PrimaryVertexValidation::h_probez0RefitV_
private

Definition at line 648 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_pTinfo

TH1F* PrimaryVertexValidation::h_pTinfo
private

Definition at line 318 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_recoVtxChi2ndf_

TH1F* PrimaryVertexValidation::h_recoVtxChi2ndf_
private

Definition at line 691 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_recoVtxChi2Prob_

TH1F* PrimaryVertexValidation::h_recoVtxChi2Prob_
private

Definition at line 692 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_recoVtxNtracks_

TH1F* PrimaryVertexValidation::h_recoVtxNtracks_
private

Definition at line 690 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_recoVtxSumPt_

TH1F* PrimaryVertexValidation::h_recoVtxSumPt_
private

Definition at line 693 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_runEndTimes

TH1I* PrimaryVertexValidation::h_runEndTimes
private

Definition at line 322 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ h_runFromConfig

TH1I* PrimaryVertexValidation::h_runFromConfig
private

Definition at line 611 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ h_runFromEvent

TH1I* PrimaryVertexValidation::h_runFromEvent
private

Definition at line 612 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_runNumber

TH1F* PrimaryVertexValidation::h_runNumber
private

Definition at line 609 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and beginRun().

◆ h_runStartTimes

TH1I* PrimaryVertexValidation::h_runStartTimes
private

Definition at line 321 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ h_xErrOfflineVertex

TH1F* PrimaryVertexValidation::h_xErrOfflineVertex
private

Definition at line 616 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_xOfflineVertex

TH1F* PrimaryVertexValidation::h_xOfflineVertex
private

Definition at line 613 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_yErrOfflineVertex

TH1F* PrimaryVertexValidation::h_yErrOfflineVertex
private

Definition at line 617 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_yOfflineVertex

TH1F* PrimaryVertexValidation::h_yOfflineVertex
private

Definition at line 614 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_zErrOfflineVertex

TH1F* PrimaryVertexValidation::h_zErrOfflineVertex
private

Definition at line 618 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ h_zOfflineVertex

TH1F* PrimaryVertexValidation::h_zOfflineVertex
private

Definition at line 615 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ hasRecVertex_

int PrimaryVertexValidation::hasRecVertex_[nMaxtracks_]
private

Definition at line 300 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ hDA

std::map<std::string, TH1*> PrimaryVertexValidation::hDA
private

Definition at line 695 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ intLumi_

double PrimaryVertexValidation::intLumi_
private

Definition at line 174 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ IP3DsigFromMyVertex_

double PrimaryVertexValidation::IP3DsigFromMyVertex_[nMaxtracks_]
private

Definition at line 298 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ IPLsigFromMyVertex_

double PrimaryVertexValidation::IPLsigFromMyVertex_[nMaxtracks_]
private

Definition at line 297 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ IPTsigFromMyVertex_

double PrimaryVertexValidation::IPTsigFromMyVertex_[nMaxtracks_]
private

Definition at line 296 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ isGoodTrack_

int PrimaryVertexValidation::isGoodTrack_[nMaxtracks_]
private

Definition at line 301 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ isHighPurity_

int PrimaryVertexValidation::isHighPurity_[nMaxtracks_]
private

Definition at line 263 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ lightNtupleSwitch_

bool PrimaryVertexValidation::lightNtupleSwitch_
private

Definition at line 164 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ LuminosityBlockNumber_

unsigned int PrimaryVertexValidation::LuminosityBlockNumber_
private

Definition at line 233 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ MADTrendsDir

TFileDirectory PrimaryVertexValidation::MADTrendsDir
private

Definition at line 308 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ magFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> PrimaryVertexValidation::magFieldToken_
private

Definition at line 154 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ maxPt_

const double PrimaryVertexValidation::maxPt_
private

Definition at line 191 of file PrimaryVertexValidation.h.

Referenced by beginRun(), and PrimaryVertexValidation().

◆ Mean2DMapsDir

TFileDirectory PrimaryVertexValidation::Mean2DMapsDir
private

Definition at line 310 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ MeanTrendsDir

TFileDirectory PrimaryVertexValidation::MeanTrendsDir
private

Definition at line 305 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ MedianTrendsDir

TFileDirectory PrimaryVertexValidation::MedianTrendsDir
private

Definition at line 307 of file PrimaryVertexValidation.h.

Referenced by beginJob().

◆ minPt_

const double PrimaryVertexValidation::minPt_
private

Definition at line 190 of file PrimaryVertexValidation.h.

Referenced by beginRun(), and PrimaryVertexValidation().

◆ mypT_bins_

std::array<float, nPtBins_ + 1> PrimaryVertexValidation::mypT_bins_
private

Definition at line 224 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and PrimaryVertexValidation().

◆ n_d3DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_d3DEtaResiduals
private

Definition at line 370 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_d3DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_d3DPhiResiduals
private

Definition at line 369 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_d3DResidualsMap

TH1F* PrimaryVertexValidation::n_d3DResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 380 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_dxyBiasResidualsMap

TH1F* PrimaryVertexValidation::n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 544 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyEtaBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dxyEtaBiasResiduals
private

Definition at line 534 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyEtaMADBiasTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMADBiasTrend
private

Definition at line 587 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaMADTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMADTrend
private

Definition at line 473 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaMeanBiasTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMeanBiasTrend
private

Definition at line 564 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaMeanTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMeanTrend
private

Definition at line 406 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaMedianBiasTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMedianBiasTrend
private

Definition at line 586 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaMedianTrend

TH1F* PrimaryVertexValidation::n_dxyEtaMedianTrend
private

Definition at line 472 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dxyEtaResiduals
private

Definition at line 355 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyEtaWidthBiasTrend

TH1F* PrimaryVertexValidation::n_dxyEtaWidthBiasTrend
private

Definition at line 565 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyEtaWidthTrend

TH1F* PrimaryVertexValidation::n_dxyEtaWidthTrend
private

Definition at line 407 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyL1MeanMap

TH2F* PrimaryVertexValidation::n_dxyL1MeanMap
private

Definition at line 510 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxyL1ResidualsMap

TH1F* PrimaryVertexValidation::n_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 386 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyL1WidthMap

TH2F* PrimaryVertexValidation::n_dxyL1WidthMap
private

Definition at line 516 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxyladderMeanTrend

TH1F* PrimaryVertexValidation::n_dxyladderMeanTrend
private

Definition at line 450 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxyladderWidthTrend

TH1F* PrimaryVertexValidation::n_dxyladderWidthTrend
private

Definition at line 451 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxyMeanBiasMap

TH2F* PrimaryVertexValidation::n_dxyMeanBiasMap
private

Definition at line 596 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyMeanMap

TH2F* PrimaryVertexValidation::n_dxyMeanMap
private

Definition at line 496 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxymodZMeanTrend

TH1F* PrimaryVertexValidation::n_dxymodZMeanTrend
private

Definition at line 445 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxymodZWidthTrend

TH1F* PrimaryVertexValidation::n_dxymodZWidthTrend
private

Definition at line 446 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dxyPhiBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dxyPhiBiasResiduals
private

Definition at line 533 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyPhiMADBiasTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMADBiasTrend
private

Definition at line 582 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiMADTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMADTrend
private

Definition at line 468 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiMeanBiasTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMeanBiasTrend
private

Definition at line 559 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiMeanTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMeanTrend
private

Definition at line 401 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiMedianBiasTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMedianBiasTrend
private

Definition at line 581 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiMedianTrend

TH1F* PrimaryVertexValidation::n_dxyPhiMedianTrend
private

Definition at line 467 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dxyPhiResiduals
private

Definition at line 354 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyPhiWidthBiasTrend

TH1F* PrimaryVertexValidation::n_dxyPhiWidthBiasTrend
private

Definition at line 560 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyPhiWidthTrend

TH1F* PrimaryVertexValidation::n_dxyPhiWidthTrend
private

Definition at line 402 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxypTCentralMeanTrend

TH1F* PrimaryVertexValidation::n_dxypTCentralMeanTrend
private

Definition at line 428 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxypTCentralWidthTrend

TH1F* PrimaryVertexValidation::n_dxypTCentralWidthTrend
private

Definition at line 429 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxypTMeanTrend

TH1F* PrimaryVertexValidation::n_dxypTMeanTrend
private

Definition at line 423 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxypTWidthTrend

TH1F* PrimaryVertexValidation::n_dxypTWidthTrend
private

Definition at line 424 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyResidualsMap

TH1F* PrimaryVertexValidation::n_dxyResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 378 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dxyVsEta

TH2F* PrimaryVertexValidation::n_dxyVsEta
private

Definition at line 488 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_dxyVsPhi

TH2F* PrimaryVertexValidation::n_dxyVsPhi
private

Definition at line 482 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_dxyWidthBiasMap

TH2F* PrimaryVertexValidation::n_dxyWidthBiasMap
private

Definition at line 602 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dxyWidthMap

TH2F* PrimaryVertexValidation::n_dxyWidthMap
private

Definition at line 502 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzBiasResidualsMap

TH1F* PrimaryVertexValidation::n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 545 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzEtaBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dzEtaBiasResiduals
private

Definition at line 537 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzEtaMADBiasTrend

TH1F* PrimaryVertexValidation::n_dzEtaMADBiasTrend
private

Definition at line 589 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaMADTrend

TH1F* PrimaryVertexValidation::n_dzEtaMADTrend
private

Definition at line 475 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaMeanBiasTrend

TH1F* PrimaryVertexValidation::n_dzEtaMeanBiasTrend
private

Definition at line 566 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaMeanTrend

TH1F* PrimaryVertexValidation::n_dzEtaMeanTrend
private

Definition at line 408 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaMedianBiasTrend

TH1F* PrimaryVertexValidation::n_dzEtaMedianBiasTrend
private

Definition at line 588 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaMedianTrend

TH1F* PrimaryVertexValidation::n_dzEtaMedianTrend
private

Definition at line 474 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dzEtaResiduals
private

Definition at line 358 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzEtaWidthBiasTrend

TH1F* PrimaryVertexValidation::n_dzEtaWidthBiasTrend
private

Definition at line 567 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzEtaWidthTrend

TH1F* PrimaryVertexValidation::n_dzEtaWidthTrend
private

Definition at line 409 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzL1MeanMap

TH2F* PrimaryVertexValidation::n_dzL1MeanMap
private

Definition at line 511 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzL1ResidualsMap

TH1F* PrimaryVertexValidation::n_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 387 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzL1WidthMap

TH2F* PrimaryVertexValidation::n_dzL1WidthMap
private

Definition at line 517 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzladderMeanTrend

TH1F* PrimaryVertexValidation::n_dzladderMeanTrend
private

Definition at line 452 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzladderWidthTrend

TH1F* PrimaryVertexValidation::n_dzladderWidthTrend
private

Definition at line 453 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzMeanBiasMap

TH2F* PrimaryVertexValidation::n_dzMeanBiasMap
private

Definition at line 597 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzMeanMap

TH2F* PrimaryVertexValidation::n_dzMeanMap
private

Definition at line 497 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzmodZMeanTrend

TH1F* PrimaryVertexValidation::n_dzmodZMeanTrend
private

Definition at line 447 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzmodZWidthTrend

TH1F* PrimaryVertexValidation::n_dzmodZWidthTrend
private

Definition at line 448 of file PrimaryVertexValidation.h.

Referenced by endJob().

◆ n_dzPhiBiasResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dzPhiBiasResiduals
private

Definition at line 536 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzPhiMADBiasTrend

TH1F* PrimaryVertexValidation::n_dzPhiMADBiasTrend
private

Definition at line 584 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiMADTrend

TH1F* PrimaryVertexValidation::n_dzPhiMADTrend
private

Definition at line 470 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiMeanBiasTrend

TH1F* PrimaryVertexValidation::n_dzPhiMeanBiasTrend
private

Definition at line 561 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiMeanTrend

TH1F* PrimaryVertexValidation::n_dzPhiMeanTrend
private

Definition at line 403 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiMedianBiasTrend

TH1F* PrimaryVertexValidation::n_dzPhiMedianBiasTrend
private

Definition at line 583 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiMedianTrend

TH1F* PrimaryVertexValidation::n_dzPhiMedianTrend
private

Definition at line 469 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_dzPhiResiduals
private

Definition at line 357 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzPhiWidthBiasTrend

TH1F* PrimaryVertexValidation::n_dzPhiWidthBiasTrend
private

Definition at line 562 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzPhiWidthTrend

TH1F* PrimaryVertexValidation::n_dzPhiWidthTrend
private

Definition at line 404 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzpTCentralMeanTrend

TH1F* PrimaryVertexValidation::n_dzpTCentralMeanTrend
private

Definition at line 430 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzpTCentralWidthTrend

TH1F* PrimaryVertexValidation::n_dzpTCentralWidthTrend
private

Definition at line 431 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzpTMeanTrend

TH1F* PrimaryVertexValidation::n_dzpTMeanTrend
private

Definition at line 425 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzpTWidthTrend

TH1F* PrimaryVertexValidation::n_dzpTWidthTrend
private

Definition at line 426 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzResidualsMap

TH1F* PrimaryVertexValidation::n_dzResidualsMap[nMaxBins_][nMaxBins_]
private

Definition at line 379 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ n_dzVsEta

TH2F* PrimaryVertexValidation::n_dzVsEta
private

Definition at line 489 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_dzVsPhi

TH2F* PrimaryVertexValidation::n_dzVsPhi
private

Definition at line 483 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_dzWidthBiasMap

TH2F* PrimaryVertexValidation::n_dzWidthBiasMap
private

Definition at line 603 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_dzWidthMap

TH2F* PrimaryVertexValidation::n_dzWidthMap
private

Definition at line 503 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ n_IP2DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_IP2DEtaResiduals
private

Definition at line 361 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_IP2DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_IP2DPhiResiduals
private

Definition at line 360 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_IP3DEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_IP3DEtaResiduals
private

Definition at line 364 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_IP3DPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_IP3DPhiResiduals
private

Definition at line 363 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_reszEtaResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_reszEtaResiduals
private

Definition at line 367 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ n_reszPhiResiduals

std::vector<TH1F*> PrimaryVertexValidation::n_reszPhiResiduals
private

Definition at line 366 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ nBins_

int PrimaryVertexValidation::nBins_
private

◆ nClus_

int PrimaryVertexValidation::nClus_
private

Definition at line 229 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ Nevt_

int PrimaryVertexValidation::Nevt_
private

Definition at line 143 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ nhits1D_

int PrimaryVertexValidation::nhits1D_[nMaxtracks_]
private

Definition at line 255 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhits2D_

int PrimaryVertexValidation::nhits2D_[nMaxtracks_]
private

Definition at line 256 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhits_

int PrimaryVertexValidation::nhits_[nMaxtracks_]
private

Definition at line 254 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhitsBPIX_

int PrimaryVertexValidation::nhitsBPIX_[nMaxtracks_]
private

Definition at line 257 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhitsFPIX_

int PrimaryVertexValidation::nhitsFPIX_[nMaxtracks_]
private

Definition at line 258 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nHitsOfProbe_

double PrimaryVertexValidation::nHitsOfProbe_
private

Definition at line 183 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ nhitsTEC_

int PrimaryVertexValidation::nhitsTEC_[nMaxtracks_]
private

Definition at line 262 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhitsTIB_

int PrimaryVertexValidation::nhitsTIB_[nMaxtracks_]
private

Definition at line 259 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhitsTID_

int PrimaryVertexValidation::nhitsTID_[nMaxtracks_]
private

Definition at line 260 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nhitsTOB_

int PrimaryVertexValidation::nhitsTOB_[nMaxtracks_]
private

Definition at line 261 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nLadders_

unsigned int PrimaryVertexValidation::nLadders_ = 20
private

Definition at line 216 of file PrimaryVertexValidation.h.

Referenced by beginJob(), beginRun(), and endJob().

◆ nMaxBins_

const int PrimaryVertexValidation::nMaxBins_ = 100
staticprivate

Definition at line 149 of file PrimaryVertexValidation.h.

◆ nMaxtracks_

const int PrimaryVertexValidation::nMaxtracks_ = 10000
staticprivate

Definition at line 211 of file PrimaryVertexValidation.h.

Referenced by analyze(), and SetVarToZero().

◆ nModZ_

unsigned int PrimaryVertexValidation::nModZ_ = 9
private

Definition at line 217 of file PrimaryVertexValidation.h.

Referenced by beginJob(), beginRun(), and endJob().

◆ nOfflineVertices_

int PrimaryVertexValidation::nOfflineVertices_
private

Definition at line 230 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nPtBins_

const int PrimaryVertexValidation::nPtBins_ = 48
staticprivate

Definition at line 213 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ nTracks_

int PrimaryVertexValidation::nTracks_
private

Definition at line 227 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ nTracksPerClus_

int PrimaryVertexValidation::nTracksPerClus_
private

Definition at line 228 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ p_

double PrimaryVertexValidation::p_[nMaxtracks_]
private

Definition at line 253 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ phase_

PVValHelper::detectorPhase PrimaryVertexValidation::phase_
private

Definition at line 184 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginRun().

◆ phi_

double PrimaryVertexValidation::phi_[nMaxtracks_]
private

Definition at line 266 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ pOfProbe_

double PrimaryVertexValidation::pOfProbe_
private

Definition at line 181 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ pt_

double PrimaryVertexValidation::pt_[nMaxtracks_]
private

Definition at line 252 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ ptOfProbe_

double PrimaryVertexValidation::ptOfProbe_
private

Definition at line 180 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginRun(), and isBFieldConsistentWithMode().

◆ qoverp_

double PrimaryVertexValidation::qoverp_[nMaxtracks_]
private

Definition at line 270 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ rootTree_

TTree* PrimaryVertexValidation::rootTree_
private

Definition at line 205 of file PrimaryVertexValidation.h.

Referenced by analyze(), and beginJob().

◆ runControl_

bool PrimaryVertexValidation::runControl_
private

Definition at line 196 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ runControlNumbers_

std::vector<unsigned int> PrimaryVertexValidation::runControlNumbers_
private

Definition at line 193 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and PrimaryVertexValidation().

◆ runInfoTokenBR_

const edm::ESGetToken<RunInfo, RunInfoRcd> PrimaryVertexValidation::runInfoTokenBR_
private

Definition at line 160 of file PrimaryVertexValidation.h.

Referenced by getRunTime(), and isBFieldConsistentWithMode().

◆ RunNumber_

unsigned int PrimaryVertexValidation::RunNumber_
private

Definition at line 231 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), beginRun(), and SetVarToZero().

◆ runNumbersTimesLog_

std::map<unsigned int, std::pair<long long, long long> > PrimaryVertexValidation::runNumbersTimesLog_
private

Definition at line 320 of file PrimaryVertexValidation.h.

Referenced by beginRun(), and endJob().

◆ storeNtuple_

bool PrimaryVertexValidation::storeNtuple_
private

Definition at line 163 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ sumOfWeightsUnbiasedVertex_

float PrimaryVertexValidation::sumOfWeightsUnbiasedVertex_[nMaxtracks_]
private

Definition at line 285 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ theBeamspotToken_

edm::EDGetTokenT<reco::BeamSpot> PrimaryVertexValidation::theBeamspotToken_
private

Definition at line 203 of file PrimaryVertexValidation.h.

Referenced by analyze(), and PrimaryVertexValidation().

◆ theDetails_

PVValHelper::histodetails PrimaryVertexValidation::theDetails_
private

◆ theta_

double PrimaryVertexValidation::theta_[nMaxtracks_]
private

Definition at line 265 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ theTrackClusterizer_

std::unique_ptr<TrackClusterizerInZ> PrimaryVertexValidation::theTrackClusterizer_
private

Definition at line 146 of file PrimaryVertexValidation.h.

Referenced by analyze(), and PrimaryVertexValidation().

◆ theTrackCollectionToken_

edm::EDGetTokenT<reco::TrackCollection> PrimaryVertexValidation::theTrackCollectionToken_
private

Definition at line 201 of file PrimaryVertexValidation.h.

Referenced by analyze(), and PrimaryVertexValidation().

◆ theTrackFilter_

std::unique_ptr<TrackFilterForPVFindingBase> PrimaryVertexValidation::theTrackFilter_
private

Definition at line 145 of file PrimaryVertexValidation.h.

Referenced by analyze(), and PrimaryVertexValidation().

◆ theVertexCollectionToken_

edm::EDGetTokenT<reco::VertexCollection> PrimaryVertexValidation::theVertexCollectionToken_
private

Definition at line 202 of file PrimaryVertexValidation.h.

Referenced by analyze(), and PrimaryVertexValidation().

◆ topoToken_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> PrimaryVertexValidation::topoToken_
private

Definition at line 157 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ topoTokenBR_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> PrimaryVertexValidation::topoTokenBR_
private

Definition at line 158 of file PrimaryVertexValidation.h.

Referenced by beginRun().

◆ trackingGeomToken_

const edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> PrimaryVertexValidation::trackingGeomToken_
private

Definition at line 155 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ tracksUsedForVertexing_

int PrimaryVertexValidation::tracksUsedForVertexing_[nMaxtracks_]
private

Definition at line 286 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ ttkToken_

const edm::ESGetToken<TransientTrackBuilder, TransientTrackRecord> PrimaryVertexValidation::ttkToken_
private

Definition at line 156 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ useTracksFromRecoVtx_

bool PrimaryVertexValidation::useTracksFromRecoVtx_
private

Definition at line 165 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and endJob().

◆ vertexZMax_

double PrimaryVertexValidation::vertexZMax_
private

Definition at line 171 of file PrimaryVertexValidation.h.

Referenced by analyze().

◆ Width2DMapsDir

TFileDirectory PrimaryVertexValidation::Width2DMapsDir
private

Definition at line 311 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ WidthTrendsDir

TFileDirectory PrimaryVertexValidation::WidthTrendsDir
private

Definition at line 306 of file PrimaryVertexValidation.h.

Referenced by beginJob(), and endJob().

◆ wxy2_

double PrimaryVertexValidation::wxy2_
private

Definition at line 249 of file PrimaryVertexValidation.h.

Referenced by analyze(), fillTrackHistos(), and SetVarToZero().

◆ xErrOfflineVertex_

double PrimaryVertexValidation::xErrOfflineVertex_
private

Definition at line 238 of file PrimaryVertexValidation.h.

Referenced by analyze(), and SetVarToZero().

◆ xOfflineVertex_

double PrimaryVertexValidation::xOfflineVertex_
private

Definition at line 234 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ xPCA_

double PrimaryVertexValidation::xPCA_[nMaxtracks_]
private

Definition at line 275 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ xUnbiasedVertex_

double PrimaryVertexValidation::xUnbiasedVertex_[nMaxtracks_]
private

Definition at line 278 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ yErrOfflineVertex_

double PrimaryVertexValidation::yErrOfflineVertex_
private

Definition at line 239 of file PrimaryVertexValidation.h.

Referenced by analyze(), and SetVarToZero().

◆ yOfflineVertex_

double PrimaryVertexValidation::yOfflineVertex_
private

Definition at line 235 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ yPCA_

double PrimaryVertexValidation::yPCA_[nMaxtracks_]
private

Definition at line 276 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ yUnbiasedVertex_

double PrimaryVertexValidation::yUnbiasedVertex_[nMaxtracks_]
private

Definition at line 279 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ zErrOfflineVertex_

double PrimaryVertexValidation::zErrOfflineVertex_
private

Definition at line 240 of file PrimaryVertexValidation.h.

Referenced by analyze(), and SetVarToZero().

◆ zOfflineVertex_

double PrimaryVertexValidation::zOfflineVertex_
private

Definition at line 236 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ zPCA_

double PrimaryVertexValidation::zPCA_[nMaxtracks_]
private

Definition at line 277 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().

◆ zUnbiasedVertex_

double PrimaryVertexValidation::zUnbiasedVertex_[nMaxtracks_]
private

Definition at line 280 of file PrimaryVertexValidation.h.

Referenced by analyze(), beginJob(), and SetVarToZero().