LauSimFitSlave.cc
Go to the documentation of this file.
66 std::cerr << "WARNING in LauSimFitSlave::runSlave : Constraints have been added but these will be ignored - they should have been added to the master process" << std::endl;
83 std::cout << "INFO in LauSimFitSlave::runSlave : Fit slave " << this->slaveId() << " has finished successfully" << std::endl;
86 void LauSimFitSlave::setupResultsOutputs( const TString& histFileName, const TString& /*tableFileName*/ )
97 std::cerr << "ERROR in LauSimFitSlave::connectToMaster : master socket already present" << std::endl;
115 std::cout << "INFO in LauSimFitSlave::connectToMaster : Established connection to master on port " << portMaster << std::endl;
137 std::cout << "INFO in LauSimFitSlave::processMasterRequests : Received message from master: " << msgStr << std::endl;
168 std::cerr << "WARNING in LauSimFitSlave::processMasterRequests : Zero events in experiment " << iExp << ", the master should skip this experiment..." << std::endl;
209 std::cout << "INFO in LauSimFitSlave::processMasterRequests : Message from master to finish" << std::endl;
214 std::cerr << "ERROR in LauSimFitSlave::processMasterRequests : Unexpected message from master" << std::endl;
221 std::cout << "INFO in LauSimFitSlave::processMasterRequests : Received message from master: Finalise" << std::endl;
230 TObjArray * objarray = dynamic_cast<TObjArray*>( messageFromMaster_->ReadObject( messageFromMaster_->GetClass() ) );
232 std::cerr << "ERROR in LauSimFitSlave::processMasterRequests : Error reading parameters from master" << std::endl;
236 TMatrixD * covMat = dynamic_cast<TMatrixD*>( messageFromMaster_->ReadObject( messageFromMaster_->GetClass() ) );
238 std::cerr << "ERROR in LauSimFitSlave::processMasterRequests : Error reading covariance matrix from master" << std::endl;
264 std::cerr << "ERROR in LauSimFitSlave::processMasterRequests : Unexpected number of parameters received from master" << std::endl;
280 std::cerr << "ERROR in LauSimFitSlave::processMasterRequests : Unexpected message type" << std::endl;
UInt_t nTotParams() const Access the total number of fit parameters. Definition: LauFitObject.hh:186 virtual void runSlave(const TString &dataFileName, const TString &dataTreeName, const TString &histFileName, const TString &tableFileName="", const TString &addressMaster="localhost", const UInt_t portMaster=9090) Start the slave process for simultaneous fitting. Definition: LauSimFitSlave.cc:50 virtual void setupResultsOutputs(const TString &histFileName, const TString &tableFileName) Setup saving of fit results to ntuple/LaTeX table etc. Definition: LauSimFitSlave.cc:86 Bool_t withinAsymErrorCalc() const Query whether the fit is calculating the asymmetric errors. Definition: LauFitObject.hh:74 ClassImp(LauAbsCoeffSet) void processMasterRequests() Listen for requests from the master and act accordingly. Definition: LauSimFitSlave.cc:122 virtual UInt_t readExperimentData()=0 Read in the data for the current experiment. virtual void finaliseExperiment(const LauAbsFitter::FitStatus &fitStat, const TObjArray *parsFromMaster, const TMatrixD *covMat, TObjArray &parsToMaster)=0 Perform all finalisation actions. void connectToMaster(const TString &addressMaster, const UInt_t portMaster) Establish the connection to the master process. Definition: LauSimFitSlave.cc:94 void setCurrentExperiment(const UInt_t curExpt) Set the ID of the current experiment. Definition: LauFitObject.hh:157 const std::vector< StoreConstraints > & constraintsStore() const Const access to the constraints store. Definition: LauFitObject.hh:145 virtual void prepareInitialParArray(TObjArray &array)=0 Package the initial fit parameters for transmission to the master. virtual void setParsFromMinuit(Double_t *par, Int_t npar)=0 This function sets the parameter values from Minuit. File containing declaration of LauSimFitSlave class. Bool_t useAsymmFitErrors() const Report whether or not calculation of asymmetric errors is enabled. Definition: LauFitObject.hh:43 virtual Double_t getTotNegLogLikelihood()=0 Calculates the total negative log-likelihood. The base class for any slave process for simultaneous/combined fits. Definition: LauSimFitSlave.hh:37 virtual void cacheInputFitVars()=0 Cache the input data values to calculate the likelihood during the fit. Double_t * parValues_ Parameter values array (for reading from the master) Definition: LauSimFitSlave.hh:167 File containing declaration of LauFitNtuple class. virtual Bool_t verifyFitData(const TString &dataFileName, const TString &dataTreeName)=0 Open the input file and verify that all required variables are present. Generated by 1.8.5 |