#include <NtupleManager.h>
Public Member Functions | |
void | BookNtuple () |
void | FillChi2 () |
void | FillFitParameters (MatrixMeschach *AtWAMatrix) |
void | FillMeasurements () |
void | FillNtupleTree () |
void | FillOptObjects (MatrixMeschach *AtWAMatrix) |
void | InitNtuple () |
NtupleManager () | |
void | WriteNtuple () |
~NtupleManager () | |
Static Public Member Functions | |
static NtupleManager * | getInstance () |
Private Member Functions | |
void | GetGlobalAngles (const CLHEP::HepRotation &rmGlob, double *theta) |
Private Attributes | |
double | Chi2CalibratedParameters |
double | Chi2Measurements |
TClonesArray * | CloneCopsMeas |
TClonesArray * | CloneDistancemeter1DimMeas |
TClonesArray * | CloneDistancemeterMeas |
TClonesArray * | CloneFitParam |
TClonesArray * | CloneOptObject |
TClonesArray * | CloneSensor2DMeas |
TClonesArray * | CloneTiltmeterMeas |
TTree * | CocoaTree |
CopsMeas * | CopsMeasA |
Distancemeter1DimMeas * | Distancemeter1DimMeasA |
DistancemeterMeas * | DistancemeterMeasA |
FitParam * | FitParamA |
int | NCops |
int | NDegreesOfFreedom |
int | NDistancemeter |
int | NDistancemeter1Dim |
int | NFitParameters |
int | NOptObjects |
int | NSensor2D |
int | NTiltmeter |
OptObject * | OptObjectA |
Sensor2DMeas * | Sensor2DMeasA |
TFile * | theRootFile |
TiltmeterMeas * | TiltmeterMeasA |
Static Private Attributes | |
static NtupleManager * | instance = nullptr |
Definition at line 20 of file NtupleManager.h.
|
inline |
|
inline |
Definition at line 26 of file NtupleManager.h.
References BookNtuple(), FillChi2(), FillFitParameters(), FillMeasurements(), FillNtupleTree(), FillOptObjects(), getInstance(), InitNtuple(), and WriteNtuple().
void NtupleManager::BookNtuple | ( | ) |
Definition at line 41 of file NtupleManager.cc.
References Chi2CalibratedParameters, Chi2Measurements, CloneCopsMeas, CloneDistancemeter1DimMeas, CloneDistancemeterMeas, CloneFitParam, CloneOptObject, CloneSensor2DMeas, CloneTiltmeterMeas, CocoaTree, NCops, NDegreesOfFreedom, NDistancemeter, NDistancemeter1Dim, NFitParameters, NOptObjects, NSensor2D, NTiltmeter, and theRootFile.
Referenced by Fit::startFit(), and ~NtupleManager().
void NtupleManager::FillChi2 | ( | ) |
Definition at line 129 of file NtupleManager.cc.
References begin, Chi2CalibratedParameters, Chi2Measurements, Model::EntryList(), cuy::ii, Model::MeasurementList(), and NDegreesOfFreedom.
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
void NtupleManager::FillFitParameters | ( | MatrixMeschach * | AtWAMatrix | ) |
Definition at line 166 of file NtupleManager.cc.
References begin, CloneOptObject, gather_cfg::cout, Model::EntryList(), FitParamA, FitParam::FittedSigma, FitParam::FittedValue, FittedEntry::getEntryName(), FittedEntry::getName(), FittedEntry::getOptOName(), FittedEntry::getOrder(), FittedEntry::getOrigSigma(), FittedEntry::getOrigValue(), FittedEntry::getQuality(), FittedEntry::getSigma(), FittedEntry::getValue(), reco::if(), cuy::ii, FitParam::InitialSigma, FitParam::InitialValue, MatrixMeschach::Mat(), FitParam::Name, OptObject::Name, NFitParameters, NOptObjects, FitParam::OptObjectIndex, FitParam::Quality, and mathSSE::sqrt().
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
void NtupleManager::FillMeasurements | ( | ) |
Definition at line 307 of file NtupleManager.cc.
References TiltmeterMeas::AngError, TiltmeterMeas::Angle, begin, CloneOptObject, CopsMeasA, createTree::dd, DistancemeterMeas::DisError, Distancemeter1DimMeas::DisError, DistancemeterMeas::Distance, Distancemeter1DimMeas::Distance, Distancemeter1DimMeasA, DistancemeterMeasA, mps_fire::i, plotBeamSpotDB::last, Model::MeasurementList(), OptObject::Name, Sensor2DMeas::Name, DistancemeterMeas::Name, Distancemeter1DimMeas::Name, TiltmeterMeas::Name, CopsMeas::Name, NCops, NDistancemeter, NDistancemeter1Dim, NOptObjects, NSensor2D, NTiltmeter, Sensor2DMeas::OptObjectIndex, DistancemeterMeas::OptObjectIndex, Distancemeter1DimMeas::OptObjectIndex, TiltmeterMeas::OptObjectIndex, CopsMeas::OptObjectIndex, Sensor2DMeas::PosError, CopsMeas::PosError, Sensor2DMeas::Position, CopsMeas::Position, Sensor2DMeasA, TiltmeterMeas::SimulatedAngle, DistancemeterMeas::SimulatedDistance, Distancemeter1DimMeas::SimulatedDistance, Sensor2DMeas::SimulatedPosition, CopsMeas::SimulatedPosition, TiltmeterMeasA, and groupFilesInBlocks::tt.
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
void NtupleManager::FillNtupleTree | ( | ) |
Definition at line 114 of file NtupleManager.cc.
References CocoaTree.
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
void NtupleManager::FillOptObjects | ( | MatrixMeschach * | AtWAMatrix | ) |
Definition at line 251 of file NtupleManager.cc.
References OptObject::AnglesGlobal, OptObject::AnglesLocal, begin, OptObject::CentreGlobal, OptObject::CentreLocal, GetGlobalAngles(), mps_fire::i, cuy::ii, OptObject::Name, NOptObjects, OptObjectA, Model::OptOList(), OptObject::Parent, createTree::pp, theta(), OptObject::Type, XCoor, YCoor, and ZCoor.
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
|
private |
Definition at line 382 of file NtupleManager.cc.
References alpha, beta, funct::cos(), gather_cfg::cout, MillePedeFileConverter_cfg::e, CustomPhysics_cfi::gamma, M_PI, funct::sin(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, geometryCSVtoXML::xz, geometryCSVtoXML::yy, geometryCSVtoXML::yz, and geometryCSVtoXML::zz.
Referenced by FillOptObjects().
|
static |
Definition at line 29 of file NtupleManager.cc.
References instance, and NtupleManager().
Referenced by Fit::fitNextEvent(), Fit::startFit(), and ~NtupleManager().
void NtupleManager::InitNtuple | ( | ) |
Definition at line 96 of file NtupleManager.cc.
References Chi2CalibratedParameters, Chi2Measurements, CloneFitParam, NCops, NDegreesOfFreedom, NDistancemeter, NDistancemeter1Dim, NFitParameters, NOptObjects, NSensor2D, and NTiltmeter.
Referenced by Fit::fitNextEvent(), and ~NtupleManager().
void NtupleManager::WriteNtuple | ( | ) |
Definition at line 121 of file NtupleManager.cc.
References theRootFile.
Referenced by Fit::startFit(), and ~NtupleManager().
|
private |
Definition at line 60 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 60 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 55 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 53 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 52 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 49 of file NtupleManager.h.
Referenced by BookNtuple(), and InitNtuple().
|
private |
Definition at line 50 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), and FillMeasurements().
|
private |
Definition at line 51 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 54 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 45 of file NtupleManager.h.
Referenced by BookNtuple(), and FillNtupleTree().
|
private |
Definition at line 55 of file NtupleManager.h.
Referenced by FillMeasurements().
|
private |
Definition at line 53 of file NtupleManager.h.
Referenced by FillMeasurements().
|
private |
Definition at line 52 of file NtupleManager.h.
Referenced by FillMeasurements().
|
private |
Definition at line 49 of file NtupleManager.h.
Referenced by FillFitParameters().
|
staticprivate |
Definition at line 39 of file NtupleManager.h.
Referenced by getInstance(), and production_tasks.Task::getname().
|
private |
Definition at line 68 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 61 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 65 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 66 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 62 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), and InitNtuple().
|
private |
Definition at line 63 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), FillMeasurements(), FillOptObjects(), and InitNtuple().
|
private |
Definition at line 64 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 67 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 50 of file NtupleManager.h.
Referenced by FillOptObjects().
|
private |
Definition at line 51 of file NtupleManager.h.
Referenced by FillMeasurements().
|
private |
Definition at line 43 of file NtupleManager.h.
Referenced by BookNtuple(), and WriteNtuple().
|
private |
Definition at line 54 of file NtupleManager.h.
Referenced by FillMeasurements().