CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
Model Class Reference

#include <Model.h>

Public Member Functions

void BuildMeasurementsFromOA (OpticalAlignMeasurements &measList)
 
void BuildSystemDescriptionFromOA (OpticalAlignments &optAlig)
 
void CMSLinkFit (ALIint cmslink)
 *************** FOR CMS LINK SYSTEM (to fit it part by part) More...
 
OpticalAlignInfo FindOptAlignInfoByType (const ALIstring &type)
 
 Model ()
 
 ~Model ()
 

Static Public Member Functions

static void addEntryToList (Entry *entry)
 ***************** SET DATA MEMBERS More...
 
static void addMeasurementToList (Measurement *measadd)
 
static ALIbool createCopyComponentList (const ALIstring &optoname)
 **************** FOR COPYING AN OPTO More...
 
static std::vector< Entry * > & EntryList ()
 
static cocoaStatus getCocoaStatus ()
 
static ALIbool getComponentOptOs (const ALIstring &opto_name, std::vector< OpticalObject * > &vcomponents)
 --— Get from theOptOList the list of pointers to component OptOs More...
 
static ALIbool getComponentOptOTypes (const ALIstring &opto_type, std::vector< ALIstring > &vcomponents)
 --— Get from theOptODictionary the list of component OptO types More...
 
static EntrygetEntryByName (const ALIstring &opto_name, const ALIstring &entry_name)
 --— Search an Entry name in the Entry* list and return a pointer to it More...
 
static EntrygetEntryByName (const ALIstring &opto_entry_name)
 
static FittedEntriesReadergetFittedEntriesReader ()
 
static ModelgetInstance ()
 -------— Gets the only instance of this class More...
 
static MeasurementgetMeasurementByName (const ALIstring &name, ALIbool exists=1)
 
static std::vector
< OpticalAlignInfo
getOpticalAlignments ()
 
static OpticalObjectgetOptOByName (const ALIstring &opto_name)
 --— Find an OptO name in theOptOList and return a pointer to it More...
 
static OpticalObjectgetOptOByType (const ALIstring &type)
 --— Find the first OptO of type 'opto_type' in theOptOList and return a pointer to it More...
 
static int getParameterValue (const ALIstring &sstr, ALIdouble &val)
 ************ ACCESS INFO FROM STATIC DATA More...
 
static ALIdouble getParamFittedSigmaVectorItem (const ALIuint position)
 
static ALIstringMatricesFName ()
 the name of the File for storing the matrices More...
 
static ALIstringMeasFName ()
 the name of the Measurements File More...
 
static std::vector
< Measurement * > & 
MeasurementList ()
 
static struct tm & MeasurementsTime ()
 
static OpticalObjectnextOptOToCopy ()
 
static std::vector
< std::vector< ALIstring > > & 
OptODictionary ()
 ACCESS STATIC DATA MEMBERS. More...
 
static std::vector
< OpticalObject * > & 
OptOList ()
 
static std::string printCocoaStatus (const cocoaStatus cs)
 
static ALIbool readMeasurementsFromFile (ALIstring only1Date=ALIstring(""), ALIstring only1Time=ALIstring(""))
 
static void readSystemDescription ()
 -------— Read the different sections of the SDF and act accordingly More...
 
static ALIstringReportFName ()
 the name of the report File More...
 
static ALIstringSDFName ()
 the name of the System Description File More...
 
static void setCocoaStatus (const cocoaStatus cs)
 
static void setMatricesFName (const ALIstring &name)
 
static void setMeasurementsTime (struct tm &tim)
 
static void setReportFName (const ALIstring &name)
 
static void setSDFName (const ALIstring &name)
 

Static Public Attributes

static std::vector< ALIdoubleCMSLinkRangeDetValue
 
static ALIint Ncmslinkrange = 0
 *************** FOR RANGE STUDIES More...
 

Private Member Functions

void CMSLinkCleanModel ()
 

Static Private Member Functions

static void buildMeasurementsLinksToOptOs ()
 Read Measurements (to be implemented for reading from an external file the DATA of the measurements) More...
 
static void cleanParamFittedSigmaVector ()
 
static void cleanParamFittedValueDisplacementMap ()
 
static void CMSLinkDeleteOptOs ()
 
static void CMSLinkRecoverParamFittedSigma (ALIint cmslink)
 
static void CMSLinkRecoverParamFittedValueDisplacement (ALIint cmslink)
 
static void CMSLinkSaveParamFittedSigma (ALIint cmslink)
 
static void CMSLinkSaveParamFittedValueDisplacement (ALIint cmslink)
 
static void copyMeasurements (const std::vector< ALIstring > &wl)
 
static void deleteOptO (const ALIstring &opto_name)
 
static void deleteOptO (OpticalObject *opto)
 
static ALIbool fillCopyComponentList (const OpticalObject *opto)
 
static void recoverParamFittedSigma (const ALIstring &opto_name, const ALIstring &entry_name, const ALIuint position)
 
static void reorderOptODictionary (const ALIstring &ssearch, std::vector< std::vector< ALIstring > > &OptODictionary2)
 ********** private METHODS More...
 
static void saveParamFittedCorrelation (const ALIstring &opto_name1, const ALIstring &entry_name1, const ALIstring &opto_name2, const ALIstring &entry_name2)
 
static void saveParamFittedSigma (const ALIstring &opto_name, const ALIstring &entry_name)
 
static void SetValueDisplacementsFromReportOut ()
 

Static Private Attributes

static ALIint CMSLinkIteration = 0
 
static cocoaStatus theCocoaStatus = COCOA_Init
 
static std::vector< Entry * > theEntryVector
 std::vector of all Entries More...
 
static FittedEntriesReadertheFittedEntriesReader = 0
 
static ModeltheInstance = 0
 Only instance of Model. More...
 
static ALIstring theMatricesFName = "matrices.out"
 the name of the File for storing the matrices More...
 
static ALIstring theMeasFName = "Measurements.txt"
 the name of the Measurements File More...
 
static struct tm theMeasurementsTime
 
static std::vector< Measurement * > theMeasurementVector
 std::vector of all Measurements More...
 
static std::vector
< OpticalAlignInfo
theOpticalAlignments
 
static std::vector
< std::vector< ALIstring > > 
theOptODictionary
 parameters More...
 
static std::vector
< OpticalObject * > 
theOptOList
 map of OptO*/type of parent OptO, for navigation down the tree structure More...
 
static std::vector
< OpticalObject * > 
theOptOsToCopyList
 
static std::vector
< OpticalObject * >
::const_iterator 
theOptOsToCopyListIterator
 
static std::vector< ALIdoubletheParamFittedSigmaVector
 
static std::map< ALIstring,
ALIdouble, std::less
< ALIstring > > 
theParamFittedValueDisplacementMap
 
static ALIstring theReportFName = "report.out"
 the name of the report File More...
 
static ALIstring theSDFName = "SystemDescription.txt"
 the name of the System Description File More...
 

Detailed Description

Definition at line 38 of file Model.h.

Constructor & Destructor Documentation

Model::Model ( )

Definition at line 93 of file Model.cc.

Model::~Model ( )
inline

Definition at line 43 of file Model.h.

Member Function Documentation

static void Model::addEntryToList ( Entry entry)
inlinestatic

***************** SET DATA MEMBERS

Definition at line 145 of file Model.h.

static void Model::addMeasurementToList ( Measurement measadd)
inlinestatic

Definition at line 150 of file Model.h.

void Model::BuildMeasurementsFromOA ( OpticalAlignMeasurements measList)

Definition at line 1626 of file Model.cc.

void Model::buildMeasurementsLinksToOptOs ( )
staticprivate

Read Measurements (to be implemented for reading from an external file the DATA of the measurements)

Build for each measuremnt its link to the OptO that take part in it

Definition at line 546 of file Model.cc.

void Model::BuildSystemDescriptionFromOA ( OpticalAlignments optAlig)

Definition at line 1580 of file Model.cc.

static void Model::cleanParamFittedSigmaVector ( )
inlinestaticprivate

Definition at line 271 of file Model.h.

static void Model::cleanParamFittedValueDisplacementMap ( )
inlinestaticprivate

Definition at line 278 of file Model.h.

void Model::CMSLinkCleanModel ( )
private

Definition at line 887 of file Model.cc.

void Model::CMSLinkDeleteOptOs ( )
staticprivate

Definition at line 902 of file Model.cc.

void Model::CMSLinkFit ( ALIint  cmslink)

*************** FOR CMS LINK SYSTEM (to fit it part by part)

Definition at line 829 of file Model.cc.

void Model::CMSLinkRecoverParamFittedSigma ( ALIint  cmslink)
staticprivate

Definition at line 1058 of file Model.cc.

void Model::CMSLinkRecoverParamFittedValueDisplacement ( ALIint  cmslink)
staticprivate

Definition at line 1119 of file Model.cc.

void Model::CMSLinkSaveParamFittedSigma ( ALIint  cmslink)
staticprivate

Definition at line 966 of file Model.cc.

void Model::CMSLinkSaveParamFittedValueDisplacement ( ALIint  cmslink)
staticprivate

Definition at line 1031 of file Model.cc.

void Model::copyMeasurements ( const std::vector< ALIstring > &  wl)
staticprivate

Definition at line 1458 of file Model.cc.

ALIbool Model::createCopyComponentList ( const ALIstring optoname)
static

**************** FOR COPYING AN OPTO

Definition at line 769 of file Model.cc.

void Model::deleteOptO ( const ALIstring opto_name)
staticprivate

Definition at line 1147 of file Model.cc.

void Model::deleteOptO ( OpticalObject opto)
staticprivate

Definition at line 1157 of file Model.cc.

static std::vector< Entry* >& Model::EntryList ( )
inlinestatic

Definition at line 75 of file Model.h.

ALIbool Model::fillCopyComponentList ( const OpticalObject opto)
staticprivate

Definition at line 790 of file Model.cc.

OpticalAlignInfo Model::FindOptAlignInfoByType ( const ALIstring type)

Definition at line 1597 of file Model.cc.

static cocoaStatus Model::getCocoaStatus ( )
inlinestatic

Definition at line 48 of file Model.h.

ALIbool Model::getComponentOptOs ( const ALIstring opto_name,
std::vector< OpticalObject * > &  vcomponents 
)
static

--— Get from theOptOList the list of pointers to component OptOs

Definition at line 723 of file Model.cc.

ALIbool Model::getComponentOptOTypes ( const ALIstring opto_type,
std::vector< ALIstring > &  vcomponents 
)
static

--— Get from theOptODictionary the list of component OptO types

Definition at line 690 of file Model.cc.

Entry * Model::getEntryByName ( const ALIstring opto_name,
const ALIstring entry_name 
)
static

--— Search an Entry name in the Entry* list and return a pointer to it

Definition at line 633 of file Model.cc.

Referenced by MeasurementDiffEntry::calculateSimulatedValue(), FittedEntry::FittedEntry(), and FittedEntriesReader::readFittedEntriesFromFile().

static Entry* Model::getEntryByName ( const ALIstring opto_entry_name)
inlinestatic

--— Search an Entry from the full entry path (first substract the name of the OptO and then look in the Entry* list)

Definition at line 122 of file Model.h.

static FittedEntriesReader* Model::getFittedEntriesReader ( )
inlinestatic

Definition at line 267 of file Model.h.

Model & Model::getInstance ( )
static

-------— Gets the only instance of this class

Definition at line 81 of file Model.cc.

Measurement * Model::getMeasurementByName ( const ALIstring name,
ALIbool  exists = 1 
)
static

Definition at line 653 of file Model.cc.

static std::vector<OpticalAlignInfo> Model::getOpticalAlignments ( )
inlinestatic

Definition at line 141 of file Model.h.

OpticalObject * Model::getOptOByName ( const ALIstring opto_name)
static

--— Find an OptO name in theOptOList and return a pointer to it

Definition at line 578 of file Model.cc.

OpticalObject * Model::getOptOByType ( const ALIstring type)
static

--— Find the first OptO of type 'opto_type' in theOptOList and return a pointer to it

Definition at line 610 of file Model.cc.

ALIint Model::getParameterValue ( const ALIstring sstr,
ALIdouble val 
)
static

************ ACCESS INFO FROM STATIC DATA

--— Search a string in theParameters and return 1 if found

Definition at line 565 of file Model.cc.

ALIdouble Model::getParamFittedSigmaVectorItem ( const ALIuint  position)
static

Definition at line 1319 of file Model.cc.

static ALIstring& Model::MatricesFName ( )
inlinestatic

the name of the File for storing the matrices

Definition at line 101 of file Model.h.

static ALIstring& Model::MeasFName ( )
inlinestatic

the name of the Measurements File

Definition at line 91 of file Model.h.

static std::vector< Measurement* >& Model::MeasurementList ( )
inlinestatic

Definition at line 79 of file Model.h.

Referenced by CocoaDaqReaderText::ReadNextEvent().

static struct tm& Model::MeasurementsTime ( )
inlinestatic

Definition at line 137 of file Model.h.

OpticalObject * Model::nextOptOToCopy ( )
static

Definition at line 816 of file Model.cc.

static std::vector< std::vector<ALIstring> >& Model::OptODictionary ( )
inlinestatic

ACCESS STATIC DATA MEMBERS.

Definition at line 67 of file Model.h.

static std::vector< OpticalObject* >& Model::OptOList ( )
inlinestatic

Definition at line 71 of file Model.h.

Referenced by OpticalObjectMgr::dumpOptOs().

std::string Model::printCocoaStatus ( const cocoaStatus  cs)
static

Definition at line 1553 of file Model.cc.

ALIbool Model::readMeasurementsFromFile ( ALIstring  only1Date = ALIstring(""),
ALIstring  only1Time = ALIstring("") 
)
static

Definition at line 1336 of file Model.cc.

void Model::readSystemDescription ( )
static

-------— Read the different sections of the SDF and act accordingly

Definition at line 101 of file Model.cc.

void Model::recoverParamFittedSigma ( const ALIstring opto_name,
const ALIstring entry_name,
const ALIuint  position 
)
staticprivate

Definition at line 1298 of file Model.cc.

void Model::reorderOptODictionary ( const ALIstring ssearch,
std::vector< std::vector< ALIstring > > &  OptODictionary2 
)
staticprivate

********** private METHODS

Reorder the list of OptOs in a hierarchical structure (tree-like)

Definition at line 511 of file Model.cc.

static ALIstring& Model::ReportFName ( )
inlinestatic

the name of the report File

Definition at line 96 of file Model.h.

void Model::saveParamFittedCorrelation ( const ALIstring opto_name1,
const ALIstring entry_name1,
const ALIstring opto_name2,
const ALIstring entry_name2 
)
staticprivate

Definition at line 1262 of file Model.cc.

void Model::saveParamFittedSigma ( const ALIstring opto_name,
const ALIstring entry_name 
)
staticprivate

Definition at line 1241 of file Model.cc.

static ALIstring& Model::SDFName ( )
inlinestatic

the name of the System Description File

Definition at line 86 of file Model.h.

Referenced by MeasurementDiffEntry::buildOptONamesList().

static void Model::setCocoaStatus ( const cocoaStatus  cs)
inlinestatic

Definition at line 49 of file Model.h.

static void Model::setMatricesFName ( const ALIstring name)
inlinestatic

Definition at line 164 of file Model.h.

static void Model::setMeasurementsTime ( struct tm &  tim)
inlinestatic

Definition at line 168 of file Model.h.

static void Model::setReportFName ( const ALIstring name)
inlinestatic

Definition at line 160 of file Model.h.

static void Model::setSDFName ( const ALIstring name)
inlinestatic

Definition at line 156 of file Model.h.

void Model::SetValueDisplacementsFromReportOut ( )
staticprivate

Definition at line 1530 of file Model.cc.

Member Data Documentation

ALIint Model::CMSLinkIteration = 0
staticprivate

Definition at line 253 of file Model.h.

std::vector< ALIdouble > Model::CMSLinkRangeDetValue
static

Definition at line 239 of file Model.h.

ALIint Model::Ncmslinkrange = 0
static

*************** FOR RANGE STUDIES

Definition at line 238 of file Model.h.

cocoaStatus Model::theCocoaStatus = COCOA_Init
staticprivate

Definition at line 286 of file Model.h.

std::vector< Entry * > Model::theEntryVector
staticprivate

std::vector of all Entries

Definition at line 206 of file Model.h.

FittedEntriesReader * Model::theFittedEntriesReader = 0
staticprivate

Definition at line 294 of file Model.h.

Model * Model::theInstance = 0
staticprivate

Only instance of Model.

Definition at line 191 of file Model.h.

ALIstring Model::theMatricesFName = "matrices.out"
staticprivate

the name of the File for storing the matrices

Definition at line 218 of file Model.h.

ALIstring Model::theMeasFName = "Measurements.txt"
staticprivate

the name of the Measurements File

Definition at line 214 of file Model.h.

struct tm Model::theMeasurementsTime
staticprivate

Definition at line 292 of file Model.h.

std::vector< Measurement * > Model::theMeasurementVector
staticprivate

std::vector of all Measurements

Definition at line 209 of file Model.h.

std::vector< OpticalAlignInfo > Model::theOpticalAlignments
staticprivate

Definition at line 296 of file Model.h.

std::vector< std::vector< ALIstring > > Model::theOptODictionary
staticprivate

parameters

std::vector of OptOs with components (in tree structure)

Definition at line 197 of file Model.h.

std::vector< OpticalObject * > Model::theOptOList
staticprivate

map of OptO*/type of parent OptO, for navigation down the tree structure

map of OptO*/name of OptO for quick search based on name

Definition at line 203 of file Model.h.

std::vector< OpticalObject * > Model::theOptOsToCopyList
staticprivate

Definition at line 230 of file Model.h.

std::vector< OpticalObject * >::const_iterator Model::theOptOsToCopyListIterator
staticprivate

Definition at line 232 of file Model.h.

std::vector< ALIdouble > Model::theParamFittedSigmaVector
staticprivate

Definition at line 288 of file Model.h.

std::map< ALIstring, ALIdouble, std::less< ALIstring > > Model::theParamFittedValueDisplacementMap
staticprivate

Definition at line 290 of file Model.h.

ALIstring Model::theReportFName = "report.out"
staticprivate

the name of the report File

Definition at line 216 of file Model.h.

ALIstring Model::theSDFName = "SystemDescription.txt"
staticprivate

the name of the System Description File

Definition at line 212 of file Model.h.