#include <PVFitter.h>
Public Member Functions | |
void | compressStore () |
reduce size of primary vertex cache by increasing quality limit More... | |
void | dumpTxtFile () |
void | FitPerBunchCrossing () |
reco::BeamSpot | getBeamSpot () |
std::map< int, reco::BeamSpot > | getBeamSpotMap () |
int * | getFitLSRange () |
int | getNPVs () |
const std::map< int, int > & | getNPVsperBX () |
std::vector< BeamSpotFitPVData > | getpvStore () |
time_t * | getRefTime () |
double | getWidthX () |
double | getWidthXerr () |
double | getWidthY () |
double | getWidthYerr () |
double | getWidthZ () |
double | getWidthZerr () |
void | initialize (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iColl) |
bool | IsFitPerBunchCrossing () |
PVFitter () | |
PVFitter (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iColl) | |
PVFitter (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iColl) | |
double | pvQuality (const reco::Vertex &pv) const |
vertex quality measure More... | |
double | pvQuality (const BeamSpotFitPVData &pv) const |
vertex quality measure More... | |
void | readEvent (const edm::Event &iEvent) |
void | resetAll () |
void | resetLSRange () |
void | resetRefTime () |
void | resizepvStore (unsigned int rmSize) |
bool | runBXFitter () |
bool | runFitter () |
void | setFitLSRange (int ls0, int ls1) |
void | setRefTime (std::time_t t0, std::time_t t1) |
void | setTree (TTree *tree) |
virtual | ~PVFitter () |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &) |
Private Attributes | |
std::map< int, std::vector< BeamSpotFitPVData > > | bxMap_ |
bool | debug_ |
bool | do3DFit_ |
double | dynamicQualityCut_ |
double | errorScale_ |
std::ofstream | fasciiFile |
reco::BeamSpot | fbeamspot |
int | fbeginLumiOfFit |
std::map< int, reco::BeamSpot > | fbspotMap |
int | fendLumiOfFit |
bool | fFitPerBunchCrossing |
std::time_t | freftime [2] |
TTree * | ftree_ |
double | fwidthX |
double | fwidthXerr |
double | fwidthY |
double | fwidthYerr |
double | fwidthZ |
double | fwidthZerr |
std::unique_ptr< TH2F > | hPVx |
std::unique_ptr< TH2F > | hPVy |
unsigned int | maxNrVertices_ |
double | maxVtxNormChi2_ |
double | maxVtxR_ |
double | maxVtxZ_ |
unsigned int | minNrVertices_ |
double | minSumPt_ |
double | minVtxNdf_ |
unsigned int | minVtxTracks_ |
double | minVtxWgt_ |
std::map< int, int > | npvsmap_ |
std::string | outputTxt_ |
std::vector< double > | pvQualities_ |
std::vector< BeamSpotFitPVData > | pvStore_ |
double | sigmaCut_ |
BeamSpotTreeData | theBeamSpotTreeData_ |
bool | useOnlyFirstPV_ |
edm::EDGetTokenT< reco::VertexCollection > | vertexToken_ |
Definition at line 45 of file PVFitter.h.
|
inline |
Definition at line 47 of file PVFitter.h.
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iColl | ||
) |
Definition at line 48 of file PVFitter.cc.
References initialize().
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iColl | ||
) |
Definition at line 52 of file PVFitter.cc.
References initialize().
|
virtual |
Definition at line 95 of file PVFitter.cc.
void PVFitter::compressStore | ( | ) |
reduce size of primary vertex cache by increasing quality limit
Definition at line 487 of file PVFitter.cc.
References dynamicQualityCut_, mps_fire::i, pvQualities_, pvQuality(), pvStore_, and jetUpdater_cfi::sort.
Referenced by readEvent().
void PVFitter::dumpTxtFile | ( | ) |
Definition at line 485 of file PVFitter.cc.
|
static |
Definition at line 97 of file PVFitter.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and HLT_2022v11_cff::InputTag.
Referenced by BeamSpotAnalyzer::fillDescriptions(), and AlcaBeamMonitor::fillDescriptions().
|
inline |
|
inline |
Definition at line 94 of file PVFitter.h.
References fbeamspot.
Referenced by BeamFitter::runPVandTrkFitter().
|
inline |
Definition at line 95 of file PVFitter.h.
References fbspotMap.
Referenced by BeamFitter::runPVandTrkFitter().
|
inline |
Definition at line 97 of file PVFitter.h.
References fbeginLumiOfFit, fendLumiOfFit, and createJobs::tmp.
|
inline |
Definition at line 120 of file PVFitter.h.
References pvStore_.
Referenced by BeamFitter::getNPVs().
|
inline |
Definition at line 122 of file PVFitter.h.
References bxMap_, genParticles_cff::map, npvsmap_, and findQualityFiles::size.
Referenced by BeamFitter::getNPVsperBX().
|
inline |
Definition at line 65 of file PVFitter.h.
References pvStore_.
Referenced by BeamFitter::getPVvectorSize().
|
inline |
|
inline |
|
inline |
Definition at line 61 of file PVFitter.h.
References fwidthXerr.
Referenced by BeamFitter::runPVandTrkFitter().
|
inline |
|
inline |
|
inline |
|
inline |
void PVFitter::initialize | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iColl | ||
) |
Definition at line 56 of file PVFitter.cc.
References edm::ConsumesCollector::consumes(), debug_, do3DFit_, dynamicQualityCut_, errorScale_, fFitPerBunchCrossing, edm::ParameterSet::getParameter(), hPVx, hPVy, maxNrVertices_, maxVtxNormChi2_, maxVtxR_, maxVtxZ_, minNrVertices_, minSumPt_, minVtxNdf_, minVtxTracks_, minVtxWgt_, sigmaCut_, useOnlyFirstPV_, and vertexToken_.
Referenced by PVFitter().
|
inline |
Definition at line 96 of file PVFitter.h.
References fFitPerBunchCrossing.
Referenced by BeamFitter::dumpTxtFile(), and BeamFitter::runPVandTrkFitter().
double PVFitter::pvQuality | ( | const reco::Vertex & | pv | ) | const |
vertex quality measure
Definition at line 518 of file PVFitter.cc.
References MetAnalyzer::pv().
Referenced by compressStore(), and readEvent().
double PVFitter::pvQuality | ( | const BeamSpotFitPVData & | pv | ) | const |
void PVFitter::readEvent | ( | const edm::Event & | iEvent | ) |
Definition at line 120 of file PVFitter.cc.
References BeamSpotFitPVData::bunchCrossing, BeamSpotTreeData::bunchCrossing(), simKBmtfDigis_cfi::bx, bxMap_, compressStore(), dynamicQualityCut_, fFitPerBunchCrossing, ftree_, hPVx, hPVy, iEvent, BeamSpotTreeData::lumi(), maxNrVertices_, minSumPt_, minVtxNdf_, minVtxTracks_, minVtxWgt_, BeamSpotFitPVData::posCorr, BeamSpotFitPVData::posError, BeamSpotFitPVData::position, DiDispStaMuonMonitor_cfi::pt, MetAnalyzer::pv(), L1TEGammaOffline_cfi::PVCollection, BeamSpotTreeData::pvData(), pvQuality(), pvStore_, BeamSpotTreeData::run(), TtFullHadEvtBuilder_cfi::sumPt, theBeamSpotTreeData_, useOnlyFirstPV_, and vertexToken_.
Referenced by BeamFitter::readEvent().
|
inline |
Definition at line 83 of file PVFitter.h.
References align::BeamSpot, bxMap_, dynamicQualityCut_, fbeamspot, fbspotMap, hPVx, hPVy, pvStore_, resetLSRange(), and resetRefTime().
Referenced by BeamFitter::BeamFitter(), and BeamFitter::resetPVFitter().
|
inline |
Definition at line 70 of file PVFitter.h.
References fbeginLumiOfFit, and fendLumiOfFit.
Referenced by resetAll().
|
inline |
|
inline |
Definition at line 112 of file PVFitter.h.
References pvStore_.
Referenced by BeamFitter::resizePVvector().
bool PVFitter::runBXFitter | ( | ) |
Definition at line 211 of file PVFitter.cc.
References align::BeamSpot, bxMap_, errorScale_, fbeamspot, fbspotMap, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, genParticles_cff::map, makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), reco::BeamSpot::setType(), sigmaCut_, findQualityFiles::size, and reco::BeamSpot::Tracker.
Referenced by BeamFitter::runPVandTrkFitter().
bool PVFitter::runFitter | ( | ) |
Definition at line 330 of file PVFitter.cc.
References align::BeamSpot, do3DFit_, debug_messages_cfi::errors, errorScale_, fftjetvertexadder_cfi::errX, fftjetvertexadder_cfi::errY, fftjetvertexadder_cfi::errZ, fbeamspot, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, hPVx, hPVy, edm::isNotFinite(), makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), pvStore_, bookConverter::results, reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), reco::BeamSpot::setType(), sigmaCut_, str, AlCaHLTBitMon_QueryRunRegistry::string, and reco::BeamSpot::Tracker.
Referenced by BeamFitter::runPVandTrkFitter().
|
inline |
|
inline |
Definition at line 73 of file PVFitter.h.
References freftime, FrontierCondition_GT_autoExpress_cfi::t0, and RandomServiceHelper::t1.
void PVFitter::setTree | ( | TTree * | tree | ) |
Definition at line 206 of file PVFitter.cc.
References BeamSpotTreeData::branch(), ftree_, theBeamSpotTreeData_, and MainPageGenerator::tree.
Referenced by BeamFitter::BeamFitter().
|
private |
Definition at line 177 of file PVFitter.h.
Referenced by getNPVsperBX(), readEvent(), resetAll(), and runBXFitter().
|
private |
Definition at line 142 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 143 of file PVFitter.h.
Referenced by initialize(), and runFitter().
|
private |
Definition at line 178 of file PVFitter.h.
Referenced by compressStore(), initialize(), readEvent(), and resetAll().
|
private |
Definition at line 155 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 140 of file PVFitter.h.
|
private |
Definition at line 135 of file PVFitter.h.
Referenced by getBeamSpot(), resetAll(), runBXFitter(), and runFitter().
|
private |
Definition at line 167 of file PVFitter.h.
Referenced by getFitLSRange(), resetLSRange(), and setFitLSRange().
|
private |
Definition at line 136 of file PVFitter.h.
Referenced by getBeamSpotMap(), resetAll(), and runBXFitter().
|
private |
Definition at line 168 of file PVFitter.h.
Referenced by getFitLSRange(), resetLSRange(), and setFitLSRange().
|
private |
Definition at line 137 of file PVFitter.h.
Referenced by FitPerBunchCrossing(), initialize(), IsFitPerBunchCrossing(), and readEvent().
|
private |
Definition at line 159 of file PVFitter.h.
Referenced by getRefTime(), resetRefTime(), and setRefTime().
|
private |
Definition at line 164 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 169 of file PVFitter.h.
Referenced by getWidthX(), runBXFitter(), and runFitter().
|
private |
Definition at line 172 of file PVFitter.h.
Referenced by getWidthXerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 170 of file PVFitter.h.
Referenced by getWidthY(), runBXFitter(), and runFitter().
|
private |
Definition at line 173 of file PVFitter.h.
Referenced by getWidthYerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 171 of file PVFitter.h.
Referenced by getWidthZ(), runBXFitter(), and runFitter().
|
private |
Definition at line 174 of file PVFitter.h.
Referenced by getWidthZerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 161 of file PVFitter.h.
Referenced by initialize(), readEvent(), resetAll(), and runFitter().
|
private |
Definition at line 162 of file PVFitter.h.
Referenced by initialize(), readEvent(), resetAll(), and runFitter().
|
private |
Definition at line 147 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 150 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 153 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 154 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 148 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 157 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 149 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 151 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 152 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 134 of file PVFitter.h.
Referenced by getNPVsperBX().
|
private |
Definition at line 145 of file PVFitter.h.
|
private |
Definition at line 179 of file PVFitter.h.
Referenced by compressStore().
|
private |
Definition at line 176 of file PVFitter.h.
Referenced by compressStore(), getNPVs(), getpvStore(), readEvent(), resetAll(), resizepvStore(), and runFitter().
|
private |
Definition at line 156 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 181 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 138 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 144 of file PVFitter.h.
Referenced by initialize(), and readEvent().