CMS 3D CMS Logo

EntryMgr.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: EntryMgr.h
3 //CAT: Model
4 //
5 // Manages the parameters of the input file (variables that are given a value to be reused in the file)
6 //
7 // History: v1.0 11/11/01 Pedro Arce
8 #ifndef EntryMgr_h
9 #define EntryMgr_h
10 
12 #include <vector>
13 class EntryData;
14 
15 class EntryMgr {
16 private:
17  EntryMgr(){};
18 
19 public:
20  static EntryMgr* getInstance();
21  ALIbool readEntryFromReportOut(const std::vector<ALIstring>& wl);
22 
27 
28  EntryData* findEntryByShortName(const ALIstring& optoName, const ALIstring& entryName = "");
29  EntryData* findEntryByLongName(const ALIstring& optoName, const ALIstring& entryName = "");
30  EntryData* findEntryByName(const ALIstring& optoName, const ALIstring& entryName = "") {
31  return findEntryByLongName(optoName, entryName);
32  }
33 
35 
36  ALIint numberOfEntries() { return theEntryData.size(); }
37  std::vector<EntryData*> getEntryData() const { return theEntryData; }
38 
39  void clearEntryData() { theEntryData.clear(); }
40 
41 private:
42  EntryData* findEntry(const std::vector<ALIstring>& wl);
43 
44 private:
46 
48  std::vector<EntryData*> theEntryData;
49 };
50 
51 #endif
EntryMgr::getDimOutLengthVal
ALIdouble getDimOutLengthVal() const
Definition: EntryMgr.h:23
EntryMgr::dimOutAngleSig
ALIdouble dimOutAngleSig
Definition: EntryMgr.h:47
ALIbool
bool ALIbool
Definition: CocoaGlobals.h:19
EntryMgr
Definition: EntryMgr.h:15
LaserClient_cfi.wl
wl
Definition: LaserClient_cfi.py:46
ALIstring
std::string ALIstring
Definition: CocoaGlobals.h:9
EntryMgr::getEntryData
std::vector< EntryData * > getEntryData() const
Definition: EntryMgr.h:37
EntryMgr::findEntryByLongName
EntryData * findEntryByLongName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:82
EntryMgr::getDimOutAngleSig
ALIdouble getDimOutAngleSig() const
Definition: EntryMgr.h:26
EntryMgr::dimOutLengthVal
ALIdouble dimOutLengthVal
Definition: EntryMgr.h:47
EntryMgr::EntryMgr
EntryMgr()
Definition: EntryMgr.h:17
EntryMgr::findEntryByShortName
EntryData * findEntryByShortName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.cc:58
EntryMgr::getDimOutAngleVal
ALIdouble getDimOutAngleVal() const
Definition: EntryMgr.h:25
ALIdouble
long double ALIdouble
Definition: CocoaGlobals.h:11
EntryMgr::getDimOutLengthSig
ALIdouble getDimOutLengthSig() const
Definition: EntryMgr.h:24
EntryMgr::findEntryByName
EntryData * findEntryByName(const ALIstring &optoName, const ALIstring &entryName="")
Definition: EntryMgr.h:30
EntryMgr::theEntryData
std::vector< EntryData * > theEntryData
Definition: EntryMgr.h:48
EntryMgr::extractShortName
ALIstring extractShortName(const ALIstring &name)
Definition: EntryMgr.cc:125
EntryData
Definition: EntryData.h:15
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EntryMgr::clearEntryData
void clearEntryData()
Definition: EntryMgr.h:39
EntryMgr::numberOfEntries
ALIint numberOfEntries()
Definition: EntryMgr.h:36
ALIint
int ALIint
Definition: CocoaGlobals.h:15
EntryMgr::dimOutAngleVal
ALIdouble dimOutAngleVal
Definition: EntryMgr.h:47
EntryMgr::getInstance
static EntryMgr * getInstance()
Definition: EntryMgr.cc:16
CocoaGlobals.h
EntryMgr::theInstance
static EntryMgr * theInstance
Definition: EntryMgr.h:45
EntryMgr::dimOutLengthSig
ALIdouble dimOutLengthSig
Definition: EntryMgr.h:47
EntryMgr::findEntry
EntryData * findEntry(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:115
EntryMgr::readEntryFromReportOut
ALIbool readEntryFromReportOut(const std::vector< ALIstring > &wl)
Definition: EntryMgr.cc:29