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
LMFPnPrimDat Class Reference

#include <LMFPnPrimDat.h>

Inheritance diagram for LMFPnPrimDat:
LMFColoredTable LMFDat LMFUnique IUniqueDBObject IDBObject

Public Member Functions

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 getPNAoverBM3 (EcalLogicID &id)
 
float getPNAoverBM3 (int id)
 
float getPNAoverBMean (EcalLogicID &id)
 
float getPNAoverBMean (int id)
 
float getPNAoverBRMS (EcalLogicID &id)
 
float getPNAoverBRMS (int id)
 
float getRMS (EcalLogicID &id)
 
float getRMS (int id)
 
float getShapeCor (EcalLogicID &id)
 
float getShapeCor (int id)
 
std::string getTableName () const
 
bool isValid ()
 
 LMFPnPrimDat ()
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFPnPrimDat (EcalDBConnection *c)
 
 LMFPnPrimDat (std::string color, std::string system)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, std::string color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, std::string color, std::string system, bool debug)
 
 LMFPnPrimDat (int color, std::string system)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system)
 
 LMFPnPrimDat (EcalDBConnection *c, int color, std::string system)
 
LMFPnPrimDatsetFlag (EcalLogicID &id, int v)
 
LMFPnPrimDatsetM3 (EcalLogicID &id, float v)
 
LMFPnPrimDatsetMean (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPN (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPnPrimDatsetPNAoverB (EcalLogicID &id, float mean, float rms, float m3)
 
LMFPnPrimDatsetPNAoverBM3 (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPNAoverBMean (EcalLogicID &id, float v)
 
LMFPnPrimDatsetPNAoverBRMS (EcalLogicID &id, float v)
 
LMFPnPrimDatsetRMS (EcalLogicID &id, float v)
 
LMFPnPrimDatsetShapeCorr (EcalLogicID &id, float mean)
 
LMFPnPrimDatsetSystem (std::string s)
 
 ~LMFPnPrimDat ()
 
- 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)
 
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_PN_PRIM_DAT interface ^ ^ | | | _____ color -------— system

Definition at line 19 of file LMFPnPrimDat.h.

Constructor & Destructor Documentation

LMFPnPrimDat::LMFPnPrimDat ( )

Definition at line 3 of file LMFPnPrimDat.cc.

References init().

3  : LMFColoredTable() {
4  init();
5 }
LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 7 of file LMFPnPrimDat.cc.

References init().

8  :
10  init();
11 }
tuple conn
Definition: results_mgr.py:53
LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c)

Definition at line 13 of file LMFPnPrimDat.cc.

References init().

13  : LMFColoredTable(c) {
14  init();
15 }
LMFPnPrimDat::LMFPnPrimDat ( std::string  color,
std::string  system 
)

Definition at line 17 of file LMFPnPrimDat.cc.

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

17  :
18  LMFColoredTable() {
19  init();
20  setColor(color);
21  setSystem(system);
22 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
std::string  color,
std::string  system 
)

Definition at line 24 of file LMFPnPrimDat.cc.

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

26  :
28  init();
29  setColor(color);
30  setSystem(system);
31 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
tuple conn
Definition: results_mgr.py:53
LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system 
)

Definition at line 43 of file LMFPnPrimDat.cc.

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

44  : LMFColoredTable(c) {
45  init();
46  setColor(color);
47  setSystem(system);
48 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system,
bool  debug 
)

Definition at line 33 of file LMFPnPrimDat.cc.

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

34  : LMFColoredTable(c) {
35  if (d) {
36  debug();
37  }
38  init();
39  setColor(color);
40  setSystem(system);
41 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
void debug()
Definition: LMFUnique.h:68
LMFPnPrimDat::LMFPnPrimDat ( int  color,
std::string  system 
)

Definition at line 50 of file LMFPnPrimDat.cc.

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

50  :
51  LMFColoredTable() {
52  init();
53  setColor(color);
54  setSystem(system);
55 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
LMFPnPrimDat::LMFPnPrimDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn,
int  color,
std::string  system 
)

Definition at line 57 of file LMFPnPrimDat.cc.

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

59  :
61  init();
62  setColor(color);
63  setSystem(system);
64 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
tuple conn
Definition: results_mgr.py:53
LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
int  color,
std::string  system 
)

Definition at line 66 of file LMFPnPrimDat.cc.

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

67  : LMFColoredTable(c) {
68  init();
69  setColor(color);
70  setSystem(system);
71 }
LMFColoredTable & setColor(int color)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
LMFPnPrimDat::~LMFPnPrimDat ( )
inline

Definition at line 37 of file LMFPnPrimDat.h.

37 {}

Member Function Documentation

int LMFPnPrimDat::getFlag ( EcalLogicID id)

Definition at line 267 of file LMFPnPrimDat.cc.

References LMFDat::getData().

267  {
268  return getData(id, "FLAG");
269 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
int LMFPnPrimDat::getFlag ( int  id)

Definition at line 231 of file LMFPnPrimDat.cc.

References LMFDat::getData().

231  {
232  return getData(id, "FLAG");
233 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getM3 ( EcalLogicID id)

Definition at line 251 of file LMFPnPrimDat.cc.

References LMFDat::getData().

251  {
252  return getData(id, "M3");
253 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getM3 ( int  id)

Definition at line 215 of file LMFPnPrimDat.cc.

References LMFDat::getData().

215  {
216  return getData(id, "M3");
217 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getMean ( EcalLogicID id)

Definition at line 235 of file LMFPnPrimDat.cc.

References LMFDat::getData().

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

Definition at line 199 of file LMFPnPrimDat.cc.

References LMFDat::getData().

199  {
200  return getData(id, "MEAN");
201 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBM3 ( EcalLogicID id)

Definition at line 255 of file LMFPnPrimDat.cc.

References LMFDat::getData().

255  {
256  return getData(id, "PNABM3");
257 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBM3 ( int  id)

Definition at line 219 of file LMFPnPrimDat.cc.

References LMFDat::getData().

219  {
220  return getData(id, "PNABM3");
221 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBMean ( EcalLogicID id)

Definition at line 259 of file LMFPnPrimDat.cc.

References LMFDat::getData().

259  {
260  return getData(id, "PNABMEAN");
261 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBMean ( int  id)

Definition at line 223 of file LMFPnPrimDat.cc.

References LMFDat::getData().

223  {
224  return getData(id, "PNABMEAN");
225 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBRMS ( EcalLogicID id)

Definition at line 263 of file LMFPnPrimDat.cc.

References LMFDat::getData().

263  {
264  return getData(id, "PNABRMS");
265 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getPNAoverBRMS ( int  id)

Definition at line 227 of file LMFPnPrimDat.cc.

References LMFDat::getData().

227  {
228  return getData(id, "PNABRMS");
229 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getRMS ( EcalLogicID id)

Definition at line 247 of file LMFPnPrimDat.cc.

References LMFDat::getData().

247  {
248  return getData(id, "RMS");
249 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getRMS ( int  id)

Definition at line 211 of file LMFPnPrimDat.cc.

References LMFDat::getData().

211  {
212  return getData(id, "RMS");
213 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float LMFPnPrimDat::getShapeCor ( EcalLogicID id)

Definition at line 239 of file LMFPnPrimDat.cc.

References LMFDat::getData(), LMFColoredTable::getSystem(), and x.

239  {
240  float x = 0.;
241  if (getSystem() != "LED") {
242  x = getData(id, "SHAPECORRPN");
243  }
244  return x;
245 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
Definition: DDAxes.h:10
virtual std::string getSystem() const
float LMFPnPrimDat::getShapeCor ( int  id)

Definition at line 203 of file LMFPnPrimDat.cc.

References LMFDat::getData(), LMFColoredTable::getSystem(), and x.

203  {
204  float x = 0;
205  if (getSystem() != "LED") {
206  x = getData(id, "SHAPECORRPN");
207  }
208  return x;
209 }
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
Definition: DDAxes.h:10
virtual std::string getSystem() const
std::string LMFPnPrimDat::getTableName ( ) const
inlinevirtual

Implements LMFColoredTable.

Definition at line 39 of file LMFPnPrimDat.h.

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

39  {
40  return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT";
41  }
std::string getColor() const
virtual std::string getSystem() const
void LMFPnPrimDat::init ( void  )
private

Definition at line 101 of file LMFPnPrimDat.cc.

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

Referenced by LMFPnPrimDat().

101  {
102  m_className = "LMFPnPrimDat";
103 
104  m_keys["SHAPECORRPN"] = 0;
105  m_keys["MEAN"] = 1;
106  m_keys["RMS"] = 2;
107  m_keys["M3"] = 3;
108  m_keys["PNABMEAN"] = 4;
109  m_keys["PNABRMS"] = 5;
110  m_keys["PNABM3"] = 6;
111  m_keys["FLAG"] = 7;
112  m_keys["VMIN"] = 8;
113  m_keys["VMAX"] = 9;
114 
115  m_type.resize(10);
116  for (int i = 0; i < 10; i++) {
117  m_type[i] = "NUMBER";
118  }
119 
120  m_system = 0;
121  m_color = 0;
122 }
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 LMFPnPrimDat::isValid ( void  )
virtual

Reimplemented from LMFDat.

Definition at line 124 of file LMFPnPrimDat.cc.

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

124  {
125  bool ret = true;
126  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
127  m_Error += " System name not properly set [" + getSystem() + "]";
128  ret = false;
129  }
130  if ((getSystem() == "LASER") &&
131  (getColor() != "BLUE") && (getColor() != "IR")) {
132  m_Error += " Color not properly set [" + getColor() + "]";
133  ret = false;
134  }
135  if ((getSystem() == "LED") &&
136  (getColor() != "BLUE") && (getColor() != "ORANGE")) {
137  m_Error += " Color not properly set [" + getColor() + "]";
138  ret = false;
139  }
140  return ret;
141 }
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:157
virtual std::string getSystem() const
LMFPnPrimDat & LMFPnPrimDat::setFlag ( EcalLogicID id,
int  v 
)

Definition at line 194 of file LMFPnPrimDat.cc.

References LMFDat::setData().

194  {
195  LMFDat::setData(id, "FLAG", v);
196  return *this;
197 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setM3 ( EcalLogicID id,
float  v 
)

Definition at line 153 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

153  {
154  LMFDat::setData(id, "M3", v);
155  return *this;
156 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setMean ( EcalLogicID id,
float  v 
)

Definition at line 143 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

143  {
144  LMFDat::setData(id, "MEAN", v);
145  return *this;
146 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setPN ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 158 of file LMFPnPrimDat.cc.

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

159  {
160  setMean(id, mean);
161  setRMS(id, rms);
162  setM3(id, m3);
163  return *this;
164 }
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
LMFPnPrimDat & setM3(EcalLogicID &id, float v)
LMFPnPrimDat & setMean(EcalLogicID &id, float v)
LMFPnPrimDat & LMFPnPrimDat::setPNAoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 187 of file LMFPnPrimDat.cc.

References setPNAoverBM3(), setPNAoverBMean(), and setPNAoverBRMS().

188  {
189  setPNAoverBMean(id, mean);
190  setPNAoverBRMS(id, rms);
191  setPNAoverBM3(id, m3);
192  return *this;
193 }
LMFPnPrimDat & setPNAoverBMean(EcalLogicID &id, float v)
LMFPnPrimDat & setPNAoverBRMS(EcalLogicID &id, float v)
LMFPnPrimDat & setPNAoverBM3(EcalLogicID &id, float v)
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 172 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPNAoverB().

172  {
173  LMFDat::setData(id, "PNABM3", v);
174  return *this;
175 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 177 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPNAoverB().

177  {
178  LMFDat::setData(id, "PNABMEAN", v);
179  return *this;
180 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setPNAoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 182 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPNAoverB().

182  {
183  LMFDat::setData(id, "PNABRMS", v);
184  return *this;
185 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setRMS ( EcalLogicID id,
float  v 
)

Definition at line 148 of file LMFPnPrimDat.cc.

References LMFDat::setData().

Referenced by setPN().

148  {
149  LMFDat::setData(id, "RMS", v);
150  return *this;
151 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
LMFPnPrimDat & LMFPnPrimDat::setShapeCorr ( EcalLogicID id,
float  mean 
)

Definition at line 165 of file LMFPnPrimDat.cc.

References LMFColoredTable::getSystem(), and LMFDat::setData().

165  {
166  if (getSystem() != "LED") {
167  LMFDat::setData(id, "SHAPECORRPN", v);
168  }
169  return *this;
170 }
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
mathSSE::Vec4< T > v
virtual std::string getSystem() const
LMFPnPrimDat & LMFPnPrimDat::setSystem ( std::string  s)
virtual

Reimplemented from LMFColoredTable.

Definition at line 73 of file LMFPnPrimDat.cc.

References gather_cfg::cout, alignCSCRings::e, i, LMFDat::m_data, LMFUnique::m_debug, LMFDat::m_keys, LMFDat::m_type, LMFColoredTable::setSystem(), and create_public_pileup_plots::transform.

Referenced by LMFPnPrimDat().

73  {
74  // LED tables do not hold the shapecorr column. Drop it.
75  std::transform(s.begin(), s.end(), s.begin(), toupper);
76  if (s == "LED") {
77  if (m_debug) {
78  std::cout << "Erasing unwanted data" << std::endl;
79  }
80  m_type.erase(m_type.begin());
81  m_keys.erase("SHAPECORRPN");
82  if (m_debug) {
83  std::cout << "Data: " << m_data.size() << " Keys: " << m_keys.size()
84  << " Type: " << m_type.size() << std::endl;
85  }
86  std::map<std::string, unsigned int>::iterator i = m_keys.begin();
87  std::map<std::string, unsigned int>::iterator e = m_keys.end();
88  while (i != e) {
89  // modify indexes
90  (i->second)--;
91  if (m_debug) {
92  std::cout << "Key " << i->first << " = " << i->second << std::endl;
93  }
94  i++;
95  }
96  }
98  return *this;
99 }
int i
Definition: DBlmapReader.cc:9
std::map< int, std::vector< float > > m_data
Definition: LMFDat.h:153
std::vector< std::string > m_type
Definition: LMFDat.h:150
virtual LMFColoredTable & setSystem(int system)
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
tuple cout
Definition: gather_cfg.py:121
char m_debug
Definition: LMFUnique.h:100