Skip to content

Commit

Permalink
Merge pull request #18571 from battibass/muonSysAgingComb91X
Browse files Browse the repository at this point in the history
Combined tools for muon system aging/masking for upgrade studies (91X)
  • Loading branch information
davidlange6 committed May 8, 2017
2 parents 6492e02 + ad5024a commit 9c49318
Show file tree
Hide file tree
Showing 26 changed files with 1,982 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CondCore/RecoMuonPlugins/src/plugins.cc
Expand Up @@ -8,3 +8,6 @@ REGISTER_PLUGIN(MuScleFitDBobjectRcd,MuScleFitDBobject);
#include "CondFormats/DataRecord/interface/DYTThrObjectRcd.h"
REGISTER_PLUGIN(DYTThrObjectRcd,DYTThrObject);

#include "CondFormats/RecoMuonObjects/interface/MuonSystemAging.h"
#include "CondFormats/DataRecord/interface/MuonSystemAgingRcd.h"
REGISTER_PLUGIN(MuonSystemAgingRcd,MuonSystemAging);
22 changes: 22 additions & 0 deletions CondFormats/DataRecord/interface/MuonSystemAgingRcd.h
@@ -0,0 +1,22 @@
#ifndef MuonSystemAgingRcd_MuonSystemAgingRcd_h
#define MuonSystemAgingRcd_MuonSystemAgingRcd_h
// -*- C++ -*-
//
// Package: CondFormats/DataRecord
// Class : MuonSystemAgingRcd
//
/**\class MuonSystemAgingRcd MuonSystemAgingRcd.h CondFormats/DataRecord/interface/MuonSystemAgingRcd.h
Description: CondFormat implementing inefficiencies in muon stations to mimic aging effects
*/
//
// Author: Sunil Bansal
// Created: Wed, 01 Jun 2016 13:03:56 GMT
//

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class MuonSystemAgingRcd : public edm::eventsetup::EventSetupRecordImplementation<MuonSystemAgingRcd> {};

#endif
12 changes: 12 additions & 0 deletions CondFormats/DataRecord/src/MuonSystemAgingRcd.cc
@@ -0,0 +1,12 @@
// -*- C++ -*-
//
// Package: CondFormats/DataRecord
// Class : MuonSystemAgingRcd
//
// Author: Sunil Bansal
// Created: Wed, 01 Jun 2016 13:03:56 GMT

#include "CondFormats/DataRecord/interface/MuonSystemAgingRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(MuonSystemAgingRcd);
37 changes: 37 additions & 0 deletions CondFormats/RecoMuonObjects/interface/MuonSystemAging.h
@@ -0,0 +1,37 @@
#ifndef MuonSystemAging_H
#define MuonSystemAging_H

#include "CondFormats/Serialization/interface/Serializable.h"
#include<cmath>
#include<iostream>
#include <vector>
#include <regex>
#include <map>

enum CSCInefficiencyType
{
EFF_CHAMBER=0,
EFF_STRIPS=1,
EFF_WIRES=2
};

class MuonSystemAging
{

public:

MuonSystemAging() { };
~MuonSystemAging() { };

std::map<unsigned int, float> m_RPCChambEffs;
std::map<unsigned int, float> m_DTChambEffs;
std::map<unsigned int, std::pair<unsigned int, float> > m_CSCChambEffs;

std::map<unsigned int, float> m_GEMChambEffs;
std::map<unsigned int, float> m_ME0ChambEffs;

COND_SERIALIZABLE;

};

#endif
@@ -0,0 +1,3 @@
#include "CondFormats/RecoMuonObjects/interface/MuonSystemAging.h"
#include "FWCore/Utilities/interface/typelookup.h"
TYPELOOKUP_DATA_REG(MuonSystemAging);
2 changes: 2 additions & 0 deletions CondFormats/RecoMuonObjects/src/classes_def.xml
Expand Up @@ -6,4 +6,6 @@
<class name="DYTParamsObject" class_version="2"/>
<class name="DYTParamObject"/>
<class name="std::vector<DYTParamObject>"/>
<class name="MuonSystemAging" class_version="0"/>
<class name="std::map<unsigned int, std::pair<unsigned int, float> >"/>
</lcgdict>
1 change: 1 addition & 0 deletions CondFormats/RecoMuonObjects/src/headers.h
@@ -1,6 +1,7 @@
#include "CondFormats/RecoMuonObjects/interface/MuScleFitDBobject.h"
#include "CondFormats/RecoMuonObjects/interface/DYTThrObject.h"
#include "CondFormats/RecoMuonObjects/interface/DYTParamsObject.h"
#include "CondFormats/RecoMuonObjects/interface/MuonSystemAging.h"

#if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
#include "CondFormats/External/interface/DetID.h"
Expand Down
12 changes: 9 additions & 3 deletions CondFormats/RecoMuonObjects/test/BuildFile.xml
@@ -1,3 +1,9 @@
<bin file="testSerializationRecoMuonObjects.cpp">
<use name="CondFormats/RecoMuonObjects"/>
</bin>
<library file="*.cc" name="CondFormatsRecoMuonObjectsTest">
<use name="CondFormats/RecoMuonObjects"/>
<use name="CondCore/DBOutputService"/>
<use name="FWCore/MessageLogger"/>
<use name="Geometry/DTGeometry"/>
<use name="Geometry/CSCGeometry"/>
<use name="Geometry/Records"/>
<flags EDM_PLUGIN="1"/>
</library>

0 comments on commit 9c49318

Please sign in to comment.