CMS 3D CMS Logo

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 override
 
bool isValid () override
 
 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 () override
 
- 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 () noexcept(false) override
 
 ~LMFColoredTable () override
 
- Public Member Functions inherited from LMFDat
void dump () const override
 
void dump (int n) const override
 
virtual void dump (int n, int max) const
 
void fetch () noexcept(false)
 
void fetch (int logic_id) noexcept(false)
 
void fetch (int logic_id, const Tm &tm) noexcept(false)
 
void fetch (int logic_id, const Tm *timestamp, int dir) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm) noexcept(false)
 
void fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false)
 
void fetch (const EcalLogicID &id) noexcept(false)
 
std::map< int, std::vector< float > > fetchData () noexcept(false)
 
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) noexcept(false)
 
void getPrevious (LMFDat *dat) noexcept(false)
 
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, const std::vector< std::string > &p)
 
int size () const
 
 ~LMFDat () override
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual bool exists ()
 
virtual std::list< std::unique_ptr< LMFUnique > > fetchAll () const noexcept(false)
 
int fetchID () noexcept(false) override
 
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 (const Tm &t)
 
void setByID (int id) noexcept(false) override
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
 ~LMFUnique () override
 
- 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 () noexcept(false)
 
void getNeighbour (LMFDat *dat, int which) noexcept(false)
 
int writeDB () noexcept(false) override
 
- Protected Member Functions inherited from LMFUnique
virtual void getParameters (ResultSet *rset)
 
virtual void setClassName (std::string s)
 
virtual int writeForeignKeys () noexcept(false)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const noexcept(false)
 
- 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() [1/9]

LMFPrimDat::LMFPrimDat ( )

Definition at line 3 of file LMFPrimDat.cc.

References init().

3 : LMFColoredTable() { init(); }
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [2/9]

LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 5 of file LMFPrimDat.cc.

References init().

6  init();
7 }
conn
Definition: getInfo.py:9
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [3/9]

LMFPrimDat::LMFPrimDat ( EcalDBConnection c)

Definition at line 9 of file LMFPrimDat.cc.

References init().

◆ LMFPrimDat() [4/9]

LMFPrimDat::LMFPrimDat ( std::string  color,
std::string  system 
)

Definition at line 11 of file LMFPrimDat.cc.

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

11  : LMFColoredTable() {
12  init();
13  setColor(color);
14  setSystem(system);
15 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [5/9]

LMFPrimDat::LMFPrimDat ( int  color,
std::string  system 
)

Definition at line 17 of file LMFPrimDat.cc.

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

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

◆ LMFPrimDat() [6/9]

LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color,
std::string  system 
)

Definition at line 23 of file LMFPrimDat.cc.

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

28  init();
29  setColor(color);
30  setSystem(system);
31 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
conn
Definition: getInfo.py:9
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [7/9]

LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system 
)

Definition at line 40 of file LMFPrimDat.cc.

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

40  : LMFColoredTable(c) {
41  init();
42  setColor(color);
43  setSystem(system);
44 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [8/9]

LMFPrimDat::LMFPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color,
std::string  system 
)

Definition at line 33 of file LMFPrimDat.cc.

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

35  init();
36  setColor(color);
37  setSystem(system);
38 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
conn
Definition: getInfo.py:9
void init()
Definition: LMFPrimDat.cc:52

◆ LMFPrimDat() [9/9]

LMFPrimDat::LMFPrimDat ( EcalDBConnection c,
int  color,
std::string  system 
)

Definition at line 46 of file LMFPrimDat.cc.

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

46  : LMFColoredTable(c) {
47  init();
48  setColor(color);
49  setSystem(system);
50 }
LMFColoredTable & setColor(int color)
virtual LMFColoredTable & setSystem(int system)
void init()
Definition: LMFPrimDat.cc:52

◆ ~LMFPrimDat()

LMFPrimDat::~LMFPrimDat ( )
inlineoverride

Definition at line 30 of file LMFPrimDat.h.

30 {}

Member Function Documentation

◆ getAlpha() [1/2]

float LMFPrimDat::getAlpha ( EcalLogicID id)

Definition at line 228 of file LMFPrimDat.cc.

References LMFDat::getData().

228 { return getData(id, "ALPHA"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAlpha() [2/2]

float LMFPrimDat::getAlpha ( int  id)

Definition at line 260 of file LMFPrimDat.cc.

References LMFDat::getData().

260 { return getData(id, "ALPHA"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverAM3() [1/2]

float LMFPrimDat::getAPDoverAM3 ( EcalLogicID id)

Definition at line 210 of file LMFPrimDat.cc.

References LMFDat::getData().

210 { return getData(id, "APDAM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverAM3() [2/2]

float LMFPrimDat::getAPDoverAM3 ( int  id)

Definition at line 242 of file LMFPrimDat.cc.

References LMFDat::getData().

242 { return getData(id, "APDAM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverAMean() [1/2]

float LMFPrimDat::getAPDoverAMean ( EcalLogicID id)

Definition at line 212 of file LMFPrimDat.cc.

References LMFDat::getData().

212 { return getData(id, "APDAMEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverAMean() [2/2]

float LMFPrimDat::getAPDoverAMean ( int  id)

Definition at line 244 of file LMFPrimDat.cc.

References LMFDat::getData().

244 { return getData(id, "APDAMEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverARMS() [1/2]

float LMFPrimDat::getAPDoverARMS ( EcalLogicID id)

Definition at line 214 of file LMFPrimDat.cc.

References LMFDat::getData().

214 { return getData(id, "APDARMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverARMS() [2/2]

float LMFPrimDat::getAPDoverARMS ( int  id)

Definition at line 246 of file LMFPrimDat.cc.

References LMFDat::getData().

246 { return getData(id, "APDARMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBM3() [1/2]

float LMFPrimDat::getAPDoverBM3 ( EcalLogicID id)

Definition at line 216 of file LMFPrimDat.cc.

References LMFDat::getData().

216 { return getData(id, "APDBM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBM3() [2/2]

float LMFPrimDat::getAPDoverBM3 ( int  id)

Definition at line 248 of file LMFPrimDat.cc.

References LMFDat::getData().

248 { return getData(id, "APDBM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBMean() [1/2]

float LMFPrimDat::getAPDoverBMean ( EcalLogicID id)

Definition at line 224 of file LMFPrimDat.cc.

References LMFDat::getData().

224 { return getData(id, "APDBMEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBMean() [2/2]

float LMFPrimDat::getAPDoverBMean ( int  id)

Definition at line 256 of file LMFPrimDat.cc.

References LMFDat::getData().

256 { return getData(id, "APDBMEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBRMS() [1/2]

float LMFPrimDat::getAPDoverBRMS ( EcalLogicID id)

Definition at line 226 of file LMFPrimDat.cc.

References LMFDat::getData().

226 { return getData(id, "APDBRMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverBRMS() [2/2]

float LMFPrimDat::getAPDoverBRMS ( int  id)

Definition at line 258 of file LMFPrimDat.cc.

References LMFDat::getData().

258 { return getData(id, "APDBRMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverPnM3() [1/2]

float LMFPrimDat::getAPDoverPnM3 ( EcalLogicID id)

Definition at line 222 of file LMFPrimDat.cc.

References LMFDat::getData().

222 { return getData(id, "APDPNM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverPnM3() [2/2]

float LMFPrimDat::getAPDoverPnM3 ( int  id)

Definition at line 254 of file LMFPrimDat.cc.

References LMFDat::getData().

254 { return getData(id, "APDPNM3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverPnMean() [1/2]

float LMFPrimDat::getAPDoverPnMean ( EcalLogicID id)

Definition at line 218 of file LMFPrimDat.cc.

References LMFDat::getData().

218 { return getData(id, "APDPNMEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverPnMean() [2/2]

float LMFPrimDat::getAPDoverPnMean ( int  id)

Definition at line 250 of file LMFPrimDat.cc.

References LMFDat::getData().

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

◆ getAPDoverPnRMS() [1/2]

float LMFPrimDat::getAPDoverPnRMS ( EcalLogicID id)

Definition at line 220 of file LMFPrimDat.cc.

References LMFDat::getData().

220 { return getData(id, "APDPNRMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getAPDoverPnRMS() [2/2]

float LMFPrimDat::getAPDoverPnRMS ( int  id)

Definition at line 252 of file LMFPrimDat.cc.

References LMFDat::getData().

252 { return getData(id, "APDPNRMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getBeta() [1/2]

float LMFPrimDat::getBeta ( EcalLogicID id)

Definition at line 230 of file LMFPrimDat.cc.

References LMFDat::getData().

230 { return getData(id, "BETA"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getBeta() [2/2]

float LMFPrimDat::getBeta ( int  id)

Definition at line 262 of file LMFPrimDat.cc.

References LMFDat::getData().

262 { return getData(id, "BETA"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getFlag() [1/2]

int LMFPrimDat::getFlag ( EcalLogicID id)

Definition at line 234 of file LMFPrimDat.cc.

References LMFDat::getData().

234 { return getData(id, "FLAG"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getFlag() [2/2]

int LMFPrimDat::getFlag ( int  id)

Definition at line 266 of file LMFPrimDat.cc.

References LMFDat::getData().

266 { return getData(id, "FLAG"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getM3() [1/2]

float LMFPrimDat::getM3 ( EcalLogicID id)

Definition at line 208 of file LMFPrimDat.cc.

References LMFDat::getData().

208 { return getData(id, "M3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getM3() [2/2]

float LMFPrimDat::getM3 ( int  id)

Definition at line 240 of file LMFPrimDat.cc.

References LMFDat::getData().

240 { return getData(id, "M3"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMean() [1/2]

float LMFPrimDat::getMean ( EcalLogicID id)

Definition at line 204 of file LMFPrimDat.cc.

References LMFDat::getData().

204 { return getData(id, "MEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getMean() [2/2]

float LMFPrimDat::getMean ( int  id)

Definition at line 236 of file LMFPrimDat.cc.

References LMFDat::getData().

236 { return getData(id, "MEAN"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getRMS() [1/2]

float LMFPrimDat::getRMS ( EcalLogicID id)

Definition at line 206 of file LMFPrimDat.cc.

References LMFDat::getData().

206 { return getData(id, "RMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getRMS() [2/2]

float LMFPrimDat::getRMS ( int  id)

Definition at line 238 of file LMFPrimDat.cc.

References LMFDat::getData().

238 { return getData(id, "RMS"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getShapeCorr() [1/2]

float LMFPrimDat::getShapeCorr ( EcalLogicID id)

Definition at line 232 of file LMFPrimDat.cc.

References LMFDat::getData().

232 { return getData(id, "SHAPECORR"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getShapeCorr() [2/2]

float LMFPrimDat::getShapeCorr ( int  id)

Definition at line 264 of file LMFPrimDat.cc.

References LMFDat::getData().

264 { return getData(id, "SHAPECORR"); }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559

◆ getTableName()

std::string LMFPrimDat::getTableName ( ) const
inlineoverridevirtual

Implements LMFColoredTable.

Definition at line 32 of file LMFPrimDat.h.

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

32 { return "LMF_" + getSystem() + "_" + getColor() + "_PRIM_DAT"; }
virtual std::string getSystem() const
std::string getColor() const

◆ init()

void LMFPrimDat::init ( void  )
private

Definition at line 52 of file LMFPrimDat.cc.

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

Referenced by LMFPrimDat().

52  {
53  m_className = "LMFPrimDat";
54  m_keys["FLAG"] = 0;
55  m_keys["MEAN"] = 1;
56  m_keys["RMS"] = 2;
57  m_keys["M3"] = 3;
58  m_keys["APDAMEAN"] = 4;
59  m_keys["APDARMS"] = 5;
60  m_keys["APDAM3"] = 6;
61  m_keys["APDBMEAN"] = 7;
62  m_keys["APDBRMS"] = 8;
63  m_keys["APDBM3"] = 9;
64  m_keys["APDPNMEAN"] = 10;
65  m_keys["APDPNRMS"] = 11;
66  m_keys["APDPNM3"] = 12;
67  m_keys["ALPHA"] = 13;
68  m_keys["BETA"] = 14;
69  m_keys["SHAPECORR"] = 15;
70  m_keys["VMIN"] = 16;
71  m_keys["VMAX"] = 17;
72  for (unsigned int i = 0; i < m_keys.size(); i++) {
73  m_type.push_back("NUMBER");
74  }
75  m_system = 0;
76  m_color = 0;
77 }
std::string m_className
Definition: LMFUnique.h:99
std::vector< std::string > m_type
Definition: LMFDat.h:140
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145

◆ isValid()

bool LMFPrimDat::isValid ( void  )
overridevirtual

Reimplemented from LMFDat.

Definition at line 79 of file LMFPrimDat.cc.

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

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

79  {
80  bool ret = true;
81  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
82  m_Error += " System name not properly set [" + getSystem() + "]";
83  ret = false;
84  }
85  if ((getSystem() == "LASER") && (getColor() != "BLUE") && (getColor() != "IR")) {
86  m_Error += " Color not properly set [" + getColor() + "]";
87  ret = false;
88  }
89  if ((getSystem() == "LED") && (getColor() != "BLUE") && (getColor() != "ORANGE")) {
90  m_Error += " Color not properly set [" + getColor() + "]";
91  ret = false;
92  }
93  return ret;
94 }
ret
prodAgent to be discontinued
virtual std::string getSystem() const
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:147

◆ setAlpha()

LMFPrimDat & LMFPrimDat::setAlpha ( EcalLogicID id,
float  v 
)

Definition at line 189 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

189  {
190  LMFDat::setData(id, "ALPHA", v);
191  return *this;
192 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverA()

LMFPrimDat & LMFPrimDat::setAPDoverA ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 133 of file LMFPrimDat.cc.

References SiStripPI::mean, SiStripPI::rms, setAPDoverAM3(), setAPDoverAMean(), and setAPDoverARMS().

133  {
134  setAPDoverAMean(id, mean);
135  setAPDoverARMS(id, rms);
136  setAPDoverAM3(id, m3);
137  return *this;
138 }
LMFPrimDat & setAPDoverAMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:123
LMFPrimDat & setAPDoverARMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:128
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:118

◆ setAPDoverAM3()

LMFPrimDat & LMFPrimDat::setAPDoverAM3 ( EcalLogicID id,
float  v 
)

Definition at line 118 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverA().

118  {
119  LMFDat::setData(id, "APDAM3", v);
120  return *this;
121 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverAMean()

LMFPrimDat & LMFPrimDat::setAPDoverAMean ( EcalLogicID id,
float  v 
)

Definition at line 123 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverA().

123  {
124  LMFDat::setData(id, "APDAMEAN", v);
125  return *this;
126 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverARMS()

LMFPrimDat & LMFPrimDat::setAPDoverARMS ( EcalLogicID id,
float  v 
)

Definition at line 128 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverA().

128  {
129  LMFDat::setData(id, "APDARMS", v);
130  return *this;
131 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverB()

LMFPrimDat & LMFPrimDat::setAPDoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 155 of file LMFPrimDat.cc.

References SiStripPI::mean, SiStripPI::rms, setAPDoverBM3(), setAPDoverBMean(), and setAPDoverBRMS().

155  {
156  setAPDoverBMean(id, mean);
157  setAPDoverBRMS(id, rms);
158  setAPDoverBM3(id, m3);
159  return *this;
160 }
LMFPrimDat & setAPDoverBMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:145
LMFPrimDat & setAPDoverBRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:150
LMFPrimDat & setAPDoverBM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:140

◆ setAPDoverBM3()

LMFPrimDat & LMFPrimDat::setAPDoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 140 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverB().

140  {
141  LMFDat::setData(id, "APDBM3", v);
142  return *this;
143 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverBMean()

LMFPrimDat & LMFPrimDat::setAPDoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 145 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverB().

145  {
146  LMFDat::setData(id, "APDBMEAN", v);
147  return *this;
148 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverBRMS()

LMFPrimDat & LMFPrimDat::setAPDoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 150 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverB().

150  {
151  LMFDat::setData(id, "APDBRMS", v);
152  return *this;
153 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverPn()

LMFPrimDat & LMFPrimDat::setAPDoverPn ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 177 of file LMFPrimDat.cc.

References SiStripPI::mean, SiStripPI::rms, setAPDoverPnM3(), setAPDoverPnMean(), and setAPDoverPnRMS().

177  {
178  setAPDoverPnMean(id, mean);
179  setAPDoverPnRMS(id, rms);
180  setAPDoverPnM3(id, m3);
181  return *this;
182 }
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:172
LMFPrimDat & setAPDoverPnM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:162
LMFPrimDat & setAPDoverPnMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:167

◆ setAPDoverPnM3()

LMFPrimDat & LMFPrimDat::setAPDoverPnM3 ( EcalLogicID id,
float  v 
)

Definition at line 162 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverPn().

162  {
163  LMFDat::setData(id, "APDPNM3", v);
164  return *this;
165 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverPnMean()

LMFPrimDat & LMFPrimDat::setAPDoverPnMean ( EcalLogicID id,
float  v 
)

Definition at line 167 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverPn().

167  {
168  LMFDat::setData(id, "APDPNMEAN", v);
169  return *this;
170 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setAPDoverPnRMS()

LMFPrimDat & LMFPrimDat::setAPDoverPnRMS ( EcalLogicID id,
float  v 
)

Definition at line 172 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setAPDoverPn().

172  {
173  LMFDat::setData(id, "APDPNRMS", v);
174  return *this;
175 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setBeta()

LMFPrimDat & LMFPrimDat::setBeta ( EcalLogicID id,
float  v 
)

Definition at line 194 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

194  {
195  LMFDat::setData(id, "BETA", v);
196  return *this;
197 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setFlag()

LMFPrimDat & LMFPrimDat::setFlag ( EcalLogicID id,
int  v 
)

Definition at line 184 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

184  {
185  LMFDat::setData(id, "FLAG", v);
186  return *this;
187 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setM3()

LMFPrimDat & LMFPrimDat::setM3 ( EcalLogicID id,
float  v 
)

Definition at line 106 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setPN().

106  {
107  LMFDat::setData(id, "M3", v);
108  return *this;
109 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setMean()

LMFPrimDat & LMFPrimDat::setMean ( EcalLogicID id,
float  v 
)

Definition at line 96 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setPN().

96  {
97  LMFDat::setData(id, "MEAN", v);
98  return *this;
99 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setPN()

LMFPrimDat & LMFPrimDat::setPN ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 111 of file LMFPrimDat.cc.

References SiStripPI::mean, SiStripPI::rms, setM3(), setMean(), and setRMS().

111  {
112  setMean(id, mean);
113  setRMS(id, rms);
114  setM3(id, m3);
115  return *this;
116 }
LMFPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:101
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:106
LMFPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:96

◆ setRMS()

LMFPrimDat & LMFPrimDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 101 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

Referenced by setPN().

101  {
102  LMFDat::setData(id, "RMS", v);
103  return *this;
104 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49

◆ setShapeCorr()

LMFPrimDat & LMFPrimDat::setShapeCorr ( EcalLogicID id,
float  v 
)

Definition at line 199 of file LMFPrimDat.cc.

References LMFDat::setData(), and findQualityFiles::v.

199  {
200  LMFDat::setData(id, "SHAPECORR", v);
201  return *this;
202 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49