Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make shape_ a static const member of CastorQIEData #2473

Merged
merged 1 commit into from Feb 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions CondFormats/CastorObjects/interface/CastorQIEData.h
Expand Up @@ -20,20 +20,17 @@ POOL object to store QIE parameters
#include "CondFormats/CastorObjects/interface/CastorQIECoder.h"
#include "DataFormats/DetId/interface/DetId.h"

namespace
{
const CastorQIEShape shape_;
}

class CastorQIEData: public CastorCondObjectContainer<CastorQIECoder>
{
private:
static const CastorQIEShape shape_;
public:

// constructor, destructor, and all methods stay the same
CastorQIEData():CastorCondObjectContainer<CastorQIECoder>() {}

/// get basic shape
// const CastorQIEShape& getShape () const {return mShape;}

const CastorQIEShape& getShape () const { return shape_;}
/// get QIE parameters
const CastorQIECoder* getCoder (DetId fId) const { return getValues(fId); }
Expand Down
1 change: 1 addition & 0 deletions CondFormats/CastorObjects/src/CastorQIEData.cc
@@ -1 +1,2 @@
#include "CondFormats/CastorObjects/interface/CastorQIEData.h"
const CastorQIEShape CastorQIEData::shape_;