CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
HcalL1TriggerObjects Class Reference

#include <HcalL1TriggerObjects.h>

Inheritance diagram for HcalL1TriggerObjects:
HcalCondObjectContainer< HcalL1TriggerObject > HcalCondObjectContainerBase

Public Member Functions

std::string getAlgoString () const
 
std::string getTagString () const
 
 HcalL1TriggerObjects ()
 
 HcalL1TriggerObjects (const HcalTopology *topo)
 
std::string myname () const override
 
void setAlgoString (std::string const &fAlgo)
 
void setTagString (std::string const &fTag)
 
- Public Member Functions inherited from HcalCondObjectContainer< HcalL1TriggerObject >
bool addValues (const HcalL1TriggerObject &myItem)
 
bool exists (DetId fId) const
 
std::vector< DetIdgetAllChannels () const
 
const tAllContWithNames getAllContainers () const
 
const HcalL1TriggerObjectgetValues (DetId fId, bool throwOnFail=true) const
 
 HcalCondObjectContainer (const HcalTopology *topo)
 
virtual ~HcalCondObjectContainer ()
 
- Public Member Functions inherited from HcalCondObjectContainerBase
int getCreatorPackedIndexVersion () const
 
void setTopo (const HcalTopology *topo)
 
const HcalTopologytopo () const
 

Private Member Functions

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

Private Attributes

char mAlgo [charArraySize]
 
char mTag [charArraySize]
 

Static Private Attributes

static constexpr std::size_t charArraySize = 128
 

Friends

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

Additional Inherited Members

- Public Types inherited from HcalCondObjectContainer< HcalL1TriggerObject >
typedef std::vector< tHcalConttAllContWithNames
 
typedef std::pair< std::string,
std::vector
< HcalL1TriggerObject > > 
tHcalCont
 
- Protected Member Functions inherited from HcalCondObjectContainerBase
HcalOtherSubdetector extractOther (const DetId &id) const
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase const &o)
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase &&)=default
 
 HcalCondObjectContainerBase (const HcalTopology *)
 
unsigned int indexFor (DetId) const
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase const &o)
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase &&)=default
 
unsigned int sizeFor (DetId) const
 
std::string textForId (const DetId &id) const
 
- Protected Attributes inherited from HcalCondObjectContainerBase
int packedIndexVersion_
 

Detailed Description

Definition at line 14 of file HcalL1TriggerObjects.h.

Constructor & Destructor Documentation

HcalL1TriggerObjects::HcalL1TriggerObjects ( )
inline
HcalL1TriggerObjects::HcalL1TriggerObjects ( const HcalTopology topo)
inline

Member Function Documentation

std::string HcalL1TriggerObjects::getAlgoString ( ) const
inline

Definition at line 41 of file HcalL1TriggerObjects.h.

References mAlgo.

41 { return mAlgo; }
char mAlgo[charArraySize]
std::string HcalL1TriggerObjects::getTagString ( ) const
inline

Definition at line 40 of file HcalL1TriggerObjects.h.

References mTag.

40 { return mTag; }
char mTag[charArraySize]
std::string HcalL1TriggerObjects::myname ( ) const
inlineoverridevirtual

Reimplemented from HcalCondObjectContainer< HcalL1TriggerObject >.

Definition at line 42 of file HcalL1TriggerObjects.h.

42 { return "HcalL1TriggerObjects"; }
template<class Archive >
void HcalL1TriggerObjects::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalL1TriggerObjects::setAlgoString ( std::string const &  fAlgo)
inline

Definition at line 31 of file HcalL1TriggerObjects.h.

References charArraySize, Exception, and mAlgo.

31  {
32  std::size_t maxCharacters = charArraySize - 1;
33  if (fAlgo.size() > maxCharacters) {
34  throw cms::Exception("HcalL1TriggerObjects::setAlgoString: string exceeds array size");
35  }
36  strncpy(mAlgo, fAlgo.c_str(), maxCharacters);
37  mAlgo[maxCharacters] = '\0';
38  }
static constexpr std::size_t charArraySize
char mAlgo[charArraySize]
void HcalL1TriggerObjects::setTagString ( std::string const &  fTag)
inline

Definition at line 22 of file HcalL1TriggerObjects.h.

References charArraySize, Exception, and mTag.

22  {
23  std::size_t maxCharacters = charArraySize - 1;
24  if (fTag.size() > maxCharacters) {
25  throw cms::Exception("HcalL1TriggerObjects::setTagString: string exceeds array size");
26  }
27  strncpy(mTag, fTag.c_str(), maxCharacters);
28  mTag[maxCharacters] = '\0';
29  }
char mTag[charArraySize]
static constexpr std::size_t charArraySize

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 49 of file HcalL1TriggerObjects.h.

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

Definition at line 49 of file HcalL1TriggerObjects.h.

Member Data Documentation

constexpr std::size_t HcalL1TriggerObjects::charArraySize = 128
staticprivate

Definition at line 45 of file HcalL1TriggerObjects.h.

Referenced by setAlgoString(), and setTagString().

char HcalL1TriggerObjects::mAlgo[charArraySize]
private

Definition at line 47 of file HcalL1TriggerObjects.h.

Referenced by getAlgoString(), and setAlgoString().

char HcalL1TriggerObjects::mTag[charArraySize]
private

Definition at line 46 of file HcalL1TriggerObjects.h.

Referenced by getTagString(), and setTagString().