Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combined tools for muon system aging/masking for upgrade studies (91X) #18571

Merged
merged 22 commits into from
May 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CondCore/RecoMuonPlugins/src/plugins.cc
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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>