CMS 3D CMS Logo

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 override
 
bool isValid () override
 
 LMFPnPrimDat ()
 
 LMFPnPrimDat (EcalDBConnection *c)
 
 LMFPnPrimDat (EcalDBConnection *c, int 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)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system)
 
 LMFPnPrimDat (oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system)
 
 LMFPnPrimDat (std::string 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) override
 
 ~LMFPnPrimDat () 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)
 
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 (const EcalLogicID &id) 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 (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)
 
std::map< int, std::vector< float > > fetchData () noexcept(false)
 
virtual std::string foreignKeyName () const
 
std::map< int, std::vector< float > > getData ()
 
std::vector< float > getData (const EcalLogicID &id)
 
float getData (const EcalLogicID &id, const std::string &key)
 
bool getData (const EcalLogicID &id, const std::string &key, float &ret)
 
bool getData (const EcalLogicID &id, std::vector< float > &ret)
 
float getData (const EcalLogicID &id, unsigned int k)
 
bool getData (const EcalLogicID &id, unsigned int k, float &ret)
 
std::vector< float > getData (int id)
 
float getData (int id, const std::string &key)
 
bool getData (int id, const std::string &key, float &ret)
 
bool getData (int id, std::vector< float > &ret)
 
float getData (int id, unsigned int k)
 
bool getData (int id, unsigned int k, 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 (const EcalLogicID &logic_id, const std::string &key, float v)
 
LMFDatsetData (const EcalLogicID &logic_id, const std::vector< float > &data)
 
LMFDatsetData (int logic_id, const std::vector< float > &data)
 
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 boost::ptr_list< LMFUniquefetchAll () 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 (EcalDBConnection *c)
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
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 const int 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_PN_PRIM_DAT interface ^ ^ | | | _____ color -------— system

Definition at line 19 of file LMFPnPrimDat.h.

Constructor & Destructor Documentation

◆ LMFPnPrimDat() [1/10]

LMFPnPrimDat::LMFPnPrimDat ( )

Definition at line 3 of file LMFPnPrimDat.cc.

3 : LMFColoredTable() { init(); }

References init().

◆ LMFPnPrimDat() [2/10]

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

Definition at line 5 of file LMFPnPrimDat.cc.

7  init();
8 }

References init().

◆ LMFPnPrimDat() [3/10]

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c)

Definition at line 10 of file LMFPnPrimDat.cc.

10 : LMFColoredTable(c) { init(); }

References init().

◆ LMFPnPrimDat() [4/10]

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

Definition at line 12 of file LMFPnPrimDat.cc.

12  : LMFColoredTable() {
13  init();
14  setColor(color);
15  setSystem(system);
16 }

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

◆ LMFPnPrimDat() [5/10]

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

Definition at line 18 of file LMFPnPrimDat.cc.

23  init();
24  setColor(color);
25  setSystem(system);
26 }

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

◆ LMFPnPrimDat() [6/10]

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

Definition at line 37 of file LMFPnPrimDat.cc.

37  : LMFColoredTable(c) {
38  init();
39  setColor(color);
40  setSystem(system);
41 }

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

◆ LMFPnPrimDat() [7/10]

LMFPnPrimDat::LMFPnPrimDat ( EcalDBConnection c,
std::string  color,
std::string  system,
bool  debug 
)

Definition at line 28 of file LMFPnPrimDat.cc.

28  : LMFColoredTable(c) {
29  if (d) {
30  debug();
31  }
32  init();
33  setColor(color);
34  setSystem(system);
35 }

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

◆ LMFPnPrimDat() [8/10]

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

Definition at line 43 of file LMFPnPrimDat.cc.

43  : LMFColoredTable() {
44  init();
45  setColor(color);
46  setSystem(system);
47 }

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

◆ LMFPnPrimDat() [9/10]

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

Definition at line 49 of file LMFPnPrimDat.cc.

51  init();
52  setColor(color);
53  setSystem(system);
54 }

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

◆ LMFPnPrimDat() [10/10]

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

Definition at line 56 of file LMFPnPrimDat.cc.

56  : LMFColoredTable(c) {
57  init();
58  setColor(color);
59  setSystem(system);
60 }

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

◆ ~LMFPnPrimDat()

LMFPnPrimDat::~LMFPnPrimDat ( )
inlineoverride

Definition at line 31 of file LMFPnPrimDat.h.

31 {}

Member Function Documentation

◆ getFlag() [1/2]

int LMFPnPrimDat::getFlag ( EcalLogicID id)

Definition at line 225 of file LMFPnPrimDat.cc.

225 { return getData(id, "FLAG"); }

References LMFDat::getData().

◆ getFlag() [2/2]

int LMFPnPrimDat::getFlag ( int  id)

Definition at line 203 of file LMFPnPrimDat.cc.

203 { return getData(id, "FLAG"); }

References LMFDat::getData().

◆ getM3() [1/2]

float LMFPnPrimDat::getM3 ( EcalLogicID id)

Definition at line 217 of file LMFPnPrimDat.cc.

217 { return getData(id, "M3"); }

References LMFDat::getData().

◆ getM3() [2/2]

float LMFPnPrimDat::getM3 ( int  id)

Definition at line 195 of file LMFPnPrimDat.cc.

195 { return getData(id, "M3"); }

References LMFDat::getData().

◆ getMean() [1/2]

float LMFPnPrimDat::getMean ( EcalLogicID id)

Definition at line 205 of file LMFPnPrimDat.cc.

205 { return getData(id, "MEAN"); }

References LMFDat::getData().

◆ getMean() [2/2]

float LMFPnPrimDat::getMean ( int  id)

Definition at line 183 of file LMFPnPrimDat.cc.

183 { return getData(id, "MEAN"); }

References LMFDat::getData().

◆ getPNAoverBM3() [1/2]

float LMFPnPrimDat::getPNAoverBM3 ( EcalLogicID id)

Definition at line 219 of file LMFPnPrimDat.cc.

219 { return getData(id, "PNABM3"); }

References LMFDat::getData().

◆ getPNAoverBM3() [2/2]

float LMFPnPrimDat::getPNAoverBM3 ( int  id)

Definition at line 197 of file LMFPnPrimDat.cc.

197 { return getData(id, "PNABM3"); }

References LMFDat::getData().

◆ getPNAoverBMean() [1/2]

float LMFPnPrimDat::getPNAoverBMean ( EcalLogicID id)

Definition at line 221 of file LMFPnPrimDat.cc.

221 { return getData(id, "PNABMEAN"); }

References LMFDat::getData().

◆ getPNAoverBMean() [2/2]

float LMFPnPrimDat::getPNAoverBMean ( int  id)

Definition at line 199 of file LMFPnPrimDat.cc.

199 { return getData(id, "PNABMEAN"); }

References LMFDat::getData().

◆ getPNAoverBRMS() [1/2]

float LMFPnPrimDat::getPNAoverBRMS ( EcalLogicID id)

Definition at line 223 of file LMFPnPrimDat.cc.

223 { return getData(id, "PNABRMS"); }

References LMFDat::getData().

◆ getPNAoverBRMS() [2/2]

float LMFPnPrimDat::getPNAoverBRMS ( int  id)

Definition at line 201 of file LMFPnPrimDat.cc.

201 { return getData(id, "PNABRMS"); }

References LMFDat::getData().

◆ getRMS() [1/2]

float LMFPnPrimDat::getRMS ( EcalLogicID id)

Definition at line 215 of file LMFPnPrimDat.cc.

215 { return getData(id, "RMS"); }

References LMFDat::getData().

◆ getRMS() [2/2]

float LMFPnPrimDat::getRMS ( int  id)

Definition at line 193 of file LMFPnPrimDat.cc.

193 { return getData(id, "RMS"); }

References LMFDat::getData().

◆ getShapeCor() [1/2]

float LMFPnPrimDat::getShapeCor ( EcalLogicID id)

Definition at line 207 of file LMFPnPrimDat.cc.

207  {
208  float x = 0.;
209  if (getSystem() != "LED") {
210  x = getData(id, "SHAPECORRPN");
211  }
212  return x;
213 }

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

◆ getShapeCor() [2/2]

float LMFPnPrimDat::getShapeCor ( int  id)

Definition at line 185 of file LMFPnPrimDat.cc.

185  {
186  float x = 0;
187  if (getSystem() != "LED") {
188  x = getData(id, "SHAPECORRPN");
189  }
190  return x;
191 }

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

◆ getTableName()

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

Implements LMFColoredTable.

Definition at line 33 of file LMFPnPrimDat.h.

33 { return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT"; }

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

◆ init()

void LMFPnPrimDat::init ( void  )
private

Definition at line 89 of file LMFPnPrimDat.cc.

89  {
90  m_className = "LMFPnPrimDat";
91 
92  m_keys["SHAPECORRPN"] = 0;
93  m_keys["MEAN"] = 1;
94  m_keys["RMS"] = 2;
95  m_keys["M3"] = 3;
96  m_keys["PNABMEAN"] = 4;
97  m_keys["PNABRMS"] = 5;
98  m_keys["PNABM3"] = 6;
99  m_keys["FLAG"] = 7;
100  m_keys["VMIN"] = 8;
101  m_keys["VMAX"] = 9;
102 
103  m_type.resize(10);
104  for (int i = 0; i < 10; i++) {
105  m_type[i] = "NUMBER";
106  }
107 
108  m_system = 0;
109  m_color = 0;
110 }

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

Referenced by LMFPnPrimDat().

◆ isValid()

bool LMFPnPrimDat::isValid ( void  )
overridevirtual

Reimplemented from LMFDat.

Definition at line 112 of file LMFPnPrimDat.cc.

112  {
113  bool ret = true;
114  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
115  m_Error += " System name not properly set [" + getSystem() + "]";
116  ret = false;
117  }
118  if ((getSystem() == "LASER") && (getColor() != "BLUE") && (getColor() != "IR")) {
119  m_Error += " Color not properly set [" + getColor() + "]";
120  ret = false;
121  }
122  if ((getSystem() == "LED") && (getColor() != "BLUE") && (getColor() != "ORANGE")) {
123  m_Error += " Color not properly set [" + getColor() + "]";
124  ret = false;
125  }
126  return ret;
127 }

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

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

◆ setFlag()

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

Definition at line 178 of file LMFPnPrimDat.cc.

178  {
179  LMFDat::setData(id, "FLAG", v);
180  return *this;
181 }

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

◆ setM3()

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

Definition at line 139 of file LMFPnPrimDat.cc.

139  {
140  LMFDat::setData(id, "M3", v);
141  return *this;
142 }

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

Referenced by setPN().

◆ setMean()

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

Definition at line 129 of file LMFPnPrimDat.cc.

129  {
130  LMFDat::setData(id, "MEAN", v);
131  return *this;
132 }

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

Referenced by setPN().

◆ setPN()

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

Definition at line 144 of file LMFPnPrimDat.cc.

144  {
145  setMean(id, mean);
146  setRMS(id, rms);
147  setM3(id, m3);
148  return *this;
149 }

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

◆ setPNAoverB()

LMFPnPrimDat & LMFPnPrimDat::setPNAoverB ( EcalLogicID id,
float  mean,
float  rms,
float  m3 
)

Definition at line 172 of file LMFPnPrimDat.cc.

172  {
173  setPNAoverBMean(id, mean);
174  setPNAoverBRMS(id, rms);
175  setPNAoverBM3(id, m3);
176  return *this;
177 }

References SiStripPI::mean, SiStripPI::rms, setPNAoverBM3(), setPNAoverBMean(), and setPNAoverBRMS().

◆ setPNAoverBM3()

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBM3 ( EcalLogicID id,
float  v 
)

Definition at line 157 of file LMFPnPrimDat.cc.

157  {
158  LMFDat::setData(id, "PNABM3", v);
159  return *this;
160 }

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

Referenced by setPNAoverB().

◆ setPNAoverBMean()

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBMean ( EcalLogicID id,
float  v 
)

Definition at line 162 of file LMFPnPrimDat.cc.

162  {
163  LMFDat::setData(id, "PNABMEAN", v);
164  return *this;
165 }

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

Referenced by setPNAoverB().

◆ setPNAoverBRMS()

LMFPnPrimDat & LMFPnPrimDat::setPNAoverBRMS ( EcalLogicID id,
float  v 
)

Definition at line 167 of file LMFPnPrimDat.cc.

167  {
168  LMFDat::setData(id, "PNABRMS", v);
169  return *this;
170 }

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

Referenced by setPNAoverB().

◆ setRMS()

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

Definition at line 134 of file LMFPnPrimDat.cc.

134  {
135  LMFDat::setData(id, "RMS", v);
136  return *this;
137 }

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

Referenced by setPN().

◆ setShapeCorr()

LMFPnPrimDat & LMFPnPrimDat::setShapeCorr ( EcalLogicID id,
float  mean 
)

Definition at line 150 of file LMFPnPrimDat.cc.

150  {
151  if (getSystem() != "LED") {
152  LMFDat::setData(id, "SHAPECORRPN", v);
153  }
154  return *this;
155 }

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

◆ setSystem()

LMFPnPrimDat & LMFPnPrimDat::setSystem ( std::string  s)
overridevirtual

Reimplemented from LMFColoredTable.

Definition at line 62 of file LMFPnPrimDat.cc.

62  {
63  // LED tables do not hold the shapecorr column. Drop it.
64  std::transform(s.begin(), s.end(), s.begin(), toupper);
65  if (s == "LED") {
66  if (m_debug) {
67  std::cout << "Erasing unwanted data" << std::endl;
68  }
69  m_type.erase(m_type.begin());
70  m_keys.erase("SHAPECORRPN");
71  if (m_debug) {
72  std::cout << "Data: " << m_data.size() << " Keys: " << m_keys.size() << " Type: " << m_type.size() << std::endl;
73  }
74  std::map<std::string, unsigned int>::iterator i = m_keys.begin();
75  std::map<std::string, unsigned int>::iterator e = m_keys.end();
76  while (i != e) {
77  // modify indexes
78  (i->second)--;
79  if (m_debug) {
80  std::cout << "Key " << i->first << " = " << i->second << std::endl;
81  }
82  i++;
83  }
84  }
86  return *this;
87 }

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

Referenced by LMFPnPrimDat().

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
LMFPnPrimDat::setPNAoverBRMS
LMFPnPrimDat & setPNAoverBRMS(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:167
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
mps_fire.i
i
Definition: mps_fire.py:355
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
LMFColoredTable::setSystem
virtual LMFColoredTable & setSystem(int system)
Definition: LMFColoredTable.h:40
LMFPnPrimDat::setPNAoverBMean
LMFPnPrimDat & setPNAoverBMean(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:162
LMFPnPrimDat::setSystem
LMFPnPrimDat & setSystem(std::string s) override
Definition: LMFPnPrimDat.cc:62
LMFPnPrimDat::init
void init()
Definition: LMFPnPrimDat.cc:89
gather_cfg.cout
cout
Definition: gather_cfg.py:144
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:95
DDAxes::x
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFColoredTable::setColor
LMFColoredTable & setColor(int color)
Definition: LMFColoredTable.h:32
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
LMFPnPrimDat::setRMS
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:134
LMFColoredTable::getSystem
virtual std::string getSystem() const
Definition: LMFColoredTable.cc:48
LMFUnique::m_debug
char m_debug
Definition: LMFUnique.h:96
LMFPnPrimDat::setMean
LMFPnPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:129
alignCSCRings.s
s
Definition: alignCSCRings.py:92
LMFDat::m_data
std::map< int, std::vector< float > > m_data
Definition: LMFDat.h:143
LMFColoredTable::m_system
int m_system
Definition: LMFColoredTable.h:71
LMFColoredTable::LMFColoredTable
LMFColoredTable()
Definition: LMFColoredTable.cc:3
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
web.browse_db.env
env
Definition: browse_db.py:18
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFPnPrimDat::setM3
LMFPnPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:139
LMFPnPrimDat::setPNAoverBM3
LMFPnPrimDat & setPNAoverBM3(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:157
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFColoredTable::m_color
int m_color
Definition: LMFColoredTable.h:70
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
ztail.d
d
Definition: ztail.py:151
LMFUnique::debug
void debug()
Definition: LMFUnique.h:70
LMFDat::m_type
std::vector< std::string > m_type
Definition: LMFDat.h:140
LMFDat::m_Error
std::string m_Error
Definition: LMFDat.h:147
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37