#include <SiPixel2DTemplateDBObject.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 16 of file SiPixel2DTemplateDBObject.h.
◆ SiPixel2DTemplateDBObject()
SiPixel2DTemplateDBObject::SiPixel2DTemplateDBObject |
( |
| ) |
|
|
inline |
◆ ~SiPixel2DTemplateDBObject()
virtual SiPixel2DTemplateDBObject::~SiPixel2DTemplateDBObject |
( |
| ) |
|
|
inlinevirtual |
◆ fail()
bool SiPixel2DTemplateDBObject::fail |
( |
| ) |
|
|
inline |
◆ getTemplateID()
short SiPixel2DTemplateDBObject::getTemplateID |
( |
const uint32_t & |
detid | ) |
const |
|
inline |
◆ getTemplateIDs()
const std::map<unsigned int, short>& SiPixel2DTemplateDBObject::getTemplateIDs |
( |
| ) |
const |
|
inline |
◆ incrementIndex()
void SiPixel2DTemplateDBObject::incrementIndex |
( |
int |
i | ) |
|
|
inline |
◆ index()
int SiPixel2DTemplateDBObject::index |
( |
| ) |
const |
|
inline |
◆ maxIndex()
int SiPixel2DTemplateDBObject::maxIndex |
( |
| ) |
const |
|
inline |
◆ numOfTempl()
int SiPixel2DTemplateDBObject::numOfTempl |
( |
| ) |
const |
|
inline |
◆ operator>>() [1/2]
◆ operator>>() [2/2]
◆ push_back()
void SiPixel2DTemplateDBObject::push_back |
( |
float |
entry | ) |
|
|
inline |
◆ putTemplateID()
bool SiPixel2DTemplateDBObject::putTemplateID |
( |
const uint32_t & |
detid, |
|
|
short & |
value |
|
) |
| |
|
inline |
Definition at line 79 of file SiPixel2DTemplateDBObject.h.
References templ_ID, and relativeConstraints::value.
80 std::map<unsigned int, short>::const_iterator
id =
templ_ID.find(detid);
83 <<
"2Dtemplate ID for DetID " << detid <<
" is already stored. Skipping this put" << std::endl;
Log< level::Error, false > LogError
std::map< unsigned int, short > templ_ID
◆ putTemplateIDs()
void SiPixel2DTemplateDBObject::putTemplateIDs |
( |
std::map< unsigned int, short > & |
t_ID | ) |
|
|
inline |
◆ serialize()
template<class Archive >
void SiPixel2DTemplateDBObject::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ setIndex()
void SiPixel2DTemplateDBObject::setIndex |
( |
int |
index | ) |
|
|
inline |
◆ setInvalid()
void SiPixel2DTemplateDBObject::setInvalid |
( |
void |
| ) |
|
|
inline |
◆ setMaxIndex()
void SiPixel2DTemplateDBObject::setMaxIndex |
( |
int |
maxIndex | ) |
|
|
inline |
◆ setNumOfTempl()
void SiPixel2DTemplateDBObject::setNumOfTempl |
( |
int |
numOfTempl | ) |
|
|
inline |
◆ setVersion()
void SiPixel2DTemplateDBObject::setVersion |
( |
float |
version | ) |
|
|
inline |
◆ sVector()
std::vector<float> SiPixel2DTemplateDBObject::sVector |
( |
| ) |
const |
|
inline |
◆ version()
float SiPixel2DTemplateDBObject::version |
( |
| ) |
const |
|
inline |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ cond::serialization::access
template<typename CondSerializationT , typename Enabled >
◆ operator<<
-index to keep track of where we are in the object
-these are modifiable parameters for the extended 2DTemplates
-entries takes the number of entries in By,Bx,Fy,Fx from the object
-local indicies for loops
-changes the size of the 2DTemplates based on the version
Definition at line 199 of file SiPixel2DTemplateDBObjectReader.cc.
203 int txsize[4] = {7, 13, 0, 0};
204 int tysize[4] = {21, 21, 0, 0};
206 int entries[4] = {0};
208 int i,
j,
k,
l,
m,
n, entry_it;
210 int sizeSetter = 0, generrorVersion = 0;
212 edm::LogPrint(
"SiPixel2DTemplateDBObjectReader") <<
"\n\nDBobject version: " << dbobject.
version() << std::endl;
217 if (generrorVersion <= 10) {
219 <<
"*****WARNING***** This code will not format this 2DTemplate version properly *****WARNING*****\n";
221 }
else if (generrorVersion <= 16)
225 <<
"*****WARNING***** This code has not been tested at formatting this version *****WARNING*****\n";
228 <<
"\n\n*********************************************************************************************" 231 <<
"*************** Reading 2DTemplate ID " << dbobject.
sVector_[
index + 20] <<
"\t(" <<
m + 1
232 <<
"/" << dbobject.
numOfTempl_ <<
") ***************" << std::endl;
234 <<
"*********************************************************************************************\n\n" 239 for (
n = 0;
n < 20; ++
n) {
259 for (entry_it = 0; entry_it < 4; ++entry_it) {
261 for (
i = 0;
i < entries[entry_it]; ++
i) {
274 for (
j = 0;
j < 2; ++
j) {
275 for (
k = 0;
k < 5; ++
k) {
282 for (
j = 0;
j < 9; ++
j) {
283 for (
k = 0;
k < tysize[sizeSetter]; ++
k) {
290 for (
j = 0;
j < 2; ++
j) {
291 for (
k = 0;
k < 5; ++
k) {
298 for (
j = 0;
j < 9; ++
j) {
299 for (
k = 0;
k < txsize[sizeSetter]; ++
k) {
306 for (
j = 0;
j < 4; ++
j) {
307 for (
k = 0;
k < 4; ++
k) {
314 for (
j = 0;
j < 4; ++
j) {
315 for (
k = 0;
k < 6; ++
k) {
322 for (
j = 0;
j < 4; ++
j) {
323 for (
k = 0;
k < 4; ++
k) {
330 for (
j = 0;
j < 4; ++
j) {
331 for (
k = 0;
k < 6; ++
k) {
338 for (
j = 0;
j < 4; ++
j) {
339 for (
k = 0;
k < 2; ++
k) {
340 for (
l = 0;
l < 2; ++
l) {
348 for (
j = 0;
j < 4; ++
j) {
349 for (
k = 0;
k < 4; ++
k) {
356 for (
j = 0;
j < 4; ++
j) {
357 for (
k = 0;
k < 4; ++
k) {
364 for (
j = 0;
j < 4; ++
j) {
365 for (
k = 0;
k < 4; ++
k) {
372 for (
j = 0;
j < 4; ++
j) {
373 for (
k = 0;
k < 4; ++
k) {
380 for (
j = 0;
j < 20; ++
j) {
383 if (
j == 9 ||
j == 19)
Log< level::Warning, true > LogPrint
std::vector< float > sVector_
◆ index_
int SiPixel2DTemplateDBObject::index_ |
|
private |
◆ isInvalid_
bool SiPixel2DTemplateDBObject::isInvalid_ |
|
private |
◆ maxIndex_
int SiPixel2DTemplateDBObject::maxIndex_ |
|
private |
◆ numOfTempl_
int SiPixel2DTemplateDBObject::numOfTempl_ |
|
private |
◆ sVector_
std::vector<float> SiPixel2DTemplateDBObject::sVector_ |
|
private |
◆ templ_ID
std::map<unsigned int, short> SiPixel2DTemplateDBObject::templ_ID |
|
private |
◆ version_
float SiPixel2DTemplateDBObject::version_ |
|
private |