CMS 3D CMS Logo

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 (const HcalTopology *)
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase &&)=default
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase const &o)
 
unsigned int indexFor (DetId) const
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase &&)=default
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase const &o)
 
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() [1/2]

HcalL1TriggerObjects::HcalL1TriggerObjects ( )
inline

Definition at line 17 of file HcalL1TriggerObjects.h.

◆ HcalL1TriggerObjects() [2/2]

HcalL1TriggerObjects::HcalL1TriggerObjects ( const HcalTopology topo)
inline

Member Function Documentation

◆ getAlgoString()

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

Definition at line 41 of file HcalL1TriggerObjects.h.

41 { return mAlgo; }

References mAlgo.

◆ getTagString()

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

Definition at line 40 of file HcalL1TriggerObjects.h.

40 { return mTag; }

References mTag.

◆ myname()

std::string HcalL1TriggerObjects::myname ( ) const
inlineoverridevirtual

Reimplemented from HcalCondObjectContainer< HcalL1TriggerObject >.

Definition at line 42 of file HcalL1TriggerObjects.h.

42 { return "HcalL1TriggerObjects"; }

◆ serialize()

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

◆ setAlgoString()

void HcalL1TriggerObjects::setAlgoString ( std::string const &  fAlgo)
inline

Definition at line 31 of file HcalL1TriggerObjects.h.

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  }

References charArraySize, Exception, and mAlgo.

◆ setTagString()

void HcalL1TriggerObjects::setTagString ( std::string const &  fTag)
inline

Definition at line 22 of file HcalL1TriggerObjects.h.

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  }

References charArraySize, Exception, and mTag.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 49 of file HcalL1TriggerObjects.h.

◆ cond::serialization::access

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

Definition at line 49 of file HcalL1TriggerObjects.h.

Member Data Documentation

◆ charArraySize

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

Definition at line 45 of file HcalL1TriggerObjects.h.

Referenced by setAlgoString(), and setTagString().

◆ mAlgo

char HcalL1TriggerObjects::mAlgo[charArraySize]
private

Definition at line 47 of file HcalL1TriggerObjects.h.

Referenced by getAlgoString(), and setAlgoString().

◆ mTag

char HcalL1TriggerObjects::mTag[charArraySize]
private

Definition at line 46 of file HcalL1TriggerObjects.h.

Referenced by getTagString(), and setTagString().

HcalCondObjectContainer< HcalL1TriggerObject >
HcalL1TriggerObjects::mTag
char mTag[charArraySize]
Definition: HcalL1TriggerObjects.h:46
HcalCondObjectContainerBase::topo
const HcalTopology * topo() const
Definition: HcalCondObjectContainer.h:22
HcalL1TriggerObjects::charArraySize
static constexpr std::size_t charArraySize
Definition: HcalL1TriggerObjects.h:45
Exception
Definition: hltDiff.cc:245
HcalL1TriggerObjects::mAlgo
char mAlgo[charArraySize]
Definition: HcalL1TriggerObjects.h:47