#include "Alignment/AlignChamZ.h"#include "Bfield/bfield.h"#include "Bfield/BFMagnet.h"#include "Config/CfgConfig.h"#include "Config/CfgParam.h"#include "EventDataModel/EDMEventHandle.h"#include "TrkRBase/TrkChamGeo.h"#include "TrkRBase/TrkCand.h"#include "TrkRBase/WireClust.h"#include "TrkRBase/TrkRUtil.h"#include <TMinuit.h>#include <TTree.h>#include <cmath>#include <cassert>#include <iostream>Go to the source code of this file.
Functions | |
| MODULE_DECL (AlignChamZ) | |
| static void | gsFCN (int &, double *, double &f, double *par, int) |
Variables | |
| static AlignChamZ * | gModule |
| static void gsFCN | ( | int & | , | |
| double * | , | |||
| double & | f, | |||
| double * | par, | |||
| int | ||||
| ) | [static] |
Definition at line 304 of file AlignChamZ.cxx.
References AlignChamZ::ComputeF(), gModule, GMIPPGeo::Instance(), BFMagnet::JGG(), kDC1, BFMagnet::Rosie(), and BFMagnet::SetCenterPos().
Referenced by BCReco::BCReco(), TrackBeamPart::EndRun(), AlignRotB::EndRun(), AlignChamZNoBF::EndRun(), AlignChamZ::EndRun(), VtxDAFit::FindVtx(), MinConstrained(), Trk456Ana::Reco(), and RICHRadFit::RICHRadFit().
00306 { 00307 for (int i = 0; i < 12; ++i) { 00308 if (!isnormal(par[i]) && par[i] != 0) { 00309 f = 0; 00310 cout << "Abnormal parameters in TMinuit" << endl; 00311 return; 00312 } 00313 } 00314 cout << "Minimizing with " << par[7] << endl; 00315 00316 // Setup geometry based on the new constants 00317 for (int i = 0; i < 6; ++i) { 00318 GMIPPGeo::Instance().Cham(i + kDC1).SetZGas(par[i]); 00319 } 00320 BFMagnet::JGG().SetCenterPos(par[6], par[7], par[8]); 00321 BFMagnet::Rosie().SetCenterPos(par[9], par[10], par[11]); 00322 00323 // Compute the function we want to minimize 00324 f = gModule->ComputeF(); 00325 }
| MODULE_DECL | ( | AlignChamZ | ) |
AlignChamZ* gModule [static] |
Definition at line 31 of file AlignChamZ.cxx.
Referenced by VtxConFit::AttemptToFixVertex(), TrackBeamPart::EndRun(), AlignRotB::EndRun(), AlignChamZNoBF::EndRun(), AlignChamZ::EndRun(), VFinder::FitDCA(), VtxConFit::FitMinuit(), RICHSeedFit::FitTrack(), gsFCN(), RICHSeedFit::MinFCN(), VtxConFit::TrkFCN(), and VtxConFit::VtxFCN().
1.4.7