forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
178 changed files
with
1,866,779 additions
and
223 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<use name="CondCore/ESSources"/> | ||
<use name="CondFormats/GEMObjects"/> | ||
<use name="CondFormats/DataRecord"/> | ||
|
||
<flags EDM_PLUGIN="1"/> |
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 "CondCore/ESSources/interface/registration_macros.h" | ||
#include "CondFormats/GEMObjects/interface/GEMEMap.h" | ||
#include "CondFormats/DataRecord/interface/GEMEMapRcd.h" | ||
|
||
REGISTER_PLUGIN(GEMEMapRcd,GEMEMap); |
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,8 @@ | ||
#ifndef DataRecord_GEMDeadStripsRcd_h | ||
#define DataRecord_GEMDeadStripsRcd_h | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class GEMDeadStripsRcd : public edm::eventsetup::EventSetupRecordImplementation<GEMDeadStripsRcd> {}; | ||
|
||
#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,25 @@ | ||
#ifndef GEMEMapRcd_GEMEMapRcd_h | ||
#define GEMEMapRcd_GEMEMapRcd_h | ||
// -*- C++ -*- | ||
// | ||
// Package: CondFormats/DataRecord | ||
// Class : GEMEMapRcd | ||
// | ||
/**\class GEMEMapRcd GEMEMapRcd.h CondFormats/DataRecord/interface/GEMEMapRcd.h | ||
Description: [one line class summary] | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Author: Simranjit Singh Chhibra | ||
// Created: Sun, 06 Nov 2016 22:44:57 GMT | ||
// | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class GEMEMapRcd : public edm::eventsetup::EventSetupRecordImplementation<GEMEMapRcd> {}; | ||
|
||
#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,8 @@ | ||
#ifndef DataRecord_GEMMaskedStripsRcd_h | ||
#define DataRecord_GEMMaskedStripsRcd_h | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class GEMMaskedStripsRcd : public edm::eventsetup::EventSetupRecordImplementation<GEMMaskedStripsRcd> {}; | ||
|
||
#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/GEMDeadStripsRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(GEMDeadStripsRcd); |
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 : GEMEMapRcd | ||
// | ||
// Implementation: | ||
// [Notes on implementation] | ||
// | ||
// Author: Simranjit Singh Chhibra | ||
// Created: Sun, 06 Nov 2016 22:44:57 GMT | ||
|
||
#include "CondFormats/DataRecord/interface/GEMEMapRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(GEMEMapRcd); |
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,11 @@ | ||
<flags GENREFLEX_ARGS="--"/> | ||
<use name="DataFormats/DetId"/> | ||
<use name="DataFormats/MuonDetId"/> | ||
<use name="FWCore/MessageLogger"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="boost"/> | ||
<use name="CondFormats/Serialization"/> | ||
<use name="boost_serialization"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
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 GEMDeadStrips_h | ||
#define GEMDeadStrips_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
#include<vector> | ||
#include<iostream> | ||
#include<boost/cstdint.hpp> | ||
|
||
class GEMDeadStrips { | ||
|
||
public: | ||
struct DeadItem { | ||
int rawId; | ||
int strip; | ||
COND_SERIALIZABLE; | ||
}; | ||
|
||
GEMDeadStrips(){} | ||
~GEMDeadStrips(){} | ||
|
||
std::vector<DeadItem> const & getDeadVec() const {return DeadVec;} | ||
std::vector<DeadItem> DeadVec; | ||
|
||
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,63 @@ | ||
#ifndef GEMEMap_H | ||
#define GEMEMap_H | ||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
#include <string> | ||
#include <vector> | ||
|
||
class GEMROmap; | ||
|
||
class GEMEMap { | ||
public: | ||
GEMEMap(); | ||
explicit GEMEMap(const std::string & version); | ||
|
||
virtual ~GEMEMap(); | ||
|
||
const std::string & version() const; | ||
GEMROmap* convert() const; | ||
GEMROmap* convertCS() const; | ||
GEMROmap* convertCSConfigurable(std::vector<unsigned long long>* vfats,std::vector<int>* slot) const; | ||
|
||
struct GEMEMapItem { | ||
int ChamberID; | ||
std::vector<int> VFatIDs; | ||
std::vector<int> positions; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
struct GEMVFatMaptype { | ||
int VFATmapTypeId; | ||
std::vector<std::string> subdet; | ||
std::vector<std::string> sector; //for CMS GE1/1 | ||
std::vector<int> tscol; //for CS | ||
std::vector<int> tsrow; //for CS | ||
std::vector<std::string> type; | ||
std::vector<int> vfat_position; | ||
std::vector<int> z_direction; | ||
std::vector<int> iEta; | ||
std::vector<int> iPhi; | ||
std::vector<int> depth; | ||
std::vector<int> strip_number; | ||
std::vector<int> vfat_chnnel_number; | ||
std::vector<int> px_connector_pin; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
struct GEMVFatMapInPos { | ||
int position; | ||
int VFATmapTypeId; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
std::vector<GEMEMapItem> theEMapItem; | ||
std::vector<GEMVFatMaptype> theVFatMaptype; | ||
std::vector<GEMVFatMapInPos> theVFatMapInPos; | ||
|
||
private: | ||
std::string theVersion; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif // GEMEMap_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 GEMMaskedStrips_h | ||
#define GEMMaskedStrips_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
#include<vector> | ||
#include<iostream> | ||
#include<boost/cstdint.hpp> | ||
|
||
class GEMMaskedStrips { | ||
|
||
public: | ||
struct MaskItem { | ||
int rawId; | ||
int strip; | ||
COND_SERIALIZABLE; | ||
}; | ||
|
||
GEMMaskedStrips(){} | ||
~GEMMaskedStrips(){} | ||
|
||
std::vector<MaskItem> const & getMaskVec() const {return MaskVec;} | ||
std::vector<MaskItem> MaskVec; | ||
|
||
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,36 @@ | ||
#ifndef GEMRawToDigi_GEMROMAO_H | ||
#define GEMRawToDigi_GEMROMAO_H | ||
#include <map> | ||
class GEMROmap{ | ||
public: | ||
struct eCoord{ | ||
int chamberId; | ||
int vfatId; | ||
int channelId; | ||
bool operator < (const eCoord& r) const{ | ||
if (chamberId == r.chamberId){ | ||
if ( vfatId == r.vfatId){ | ||
return channelId < r.channelId; | ||
}else{ | ||
return vfatId<r.vfatId; | ||
} | ||
}else{ | ||
return chamberId < r.chamberId; | ||
} | ||
} | ||
}; | ||
struct dCoord{ | ||
int etaId; | ||
int stripId; | ||
}; | ||
|
||
public: | ||
GEMROmap(){}; | ||
const dCoord& hitPosition(const eCoord& ec){return roMap[ec];} | ||
|
||
void add(eCoord e,dCoord d) {roMap[e]=d;} | ||
private: | ||
std::map<eCoord,dCoord> roMap; | ||
|
||
}; | ||
#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,2 @@ | ||
#include "CondFormats/GEMObjects/interface/GEMDeadStrips.h" | ||
#include "FWCore/Utilities/interface/Exception.h" |
Oops, something went wrong.