Skip to content

Commit

Permalink
merged to CMSSW_8_1_0
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlee committed Dec 10, 2016
1 parent 262e0d1 commit 37ba3a6
Show file tree
Hide file tree
Showing 178 changed files with 1,866,779 additions and 223 deletions.
5 changes: 5 additions & 0 deletions CondCore/GEMPlugins/src/BuildFile.xml
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"/>
5 changes: 5 additions & 0 deletions CondCore/GEMPlugins/src/plugins.cc
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);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/interface/GEMDeadStripsRcd.h
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
25 changes: 25 additions & 0 deletions CondFormats/DataRecord/interface/GEMEMapRcd.h
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
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/interface/GEMMaskedStripsRcd.h
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
4 changes: 4 additions & 0 deletions CondFormats/DataRecord/src/GEMDeadStripsRcd.cc
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);
15 changes: 15 additions & 0 deletions CondFormats/DataRecord/src/GEMEMapRcd.cc
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);
11 changes: 11 additions & 0 deletions CondFormats/GEMObjects/BuildFile.xml
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>
26 changes: 26 additions & 0 deletions CondFormats/GEMObjects/interface/GEMDeadStrips.h
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
63 changes: 63 additions & 0 deletions CondFormats/GEMObjects/interface/GEMEMap.h
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
26 changes: 26 additions & 0 deletions CondFormats/GEMObjects/interface/GEMMaskedStrips.h
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
36 changes: 36 additions & 0 deletions CondFormats/GEMObjects/interface/GEMROmap.h
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
2 changes: 2 additions & 0 deletions CondFormats/GEMObjects/src/GEMDeadStrips.cc
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"
Loading

0 comments on commit 37ba3a6

Please sign in to comment.