CMS 3D CMS Logo

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

#include <LMFPrimDat.h>

Inheritance diagram for LMFPrimDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

float getAlpha (EcalLogicID &id)
 
float getAlpha (int id)
 
float getAPDoverAM3 (EcalLogicID &id)
 
float getAPDoverAM3 (int id)
 
float getAPDoverAMean (EcalLogicID &id)
 
float getAPDoverAMean (int id)
 
float getAPDoverARMS (EcalLogicID &id)
 
float getAPDoverARMS (int id)
 
float getAPDoverBM3 (EcalLogicID &id)
 
float getAPDoverBM3 (int id)
 
float getAPDoverBMean (EcalLogicID &id)
 
float getAPDoverBMean (int id)
 
float getAPDoverBRMS (EcalLogicID &id)
 
float getAPDoverBRMS (int id)
 
float getAPDoverPnM3 (EcalLogicID &id)
 
float getAPDoverPnM3 (int id)
 
float getAPDoverPnMean (EcalLogicID &id)
 
float getAPDoverPnMean (int id)
 
float getAPDoverPnRMS (EcalLogicID &id)
 
float getAPDoverPnRMS (int id)
 
float getBeta (EcalLogicID &id)
 
float getBeta (int id)
 
int getFlag (EcalLogicID &id)
 
int getFlag (int id)
 
float getM3 (EcalLogicID &id)
 
float getM3 (int id)
 
float getMean (EcalLogicID &id)
 
float getMean (int id)
 
float getRMS (EcalLogicID &id)
 
float getRMS (int id)
 
float getShapeCorr (EcalLogicID &id)
 
float getShapeCorr (int id)
 
std::string getTableName () const
 
bool isValid ()
 
 LMFPrimDat ()
 
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFPrimDat (EcalDBConnection *c)
 
 LMFPrimDat (std::string color, std::string system)
 
 LMFPrimDat (int color, std::string system)
 
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system)
 
 LMFPrimDat (EcalDBConnection *c, std::string color, std::string system)
 
 LMFPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system)
 
 LMFPrimDat (EcalDBConnection *c, int color, std::string system)
 
LMFPrimDatsetAlpha (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverA (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPrimDatsetAPDoverAM3 (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverAMean (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverARMS (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverB (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPrimDatsetAPDoverBM3 (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverBMean (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverBRMS (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverPn (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPrimDatsetAPDoverPnM3 (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverPnMean (EcalLogicID &id, float v)
 
LMFPrimDatsetAPDoverPnRMS (EcalLogicID &id, float v)
 
LMFPrimDatsetBeta (EcalLogicID &id, float v)
 
LMFPrimDatsetFlag (EcalLogicID &id, int v)
 
LMFPrimDatsetM3 (EcalLogicID &id, float v)
 
LMFPrimDatsetMean (EcalLogicID &id, float v)
 
LMFPrimDatsetPN (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPrimDatsetRMS (EcalLogicID &id, float v)
 
LMFPrimDatsetShapeCorr (EcalLogicID &id, float v)
 
 ~LMFPrimDat ()
 
- Public Member Functions inherited from LMFColoredTable
std::string getColor () const
 
virtual std::string getSystem () const
 
int getVmax (EcalLogicID &id)
 
int getVmin (EcalLogicID &id)
 
 LMFColoredTable ()
 
 LMFColoredTable (EcalDBConnection *c)
 
 LMFColoredTable (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
LMFColoredTablesetColor (int color)
 
LMFColoredTablesetColor (std::string color)
 
virtual LMFColoredTablesetSystem (int system)
 
virtual LMFColoredTablesetSystem (std::string s)
 
LMFColoredTablesetVersions (EcalLogicID &id, int vmin, int vmax)
 
LMFColoredTablesetVmax (EcalLogicID &id, int v)
 
LMFColoredTablesetVmin (EcalLogicID &id, int v)
 
int writeDB () throw (std::runtime_error)
 
 ~LMFColoredTable ()
 
- Public Member Functions inherited from LMFDat
void dump () const
 
void dump (int n) const
 
virtual void dump (int n, int max) const
 
void fetch () throw (std::runtime_error)
 
void fetch (int logic_id) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm &tm) throw (std::runtime_error)
 
void fetch (int logic_id, const Tm *timestamp, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) throw (std::runtime_error)
 
void fetch (const EcalLogicID &id) throw (std::runtime_error)
 
std::map< int, std::vector
< float > > 
fetchData () throw (std::runtime_error)
 
virtual std::string foreignKeyName () const
 
std::vector< float > getData (int id)
 
std::vector< float > getData (const EcalLogicID &id)
 
bool getData (int id, std::vector< float > &ret)
 
bool getData (const EcalLogicID &id, std::vector< float > &ret)
 
std::map< int, std::vector
< float > > 
getData ()
 
float getData (int id, unsigned int k)
 
float getData (const EcalLogicID &id, unsigned int k)
 
float getData (const EcalLogicID &id, const std::string &key)
 
float getData (int id, const std::string &key)
 
bool getData (int id, unsigned int k, float &ret)
 
bool getData (const EcalLogicID &id, unsigned int k, float &ret)
 
bool getData (int id, const std::string &key, float &ret)
 
bool getData (const EcalLogicID &id, const std::string &key, float &ret)
 
virtual std::string getIovIdFieldName () const
 
std::list< std::string > getKeyList ()
 
std::map< std::string,
unsigned int > 
getKeys ()
 
LMFRunIOV getLMFRunIOV () const
 
int getLMFRunIOVID ()
 
std::list< int > getLogicIds ()
 
void getNext (LMFDat *dat) throw (std::runtime_error)
 
void getPrevious (LMFDat *dat) throw (std::runtime_error)
 
std::map< unsigned int,
std::string > 
getReverseMap () const
 
Tm getSubrunStart () const
 
 LMFDat ()
 
 LMFDat (EcalDBConnection *c)
 
 LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
std::vector< float > operator[] (int id)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetLMFRunIOV (const LMFRunIOV &iov)
 
LMFDatsetMaxDataToDump (int n)
 
void setWhereClause (std::string w)
 
void setWhereClause (std::string w, std::vector< std::string > p)
 
int size () const
 
 ~LMFDat ()
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual bool exists ()
 
virtual boost::ptr_list
< LMFUnique
fetchAll () const throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
std::string getClassName ()
 
std::string getClassName () const
 
int getID () const
 
int getInt (std::string fieldname) const
 
std::string getString (std::string fieldname) const
 
virtual bool isValid () const
 
 LMFUnique ()
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFUnique (EcalDBConnection *c)
 
void nodebug ()
 
virtual bool operator< (const LMFUnique &r)
 
virtual bool operator<= (const LMFUnique &r)
 
std::string sequencePostfix (Tm t)
 
void setByID (int id) throw (std::runtime_error)
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
virtual ~LMFUnique ()
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void init ()
 

Additional Inherited Members

- Public Types inherited from LMFUnique
typedef oracle::occi::ResultSet ResultSet
 
typedef oracle::occi::Statement Statement
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from LMFDat
void adjustParameters (int n, std::string &sql, Statement *stmt)
 
std::string buildInsertSql ()
 
std::string buildSelectSql (int logic_id=0, int direction=0)
 
bool check ()
 
void getKeyTypes () throw (std::runtime_error)
 
void getNeighbour (LMFDat *dat, int which) throw (std::runtime_error)
 
int writeDB () throw (std::runtime_error)
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeForeignKeys () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from LMFColoredTable
int m_color
 
int m_system
 
- Protected Attributes inherited from LMFDat
std::string _where
 
std::vector< std::string > _wherePars
 
std::map< int, std::vector
< float > > 
m_data
 
std::string m_Error
 
std::map< std::string,
unsigned int > 
m_keys
 
int m_max
 
std::string m_tableName
 
std::vector< std::string > m_type
 
- Protected Attributes inherited from LMFUnique
bool _profiling
 
std::string m_className
 
char m_debug
 
std::map< std::string,
LMFUnique * > 
m_foreignKeys
 
std::map< std::string, int > m_intFields
 
std::map< std::string,
std::string > 
m_stringFields
 
- Protected Attributes inherited from IUniqueDBObject
int m_ID
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

LMF_YYYY_XXX_PPRIM_DAT interface ^ ^ | | | _____ color -------— system

Definition at line 19 of file LMFPrimDat.h.

Constructor & Destructor Documentation

LMFPrimDat::LMFPrimDat ( )

Definition at line 3 of file LMFPrimDat.cc.

References init().

3  : LMFColoredTable() {
4  init();
5 }
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 7 of file LMFPrimDat.cc.

References init().

8  :
10  init();
11 }
tuple conn
Definition: results_mgr.py:53
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( EcalDBConnection c)

Definition at line 13 of file LMFPrimDat.cc.

References init().

13  : LMFColoredTable(c) {
14  init();
15 }
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( std::string  color,
std::string  system 
)

Definition at line 17 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

17  :
18  LMFColoredTable() {
19  init();
20  setColor(color);
21  setSystem(system);
22 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( int  color,
std::string  system 
)

Definition at line 24 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

24  :
25  LMFColoredTable() {
26  init();
27  setColor(color);
28  setSystem(system);
29 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color,
std::string  system 
)

Definition at line 31 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

33  :
35  init();
36  setColor(color);
37  setSystem(system);
38 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
tuple conn
Definition: results_mgr.py:53
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system 
)

Definition at line 49 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

50  : LMFColoredTable(c) {
51  init();
52  setColor(color);
53  setSystem(system);
54 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color,
std::string  system 
)

Definition at line 40 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

42  :
44  init();
45  setColor(color);
46  setSystem(system);
47 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
tuple conn
Definition: results_mgr.py:53
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
int  color,
std::string  system 
)

Definition at line 56 of file LMFPrimDat.cc.

References init(), LMFColoredTable::setColor(), and LMFColoredTable::setSystem().

57  : LMFColoredTable(c) {
58  init();
59  setColor(color);
60  setSystem(system);
61 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:63
LMFPrimDat::~LMFPrimDat ( )
inline

Definition at line 35 of file LMFPrimDat.h.

35 {}

Member Function Documentation

float LMFPrimDat::getAlpha ( EcalLogicID id)

Definition at line 269 of file LMFPrimDat.cc.

References LMFDat::getData().

269  {
270  return getData(id, "ALPHA");
271 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAlpha ( int  id)

Definition at line 333 of file LMFPrimDat.cc.

References LMFDat::getData().

333  {
334  return getData(id, "ALPHA");
335 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverAM3 ( EcalLogicID id)

Definition at line 233 of file LMFPrimDat.cc.

References LMFDat::getData().

233  {
234  return getData(id, "APDAM3");
235 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverAM3 ( int  id)

Definition at line 297 of file LMFPrimDat.cc.

References LMFDat::getData().

297  {
298  return getData(id, "APDAM3");
299 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverAMean ( EcalLogicID id)

Definition at line 237 of file LMFPrimDat.cc.

References LMFDat::getData().

237  {
238  return getData(id, "APDAMEAN");
239 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverAMean ( int  id)

Definition at line 301 of file LMFPrimDat.cc.

References LMFDat::getData().

301  {
302  return getData(id, "APDAMEAN");
303 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverARMS ( EcalLogicID id)

Definition at line 241 of file LMFPrimDat.cc.

References LMFDat::getData().

241  {
242  return getData(id, "APDARMS");
243 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverARMS ( int  id)

Definition at line 305 of file LMFPrimDat.cc.

References LMFDat::getData().

305  {
306  return getData(id, "APDARMS");
307 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBM3 ( EcalLogicID id)

Definition at line 245 of file LMFPrimDat.cc.

References LMFDat::getData().

245  {
246  return getData(id, "APDBM3");
247 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBM3 ( int  id)

Definition at line 309 of file LMFPrimDat.cc.

References LMFDat::getData().

309  {
310  return getData(id, "APDBM3");
311 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBMean ( EcalLogicID id)

Definition at line 261 of file LMFPrimDat.cc.

References LMFDat::getData().

261  {
262  return getData(id, "APDBMEAN");
263 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBMean ( int  id)

Definition at line 325 of file LMFPrimDat.cc.

References LMFDat::getData().

325  {
326  return getData(id, "APDBMEAN");
327 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBRMS ( EcalLogicID id)

Definition at line 265 of file LMFPrimDat.cc.

References LMFDat::getData().

265  {
266  return getData(id, "APDBRMS");
267 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverBRMS ( int  id)

Definition at line 329 of file LMFPrimDat.cc.

References LMFDat::getData().

329  {
330  return getData(id, "APDBRMS");
331 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnM3 ( EcalLogicID id)

Definition at line 257 of file LMFPrimDat.cc.

References LMFDat::getData().

257  {
258  return getData(id, "APDPNM3");
259 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnM3 ( int  id)

Definition at line 321 of file LMFPrimDat.cc.

References LMFDat::getData().

321  {
322  return getData(id, "APDPNM3");
323 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnMean ( EcalLogicID id)

Definition at line 249 of file LMFPrimDat.cc.

References LMFDat::getData().

249  {
250  return getData(id, "APDPNMEAN");
251 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnMean ( int  id)

Definition at line 313 of file LMFPrimDat.cc.

References LMFDat::getData().

313  {
314  return getData(id, "APDPNMEAN");
315 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnRMS ( EcalLogicID id)

Definition at line 253 of file LMFPrimDat.cc.

References LMFDat::getData().

253  {
254  return getData(id, "APDPNRMS");
255 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getAPDoverPnRMS ( int  id)

Definition at line 317 of file LMFPrimDat.cc.

References LMFDat::getData().

317  {
318  return getData(id, "APDPNRMS");
319 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getBeta ( EcalLogicID id)

Definition at line 273 of file LMFPrimDat.cc.

References LMFDat::getData().

273  {
274  return getData(id, "BETA");
275 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getBeta ( int  id)

Definition at line 337 of file LMFPrimDat.cc.

References LMFDat::getData().

337  {
338  return getData(id, "BETA");
339 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFPrimDat::getFlag ( EcalLogicID id)

Definition at line 281 of file LMFPrimDat.cc.

References LMFDat::getData().

281  {
282  return getData(id, "FLAG");
283 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFPrimDat::getFlag ( int  id)

Definition at line 345 of file LMFPrimDat.cc.

References LMFDat::getData().

345  {
346  return getData(id, "FLAG");
347 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getM3 ( EcalLogicID id)

Definition at line 229 of file LMFPrimDat.cc.

References LMFDat::getData().

229  {
230  return getData(id, "M3");
231 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getM3 ( int  id)

Definition at line 293 of file LMFPrimDat.cc.

References LMFDat::getData().

293  {
294  return getData(id, "M3");
295 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getMean ( EcalLogicID id)

Definition at line 221 of file LMFPrimDat.cc.

References LMFDat::getData().

221  {
222  return getData(id, "MEAN");
223 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getMean ( int  id)

Definition at line 285 of file LMFPrimDat.cc.

References LMFDat::getData().

285  {
286  return getData(id, "MEAN");
287 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getRMS ( EcalLogicID id)

Definition at line 225 of file LMFPrimDat.cc.

References LMFDat::getData().

225  {
226  return getData(id, "RMS");
227 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getRMS ( int  id)

Definition at line 289 of file LMFPrimDat.cc.

References LMFDat::getData().

289  {
290  return getData(id, "RMS");
291 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getShapeCorr ( EcalLogicID id)

Definition at line 277 of file LMFPrimDat.cc.

References LMFDat::getData().

277  {
278  return getData(id, "SHAPECORR");
279 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPrimDat::getShapeCorr ( int  id)

Definition at line 341 of file LMFPrimDat.cc.

References LMFDat::getData().

341  {
342  return getData(id, "SHAPECORR");
343 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
std::string LMFPrimDat::getTableName ( ) const
inlinevirtual

Implements LMFColoredTable.

Definition at line 37 of file LMFPrimDat.h.

References LMFColoredTable::getColor(), and LMFColoredTable::getSystem().

37  {
38  return "LMF_" + getSystem() + "_" + getColor() + "_PRIM_DAT";
39  }
std::string getColor() const
virtual std::string getSystem() const
void LMFPrimDat::init ( void  )
private

Definition at line 63 of file LMFPrimDat.cc.

References i, LMFUnique::m_className, LMFColoredTable::m_color, LMFDat::m_keys, LMFColoredTable::m_system, and LMFDat::m_type.

Referenced by LMFPrimDat().

63  {
64  m_className = "LMFPrimDat";
65  m_keys["FLAG"] = 0;
66  m_keys["MEAN"] = 1;
67  m_keys["RMS"] = 2;
68  m_keys["M3"] = 3;
69  m_keys["APDAMEAN"] = 4;
70  m_keys["APDARMS"] = 5;
71  m_keys["APDAM3"] = 6;
72  m_keys["APDBMEAN"] = 7;
73  m_keys["APDBRMS"] = 8;
74  m_keys["APDBM3"] = 9;
75  m_keys["APDPNMEAN"] = 10;
76  m_keys["APDPNRMS"] = 11;
77  m_keys["APDPNM3"] = 12;
78  m_keys["ALPHA"] = 13;
79  m_keys["BETA"] = 14;
80  m_keys["SHAPECORR"] = 15;
81  m_keys["VMIN"] = 16;
82  m_keys["VMAX"] = 17;
83  for (unsigned int i = 0; i < m_keys.size(); i++) {
84  m_type.push_back("NUMBER");
85  }
86  m_system = 0;
87  m_color = 0;
88 }
std::string m_className
Definition: LMFUnique.h:99
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > m_type
Definition: LMFDat.h:150
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
bool LMFPrimDat::isValid ( void  )
virtual

Reimplemented from LMFDat.

Definition at line 90 of file LMFPrimDat.cc.

References LMFColoredTable::getColor(), LMFColoredTable::getSystem(), LMFDat::m_Error, and run_regression::ret.

90  {
91  bool ret = true;
92  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
93  m_Error += " System name not properly set [" + getSystem() + "]";
94  ret = false;
95  }
96  if ((getSystem() == "LASER") &&
97  (getColor() != "BLUE") && (getColor() != "IR")) {
98  m_Error += " Color not properly set [" + getColor() + "]";
99  ret = false;
100  }
101  if ((getSystem() == "LED") &&
102  (getColor() != "BLUE") && (getColor() != "ORANGE")) {
103  m_Error += " Color not properly set [" + getColor() + "]";
104  ret = false;
105  }
106  return ret;
107 }
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:157
virtual std::string getSystem() const
LMFPrimDat & LMFPrimDat::setAlpha ( EcalLogicID id,
float  v 
)

Definition at line 206 of file LMFPrimDat.cc.

References LMFDat::setData().

206  {
207  LMFDat::setData(id, "ALPHA", v);
208  return *this;
209 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverA ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 147 of file LMFPrimDat.cc.

References setAPDoverAM3(), setAPDoverAMean(), and setAPDoverARMS().

148  {
149  setAPDoverAMean(id, mean);
150  setAPDoverARMS(id, rms);
151  setAPDoverAM3(id, m3);
152  return *this;
153 }
LMFPrimDat & setAPDoverAMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:137
LMFPrimDat & setAPDoverARMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:142
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:132
LMFPrimDat & LMFPrimDat::setAPDoverAM3 ( EcalLogicID id,
float  v 
)

Definition at line 132 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

132  {
133  LMFDat::setData(id, "APDAM3", v);
134  return *this;
135 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverAMean ( EcalLogicID id,
float  v 
)

Definition at line 137 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

137  {
138  LMFDat::setData(id, "APDAMEAN", v);
139  return *this;
140 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverARMS ( EcalLogicID id,
float  v 
)

Definition at line 142 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverA().

142  {
143  LMFDat::setData(id, "APDARMS", v);
144  return *this;
145 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 170 of file LMFPrimDat.cc.

References setAPDoverBM3(), setAPDoverBMean(), and setAPDoverBRMS().

171  {
172  setAPDoverBMean(id, mean);
173  setAPDoverBRMS(id, rms);
174  setAPDoverBM3(id, m3);
175  return *this;
176 }
LMFPrimDat & setAPDoverBMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:160
LMFPrimDat & setAPDoverBRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:165
LMFPrimDat & setAPDoverBM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:155
LMFPrimDat & LMFPrimDat::setAPDoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 155 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

155  {
156  LMFDat::setData(id, "APDBM3", v);
157  return *this;
158 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 160 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

160  {
161  LMFDat::setData(id, "APDBMEAN", v);
162  return *this;
163 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 165 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverB().

165  {
166  LMFDat::setData(id, "APDBRMS", v);
167  return *this;
168 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverPn ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 193 of file LMFPrimDat.cc.

References setAPDoverPnM3(), setAPDoverPnMean(), and setAPDoverPnRMS().

194  {
195  setAPDoverPnMean(id, mean);
196  setAPDoverPnRMS(id, rms);
197  setAPDoverPnM3(id, m3);
198  return *this;
199 }
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:188
LMFPrimDat & setAPDoverPnM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:178
LMFPrimDat & setAPDoverPnMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:183
LMFPrimDat & LMFPrimDat::setAPDoverPnM3 ( EcalLogicID id,
float  v 
)

Definition at line 178 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

178  {
179  LMFDat::setData(id, "APDPNM3", v);
180  return *this;
181 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverPnMean ( EcalLogicID id,
float  v 
)

Definition at line 183 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

183  {
184  LMFDat::setData(id, "APDPNMEAN", v);
185  return *this;
186 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setAPDoverPnRMS ( EcalLogicID id,
float  v 
)

Definition at line 188 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setAPDoverPn().

188  {
189  LMFDat::setData(id, "APDPNRMS", v);
190  return *this;
191 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setBeta ( EcalLogicID id,
float  v 
)

Definition at line 211 of file LMFPrimDat.cc.

References LMFDat::setData().

211  {
212  LMFDat::setData(id, "BETA", v);
213  return *this;
214 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setFlag ( EcalLogicID id,
int  v 
)

Definition at line 201 of file LMFPrimDat.cc.

References LMFDat::setData().

201  {
202  LMFDat::setData(id, "FLAG", v);
203  return *this;
204 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setM3 ( EcalLogicID id,
float  v 
)

Definition at line 119 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

119  {
120  LMFDat::setData(id, "M3", v);
121  return *this;
122 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setMean ( EcalLogicID id,
float  v 
)

Definition at line 109 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

109  {
110  LMFDat::setData(id, "MEAN", v);
111  return *this;
112 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setPN ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 124 of file LMFPrimDat.cc.

References setM3(), setMean(), and setRMS().

125  {
126  setMean(id, mean);
127  setRMS(id, rms);
128  setM3(id, m3);
129  return *this;
130 }
LMFPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:114
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:119
LMFPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:109
LMFPrimDat & LMFPrimDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 114 of file LMFPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

114  {
115  LMFDat::setData(id, "RMS", v);
116  return *this;
117 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
LMFPrimDat & LMFPrimDat::setShapeCorr ( EcalLogicID id,
float  v 
)

Definition at line 216 of file LMFPrimDat.cc.

References LMFDat::setData().

216  {
217  LMFDat::setData(id, "SHAPECORR", v);
218  return *this;
219 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55