Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6615 from audrium/ZDCLowGainFraction_new_cond
new condition object (ZDC Low Gain Fraction) added for HCAL
- Loading branch information
Showing
26 changed files
with
319 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
CondFormats/DataRecord/interface/HcalZDCLowGainFractionsRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef HcalZDCLowGainFractionsRcd_H | ||
#define HcalZDCLowGainFractionsRcd_H | ||
// -*- C++ -*- | ||
// | ||
// Package: CondFormats/DataRecord | ||
// Class : HcalZDCLowGainFractionsRcd | ||
// | ||
/**\class HcalZDCLowGainFractionsRcd HcalZDCLowGainFractionsRcd.h CondFormats/DataRecord/interface/HcalZDCLowGainFractionsRcd.h | ||
Description: [one line class summary] | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Author: Audrius Mecionis | ||
// Created: Wed, 24 Sep 2014 11:27:57 GMT | ||
// | ||
|
||
#include "FWCore/Framework/interface/DependentRecordImplementation.h" | ||
#include "Geometry/Records/interface/IdealGeometryRecord.h" | ||
|
||
class HcalZDCLowGainFractionsRcd : public edm::eventsetup::DependentRecordImplementation<HcalZDCLowGainFractionsRcd, boost::mpl::vector<IdealGeometryRecord> > {}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: CondFormats/DataRecord | ||
// Class : HcalZDCLowGainFractionsRcd | ||
// | ||
// Implementation: | ||
// [Notes on implementation] | ||
// | ||
// Author: Audrius Mecionis | ||
// Created: Wed, 24 Sep 2014 11:27:57 GMT | ||
|
||
#include "CondFormats/DataRecord/interface/HcalZDCLowGainFractionsRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(HcalZDCLowGainFractionsRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
CondFormats/HcalObjects/interface/HcalZDCLowGainFraction.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef HcalZDCLowGainFraction_h | ||
#define HcalZDCLowGainFraction_h | ||
|
||
/** | ||
\class HcalZDCLowGainFraction | ||
\author Audrius Mecionis | ||
POOL object to store lowGainFrac values | ||
*/ | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include <boost/cstdint.hpp> | ||
|
||
class HcalZDCLowGainFraction { | ||
public: | ||
HcalZDCLowGainFraction() : mId(0), mValue(0) {} | ||
|
||
HcalZDCLowGainFraction(unsigned long fid, float value): mId(fid), mValue(value) {} | ||
|
||
uint32_t rawId() const {return mId;} | ||
|
||
float getValue() const {return mValue;} | ||
|
||
private: | ||
uint32_t mId; | ||
float mValue; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif |
26 changes: 26 additions & 0 deletions
26
CondFormats/HcalObjects/interface/HcalZDCLowGainFractions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef HcalZDCLowGainFractions_h | ||
#define HcalZDCLowGainFractions_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include "CondFormats/HcalObjects/interface/HcalZDCLowGainFraction.h" | ||
#include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h" | ||
|
||
|
||
class HcalZDCLowGainFractions: public HcalCondObjectContainer<HcalZDCLowGainFraction> | ||
{ | ||
public: | ||
#ifndef HCAL_COND_SUPPRESS_DEFAULT | ||
HcalZDCLowGainFractions():HcalCondObjectContainer<HcalZDCLowGainFraction>(0) {} | ||
#endif | ||
HcalZDCLowGainFractions(const HcalTopology* topo):HcalCondObjectContainer<HcalZDCLowGainFraction>(topo) {} | ||
|
||
std::string myname() const {return (std::string)"HcalZDCLowGainFractions";} | ||
|
||
private: | ||
|
||
|
||
COND_SERIALIZABLE; | ||
}; | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "CondFormats/HcalObjects/interface/HcalZDCLowGainFraction.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// to see it compile | ||
|
||
#include "CondFormats/HcalObjects/interface/HcalZDCLowGainFractions.h" | ||
|
||
|
5 changes: 5 additions & 0 deletions
5
CondFormats/HcalObjects/src/T_EventSetup_HcalZDCLowGainFraction.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "CondFormats/HcalObjects/interface/HcalZDCLowGainFractions.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(HcalZDCLowGainFractions); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.