#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 24 of file NtupleManager.h.
void NtupleManager::BookNtuple | ( | ) |
Definition at line 39 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().
void NtupleManager::FillChi2 | ( | ) |
Definition at line 119 of file NtupleManager.cc.
References Chi2CalibratedParameters, Chi2Measurements, Model::EntryList(), cuy::ii, Model::MeasurementList(), and NDegreesOfFreedom.
Referenced by Fit::fitNextEvent().
void NtupleManager::FillFitParameters | ( | MatrixMeschach * | AtWAMatrix | ) |
Definition at line 154 of file NtupleManager.cc.
References CloneOptObject, gather_cfg::cout, Model::EntryList(), FitParamA, FitParam::FittedSigma, FitParam::FittedValue, cms::cuda::for(), FittedEntry::getEntryName(), FittedEntry::getName(), FittedEntry::getOptOName(), FittedEntry::getOrder(), FittedEntry::getOrigSigma(), FittedEntry::getOrigValue(), FittedEntry::getQuality(), FittedEntry::getSigma(), FittedEntry::getValue(), 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().
void NtupleManager::FillMeasurements | ( | ) |
Definition at line 287 of file NtupleManager.cc.
References TiltmeterMeas::AngError, TiltmeterMeas::Angle, CloneOptObject, CopsMeasA, d1, createTree::dd, DistancemeterMeas::DisError, Distancemeter1DimMeas::DisError, DistancemeterMeas::Distance, Distancemeter1DimMeas::Distance, Distancemeter1DimMeasA, DistancemeterMeasA, mps_fire::i, dqmdumpme::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, contentValuesCheck::ss, TiltmeterMeasA, and groupFilesInBlocks::tt.
Referenced by Fit::fitNextEvent().
void NtupleManager::FillNtupleTree | ( | ) |
Definition at line 108 of file NtupleManager.cc.
References CocoaTree.
Referenced by Fit::fitNextEvent().
void NtupleManager::FillOptObjects | ( | MatrixMeschach * | AtWAMatrix | ) |
Definition at line 237 of file NtupleManager.cc.
References OptObject::AnglesGlobal, OptObject::AnglesLocal, 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().
|
private |
Definition at line 362 of file NtupleManager.cc.
References alpha, HLT_2022v12_cff::beta, funct::cos(), gather_cfg::cout, MillePedeFileConverter_cfg::e, CustomPhysics_cfi::gamma, M_PI, funct::sin(), theta(), 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(), and Fit::startFit().
void NtupleManager::InitNtuple | ( | ) |
Definition at line 91 of file NtupleManager.cc.
References Chi2CalibratedParameters, Chi2Measurements, CloneFitParam, NCops, NDegreesOfFreedom, NDistancemeter, NDistancemeter1Dim, NFitParameters, NOptObjects, NSensor2D, and NTiltmeter.
Referenced by Fit::fitNextEvent().
void NtupleManager::WriteNtuple | ( | ) |
Definition at line 112 of file NtupleManager.cc.
References theRootFile.
Referenced by Fit::startFit().
|
private |
Definition at line 64 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 64 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 58 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 54 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 52 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 46 of file NtupleManager.h.
Referenced by BookNtuple(), and InitNtuple().
|
private |
Definition at line 48 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), and FillMeasurements().
|
private |
Definition at line 50 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 56 of file NtupleManager.h.
Referenced by BookNtuple().
|
private |
Definition at line 42 of file NtupleManager.h.
Referenced by BookNtuple(), and FillNtupleTree().
|
private |
Definition at line 59 of file NtupleManager.h.
Referenced by FillMeasurements().
|
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 47 of file NtupleManager.h.
Referenced by FillFitParameters().
|
staticprivate |
Definition at line 36 of file NtupleManager.h.
Referenced by getInstance(), and production_tasks.Task::getname().
|
private |
Definition at line 72 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 65 of file NtupleManager.h.
Referenced by BookNtuple(), FillChi2(), and InitNtuple().
|
private |
Definition at line 69 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 70 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 66 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), and InitNtuple().
|
private |
Definition at line 67 of file NtupleManager.h.
Referenced by BookNtuple(), FillFitParameters(), FillMeasurements(), FillOptObjects(), and InitNtuple().
|
private |
Definition at line 68 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 71 of file NtupleManager.h.
Referenced by BookNtuple(), FillMeasurements(), and InitNtuple().
|
private |
Definition at line 49 of file NtupleManager.h.
Referenced by FillOptObjects().
|
private |
Definition at line 51 of file NtupleManager.h.
Referenced by FillMeasurements().
|
private |
Definition at line 40 of file NtupleManager.h.
Referenced by BookNtuple(), and WriteNtuple().
|
private |
Definition at line 57 of file NtupleManager.h.
Referenced by FillMeasurements().