CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
sistrip::MeasureLA Class Reference

#include <MeasureLA.h>

Inheritance diagram for sistrip::MeasureLA:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 MeasureLA (const edm::ParameterSet &)
 
boost::shared_ptr
< SiStripLorentzAngle
produce (const SiStripLorentzAngleRcd &)
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Private Types

enum  GRANULARITY { LAYER =0, MODULE =1, MODULESUMMARY =2 }
 

Private Member Functions

void calibrate (const std::pair< unsigned, LA_Filler_Fitter::Method >, LA_Filler_Fitter::Result &) const
 
void process_reports () const
 
void store_calibrations ()
 
void store_methods_and_granularity (const edm::VParameterSet &)
 
void summarize_module_muH_byLayer ()
 
void write_report_plots (const std::string, const LA_Filler_Fitter::Method, const GRANULARITY) const
 
template<class T >
void write_report_text (const std::string, const LA_Filler_Fitter::Method &, const std::map< T, LA_Filler_Fitter::Result > &) const
 
void write_report_text_ms (const std::string, const LA_Filler_Fitter::Method) const
 

Static Private Member Functions

static std::pair< unsigned,
LA_Filler_Fitter::Method
calibration_key (const std::string layer, const LA_Filler_Fitter::Method)
 
static std::pair< unsigned,
LA_Filler_Fitter::Method
calibration_key (const uint32_t detid, const LA_Filler_Fitter::Method)
 
static std::string granularity (int32_t g)
 

Private Attributes

Book book
 
bool byLayer
 
bool byModule
 
const edm::VParameterSet calibrations
 
std::map< std::pair< uint32_t,
LA_Filler_Fitter::Method >
, float > 
error_scaling
 
const edm::FileInPath fp_
 
const std::string inFileLocation
 
const std::vector< std::string > inputFiles
 
const float localybin
 
const unsigned maxEvents
 
const edm::VParameterSet measurementPreferences
 
int32_t methods
 
std::map< std::pair< uint32_t,
LA_Filler_Fitter::Method >
, float > 
offset
 
const edm::VParameterSet reports
 
std::map< std::pair< uint32_t,
LA_Filler_Fitter::Method >
, float > 
slope
 
const unsigned stripsperbin
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 14 of file MeasureLA.h.

Member Enumeration Documentation

Enumerator
LAYER 
MODULE 
MODULESUMMARY 

Definition at line 23 of file MeasureLA.h.

Constructor & Destructor Documentation

sistrip::MeasureLA::MeasureLA ( const edm::ParameterSet conf)
explicit

Definition at line 19 of file MeasureLA.cc.

Member Function Documentation

void sistrip::MeasureLA::calibrate ( const std::pair< unsigned, LA_Filler_Fitter::Method key,
LA_Filler_Fitter::Result result 
) const
inlineprivate

Definition at line 165 of file MeasureLA.cc.

std::pair< uint32_t, LA_Filler_Fitter::Method > sistrip::MeasureLA::calibration_key ( const std::string  layer,
const LA_Filler_Fitter::Method  method 
)
staticprivate

Definition at line 171 of file MeasureLA.cc.

std::pair< uint32_t, LA_Filler_Fitter::Method > sistrip::MeasureLA::calibration_key ( const uint32_t  detid,
const LA_Filler_Fitter::Method  method 
)
staticprivate

Definition at line 180 of file MeasureLA.cc.

static std::string sistrip::MeasureLA::granularity ( int32_t  g)
inlinestaticprivate

Definition at line 24 of file MeasureLA.h.

References LAYER, MODULE, and MODULESUMMARY.

24  { switch(g) {
25  case LAYER: return "_layer";
26  case MODULE: return "_module";
27  case MODULESUMMARY: return "_moduleSummary";
28  } return "";};
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
void sistrip::MeasureLA::process_reports ( ) const
private

Definition at line 87 of file MeasureLA.cc.

boost::shared_ptr< SiStripLorentzAngle > sistrip::MeasureLA::produce ( const SiStripLorentzAngleRcd )

Definition at line 49 of file MeasureLA.cc.

Referenced by JSONExport.JsonExport::export().

void sistrip::MeasureLA::store_calibrations ( )
private

Definition at line 147 of file MeasureLA.cc.

void sistrip::MeasureLA::store_methods_and_granularity ( const edm::VParameterSet vpset)
private

Definition at line 11 of file MeasureLA.cc.

void sistrip::MeasureLA::summarize_module_muH_byLayer ( )
private

Definition at line 64 of file MeasureLA.cc.

void sistrip::MeasureLA::write_report_plots ( const std::string  name,
const LA_Filler_Fitter::Method  method,
const GRANULARITY  gran 
) const
private

Definition at line 107 of file MeasureLA.cc.

template<class T >
void sistrip::MeasureLA::write_report_text ( const std::string  name,
const LA_Filler_Fitter::Method _method,
const std::map< T, LA_Filler_Fitter::Result > &  _results 
) const
private

Definition at line 117 of file MeasureLA.cc.

void sistrip::MeasureLA::write_report_text_ms ( const std::string  name,
const LA_Filler_Fitter::Method  method 
) const
private

Definition at line 130 of file MeasureLA.cc.

Member Data Documentation

Book sistrip::MeasureLA::book
private

Definition at line 53 of file MeasureLA.h.

bool sistrip::MeasureLA::byLayer
private

Definition at line 50 of file MeasureLA.h.

bool sistrip::MeasureLA::byModule
private

Definition at line 50 of file MeasureLA.h.

const edm::VParameterSet sistrip::MeasureLA::calibrations
private

Definition at line 47 of file MeasureLA.h.

std::map<std::pair<uint32_t,LA_Filler_Fitter::Method>,float> sistrip::MeasureLA::error_scaling
private

Definition at line 48 of file MeasureLA.h.

const edm::FileInPath sistrip::MeasureLA::fp_
private

Definition at line 46 of file MeasureLA.h.

const std::string sistrip::MeasureLA::inFileLocation
private

Definition at line 45 of file MeasureLA.h.

const std::vector<std::string> sistrip::MeasureLA::inputFiles
private

Definition at line 44 of file MeasureLA.h.

const float sistrip::MeasureLA::localybin
private

Definition at line 51 of file MeasureLA.h.

const unsigned sistrip::MeasureLA::maxEvents
private

Definition at line 52 of file MeasureLA.h.

const edm::VParameterSet sistrip::MeasureLA::measurementPreferences
private

Definition at line 47 of file MeasureLA.h.

int32_t sistrip::MeasureLA::methods
private

Definition at line 49 of file MeasureLA.h.

std::map<std::pair<uint32_t,LA_Filler_Fitter::Method>,float> sistrip::MeasureLA::offset
private

Definition at line 48 of file MeasureLA.h.

const edm::VParameterSet sistrip::MeasureLA::reports
private

Definition at line 47 of file MeasureLA.h.

std::map<std::pair<uint32_t,LA_Filler_Fitter::Method>,float> sistrip::MeasureLA::slope
private

Definition at line 48 of file MeasureLA.h.

const unsigned sistrip::MeasureLA::stripsperbin
private

Definition at line 52 of file MeasureLA.h.