#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 () |
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 |
TH2F * | hPVx |
TH2F * | hPVy |
unsigned int | maxNrVertices_ |
double | maxVtxNormChi2_ |
double | maxVtxR_ |
double | maxVtxZ_ |
unsigned int | minNrVertices_ |
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_ |
edm::EDGetTokenT < reco::VertexCollection > | vertexToken_ |
Definition at line 43 of file PVFitter.h.
|
inline |
Definition at line 45 of file PVFitter.h.
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iColl | ||
) |
Definition at line 53 of file PVFitter.cc.
References initialize().
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iColl | ||
) |
Definition at line 60 of file PVFitter.cc.
References initialize().
|
virtual |
Definition at line 98 of file PVFitter.cc.
void PVFitter::compressStore | ( | ) |
reduce size of primary vertex cache by increasing quality limit
Definition at line 543 of file PVFitter.cc.
References dynamicQualityCut_, i, pvQualities_, pvQuality(), pvStore_, and python.multivaluedict::sort().
Referenced by readEvent().
void PVFitter::dumpTxtFile | ( | ) |
Definition at line 500 of file PVFitter.cc.
|
inline |
|
inline |
Definition at line 91 of file PVFitter.h.
References fbeamspot.
Referenced by AlcaBeamMonitor::endLuminosityBlock(), and BeamFitter::runPVandTrkFitter().
|
inline |
Definition at line 92 of file PVFitter.h.
References fbspotMap.
Referenced by BeamFitter::runPVandTrkFitter().
|
inline |
|
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_, python.multivaluedict::map(), npvsmap_, and findQualityFiles::size.
Referenced by BeamFitter::getNPVsperBX().
|
inline |
Definition at line 61 of file PVFitter.h.
References pvStore_.
Referenced by BeamFitter::getPVvectorSize().
|
inline |
|
inline |
|
inline |
Definition at line 57 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 67 of file PVFitter.cc.
References edm::ConsumesCollector::consumes(), debug_, do3DFit_, dynamicQualityCut_, errorScale_, fFitPerBunchCrossing, edm::ParameterSet::getParameter(), hPVx, hPVy, maxNrVertices_, maxVtxNormChi2_, maxVtxR_, maxVtxZ_, minNrVertices_, minVtxNdf_, minVtxTracks_, minVtxWgt_, sigmaCut_, and vertexToken_.
Referenced by PVFitter().
|
inline |
Definition at line 93 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 575 of file PVFitter.cc.
References reco::Vertex::covariance().
Referenced by compressStore(), and readEvent().
double PVFitter::pvQuality | ( | const BeamSpotFitPVData & | pv | ) | const |
vertex quality measure
Definition at line 586 of file PVFitter.cc.
References BeamSpotFitPVData::posCorr, and BeamSpotFitPVData::posError.
void PVFitter::readEvent | ( | const edm::Event & | iEvent | ) |
Definition at line 103 of file PVFitter.cc.
References BeamSpotFitPVData::bunchCrossing, BeamSpotTreeData::bunchCrossing(), edm::EventBase::bunchCrossing(), bxMap_, compressStore(), dynamicQualityCut_, fFitPerBunchCrossing, ftree_, edm::Event::getByToken(), hPVx, hPVy, edm::EventBase::id(), BeamSpotTreeData::lumi(), edm::EventBase::luminosityBlock(), maxNrVertices_, minVtxNdf_, minVtxWgt_, BeamSpotFitPVData::posCorr, BeamSpotFitPVData::posError, BeamSpotFitPVData::position, MetAnalyzer::pv(), BeamSpotTreeData::pvData(), pvQuality(), pvStore_, BeamSpotTreeData::run(), edm::EventID::run(), theBeamSpotTreeData_, and vertexToken_.
Referenced by AlcaBeamMonitor::analyze(), and BeamFitter::readEvent().
|
inline |
Definition at line 80 of file PVFitter.h.
References align::BeamSpot, bxMap_, dynamicQualityCut_, fbeamspot, fbspotMap, hPVx, hPVy, pvStore_, resetLSRange(), and resetRefTime().
Referenced by BeamFitter::BeamFitter(), AlcaBeamMonitor::endLuminosityBlock(), and BeamFitter::resetPVFitter().
|
inline |
Definition at line 66 of file PVFitter.h.
References fbeginLumiOfFit, and fendLumiOfFit.
Referenced by resetAll().
|
inline |
|
inline |
Definition at line 109 of file PVFitter.h.
References pvStore_.
Referenced by BeamFitter::resizePVvector().
bool PVFitter::runBXFitter | ( | ) |
Definition at line 205 of file PVFitter.cc.
References align::BeamSpot, bxMap_, errorScale_, fbeamspot, fbspotMap, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, python.multivaluedict::map(), makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), FcnBeamSpotFitPV::setLimits(), reco::BeamSpot::setType(), sigmaCut_, findQualityFiles::size, and reco::BeamSpot::Tracker.
Referenced by BeamFitter::runPVandTrkFitter().
bool PVFitter::runFitter | ( | ) |
Definition at line 335 of file PVFitter.cc.
References align::BeamSpot, do3DFit_, benchmark_cfg::errors, errorScale_, fbeamspot, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, hPVx, hPVy, edm::isNotFinite(), makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), pvStore_, python.entryComment::results, reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), reco::BeamSpot::setType(), sigmaCut_, and reco::BeamSpot::Tracker.
Referenced by AlcaBeamMonitor::endLuminosityBlock(), and BeamFitter::runPVandTrkFitter().
|
inline |
|
inline |
void PVFitter::setTree | ( | TTree * | tree | ) |
Definition at line 200 of file PVFitter.cc.
References BeamSpotTreeData::branch(), ftree_, theBeamSpotTreeData_, and MainPageGenerator::tree.
Referenced by BeamFitter::BeamFitter().
|
private |
Definition at line 203 of file PVFitter.h.
Referenced by getNPVsperBX(), readEvent(), resetAll(), and runBXFitter().
|
private |
Definition at line 145 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 146 of file PVFitter.h.
Referenced by initialize(), and runFitter().
|
private |
Definition at line 204 of file PVFitter.h.
Referenced by compressStore(), initialize(), readEvent(), and resetAll().
|
private |
Definition at line 159 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 143 of file PVFitter.h.
|
private |
Definition at line 139 of file PVFitter.h.
Referenced by getBeamSpot(), resetAll(), runBXFitter(), and runFitter().
|
private |
Definition at line 178 of file PVFitter.h.
Referenced by getFitLSRange(), resetLSRange(), and setFitLSRange().
|
private |
Definition at line 140 of file PVFitter.h.
Referenced by getBeamSpotMap(), resetAll(), and runBXFitter().
|
private |
Definition at line 179 of file PVFitter.h.
Referenced by getFitLSRange(), resetLSRange(), and setFitLSRange().
|
private |
Definition at line 141 of file PVFitter.h.
Referenced by FitPerBunchCrossing(), initialize(), IsFitPerBunchCrossing(), and readEvent().
|
private |
Definition at line 164 of file PVFitter.h.
Referenced by getRefTime(), resetRefTime(), and setRefTime().
|
private |
Definition at line 168 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 182 of file PVFitter.h.
Referenced by getWidthX(), runBXFitter(), and runFitter().
|
private |
Definition at line 185 of file PVFitter.h.
Referenced by getWidthXerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 183 of file PVFitter.h.
Referenced by getWidthY(), runBXFitter(), and runFitter().
|
private |
Definition at line 186 of file PVFitter.h.
Referenced by getWidthYerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 184 of file PVFitter.h.
Referenced by getWidthZ(), runBXFitter(), and runFitter().
|
private |
Definition at line 187 of file PVFitter.h.
Referenced by getWidthZerr(), runBXFitter(), and runFitter().
|
private |
Definition at line 166 of file PVFitter.h.
Referenced by initialize(), readEvent(), resetAll(), and runFitter().
|
private |
Definition at line 166 of file PVFitter.h.
Referenced by initialize(), readEvent(), resetAll(), and runFitter().
|
private |
Definition at line 151 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 154 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 157 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 158 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 152 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 153 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 155 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 156 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 138 of file PVFitter.h.
Referenced by getNPVsperBX().
|
private |
Definition at line 149 of file PVFitter.h.
|
private |
Definition at line 205 of file PVFitter.h.
Referenced by compressStore().
|
private |
Definition at line 202 of file PVFitter.h.
Referenced by compressStore(), getNPVs(), getpvStore(), readEvent(), resetAll(), resizepvStore(), and runFitter().
|
private |
Definition at line 160 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 207 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 147 of file PVFitter.h.
Referenced by initialize(), and readEvent().