-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #8 from cms-sw/CMSSW_7_6_X
Private pull request to make branch UpdCodePortingforGEMs up to date
- Loading branch information
Showing
136 changed files
with
18,999 additions
and
329 deletions.
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
6 changes: 6 additions & 0 deletions
6
CondFormats/DataRecord/interface/EcalPulseSymmCovariancesRcd.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,6 @@ | ||
#ifndef ECALPULSESYMMCOVARIANCESRCD_H | ||
#define ECALPULSESYMMCOVARIANCESRCD_H | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
class EcalPulseSymmCovariancesRcd : public edm::eventsetup::EventSetupRecordImplementation<EcalPulseSymmCovariancesRcd> {}; | ||
#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,4 @@ | ||
#include "CondFormats/DataRecord/interface/EcalPulseSymmCovariancesRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(EcalPulseSymmCovariancesRcd); |
34 changes: 34 additions & 0 deletions
34
CondFormats/EcalObjects/interface/EcalPulseSymmCovariances.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,34 @@ | ||
#ifndef EcalPulseSymmCovariances_h | ||
#define EcalPulseSymmCovariances_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include "CondFormats/EcalObjects/interface/EcalPulseShapes.h" | ||
#include "CondFormats/EcalObjects/interface/EcalCondObjectContainer.h" | ||
|
||
struct EcalPulseSymmCovariance { | ||
|
||
public: | ||
|
||
EcalPulseSymmCovariance(); | ||
|
||
float covval[EcalPulseShape::TEMPLATESAMPLES*(EcalPulseShape::TEMPLATESAMPLES+1)/2]; | ||
|
||
float val(int i, int j) const { | ||
|
||
int k=-1; | ||
if(j >= i) k = j + (EcalPulseShape::TEMPLATESAMPLES-1)*i; | ||
else k = i + (EcalPulseShape::TEMPLATESAMPLES-1)*j; | ||
return covval[k]; | ||
|
||
} | ||
|
||
COND_SERIALIZABLE; | ||
|
||
}; | ||
|
||
typedef EcalCondObjectContainer<EcalPulseSymmCovariance> EcalPulseSymmCovariancesMap; | ||
typedef EcalPulseSymmCovariancesMap::const_iterator EcalPulseSymmCovariancesMapIterator; | ||
typedef EcalPulseSymmCovariancesMap EcalPulseSymmCovariances; | ||
|
||
#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,6 @@ | ||
#include "CondFormats/EcalObjects/interface/EcalPulseSymmCovariances.h" | ||
|
||
EcalPulseSymmCovariance::EcalPulseSymmCovariance() { | ||
int N = EcalPulseShape::TEMPLATESAMPLES*(EcalPulseShape::TEMPLATESAMPLES+1)/2; | ||
for(int k=0; k<N; ++k) covval[k] = 0.; | ||
} |
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
20 changes: 20 additions & 0 deletions
20
CondFormats/EcalObjects/src/T_EventSetup_EcalPulseSymmCovariances.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,20 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: EDMProto | ||
// Class : T_Context_PulseSymmCovariances | ||
// | ||
// Implementation: | ||
// create all the 'infrastructure' needed to get into the Context | ||
// | ||
// Author: Chris Jones | ||
// Created: Mon Apr 18 16:42:52 EDT 2005 | ||
// $Id: T_EventSetup_EcalPulseSymmCovariances.cc,v 1.1 2005/08/29 17:59:30 xiezhen Exp $ | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
#include "CondFormats/EcalObjects/interface/EcalPulseSymmCovariances.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(EcalPulseSymmCovariances); |
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
Oops, something went wrong.