CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Friends
PTrackerAdditionalParametersPerDet Class Reference

#include <PTrackerAdditionalParametersPerDet.h>

Public Types

enum  BoolParamIndex { BRICKEDNESS = 0, BSIZE = 1 }
 
enum  FloatParamIndex { FSIZE = 0 }
 
enum  IntParamIndex { GEOGRAPHICAL_ID = 0, ISIZE = 1 }
 

Public Member Functions

std::vector< bool > getAllBricked () const
 
std::vector< int > getAllGeographicalIds () const
 
bool getBricked (int theIndex) const
 
int getGeographicalId (int theIndex) const
 
 PTrackerAdditionalParametersPerDet ()
 
void setBricked (bool isBricked)
 
void setGeographicalId (int geographicalId)
 
 ~PTrackerAdditionalParametersPerDet ()
 

Public Attributes

std::vector< std::vector< bool > > boolParams_
 
std::vector< std::vector< float > > floatParams_
 
std::vector< std::vector< int > > intParams_
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 9 of file PTrackerAdditionalParametersPerDet.h.

Member Enumeration Documentation

◆ BoolParamIndex

Enumerator
BRICKEDNESS 
BSIZE 

Definition at line 19 of file PTrackerAdditionalParametersPerDet.h.

19 { BRICKEDNESS = 0, BSIZE = 1 };

◆ FloatParamIndex

Enumerator
FSIZE 

Definition at line 20 of file PTrackerAdditionalParametersPerDet.h.

20 { FSIZE = 0 };

◆ IntParamIndex

Enumerator
GEOGRAPHICAL_ID 
ISIZE 

Definition at line 18 of file PTrackerAdditionalParametersPerDet.h.

18 { GEOGRAPHICAL_ID = 0, ISIZE = 1 };

Constructor & Destructor Documentation

◆ PTrackerAdditionalParametersPerDet()

PTrackerAdditionalParametersPerDet::PTrackerAdditionalParametersPerDet ( )
inline

Definition at line 11 of file PTrackerAdditionalParametersPerDet.h.

11  {
12  intParams_.resize(ISIZE, std::vector<int>(0, 0));
13  floatParams_.resize(FSIZE, std::vector<float>(0, 0.));
14  boolParams_.resize(BSIZE, std::vector<bool>(0, false));
15  };

References boolParams_, BSIZE, floatParams_, FSIZE, intParams_, and ISIZE.

◆ ~PTrackerAdditionalParametersPerDet()

PTrackerAdditionalParametersPerDet::~PTrackerAdditionalParametersPerDet ( )
inline

Definition at line 16 of file PTrackerAdditionalParametersPerDet.h.

16 {};

Member Function Documentation

◆ getAllBricked()

std::vector< bool > PTrackerAdditionalParametersPerDet::getAllBricked ( ) const

Definition at line 42 of file PTrackerAdditionalParametersPerDet.cc.

42  {
43  return getAllParams(boolParams_, BRICKEDNESS);
44 }

References boolParams_, and BRICKEDNESS.

Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel().

◆ getAllGeographicalIds()

std::vector< int > PTrackerAdditionalParametersPerDet::getAllGeographicalIds ( ) const

Definition at line 34 of file PTrackerAdditionalParametersPerDet.cc.

34  {
35  return getAllParams(intParams_, GEOGRAPHICAL_ID);
36 }

References GEOGRAPHICAL_ID, and intParams_.

Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel().

◆ getBricked()

bool PTrackerAdditionalParametersPerDet::getBricked ( int  theIndex) const

Definition at line 38 of file PTrackerAdditionalParametersPerDet.cc.

38  {
39  return getThisParam(boolParams_, BRICKEDNESS, theIndex);
40 }

References boolParams_, and BRICKEDNESS.

◆ getGeographicalId()

int PTrackerAdditionalParametersPerDet::getGeographicalId ( int  theIndex) const

Definition at line 30 of file PTrackerAdditionalParametersPerDet.cc.

30  {
31  return getThisParam(intParams_, GEOGRAPHICAL_ID, theIndex);
32 }

References GEOGRAPHICAL_ID, and intParams_.

◆ serialize()

template<class Archive >
void PTrackerAdditionalParametersPerDet::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setBricked()

void PTrackerAdditionalParametersPerDet::setBricked ( bool  isBricked)

Definition at line 50 of file PTrackerAdditionalParametersPerDet.cc.

50  {
51  setThisParam(boolParams_, BRICKEDNESS, isBricked);
52 }

References boolParams_, and BRICKEDNESS.

Referenced by PTrackerAdditionalParametersPerDetDBBuilder::beginRun().

◆ setGeographicalId()

void PTrackerAdditionalParametersPerDet::setGeographicalId ( int  geographicalId)

Definition at line 46 of file PTrackerAdditionalParametersPerDet.cc.

46  {
47  setThisParam(intParams_, GEOGRAPHICAL_ID, geographicalId);
48 }

References GEOGRAPHICAL_ID, and intParams_.

Referenced by PTrackerAdditionalParametersPerDetDBBuilder::beginRun().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 34 of file PTrackerAdditionalParametersPerDet.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 34 of file PTrackerAdditionalParametersPerDet.h.

Member Data Documentation

◆ boolParams_

std::vector<std::vector<bool> > PTrackerAdditionalParametersPerDet::boolParams_

◆ floatParams_

std::vector<std::vector<float> > PTrackerAdditionalParametersPerDet::floatParams_

◆ intParams_

std::vector<std::vector<int> > PTrackerAdditionalParametersPerDet::intParams_
PTrackerAdditionalParametersPerDet::ISIZE
Definition: PTrackerAdditionalParametersPerDet.h:18
PTrackerAdditionalParametersPerDet::intParams_
std::vector< std::vector< int > > intParams_
Definition: PTrackerAdditionalParametersPerDet.h:30
PTrackerAdditionalParametersPerDet::GEOGRAPHICAL_ID
Definition: PTrackerAdditionalParametersPerDet.h:18
PTrackerAdditionalParametersPerDet::floatParams_
std::vector< std::vector< float > > floatParams_
Definition: PTrackerAdditionalParametersPerDet.h:32
PTrackerAdditionalParametersPerDet::FSIZE
Definition: PTrackerAdditionalParametersPerDet.h:20
PTrackerAdditionalParametersPerDet::BSIZE
Definition: PTrackerAdditionalParametersPerDet.h:19
PTrackerAdditionalParametersPerDet::BRICKEDNESS
Definition: PTrackerAdditionalParametersPerDet.h:19
PTrackerAdditionalParametersPerDet::boolParams_
std::vector< std::vector< bool > > boolParams_
Definition: PTrackerAdditionalParametersPerDet.h:31