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 Attributes | Static Private Attributes
PhiSymmetryCalibration_step2_SM Class Reference

#include <PhiSymmetryCalibration_step2_SM.h>

Inheritance diagram for PhiSymmetryCalibration_step2_SM:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
void endJob ()
 
void fillConstantsHistos ()
 
void fillHistos ()
 
void outResidHistos ()
 
 PhiSymmetryCalibration_step2_SM (const edm::ParameterSet &iConfig)
 
void readEtSums ()
 
void setUp (const edm::EventSetup &setup)
 
void setupResidHistos ()
 
 ~PhiSymmetryCalibration_step2_SM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

std::vector< DetIdbarrelCells
 
std::vector< TH2F * > correl_barl_histos
 
std::vector< TH2F * > correl_endc_histos
 
EcalGeomPhiSymHelper e_
 
std::vector< DetIdendcapCells
 
float epsilon_M_barl [kBarlRings][kBarlWedges][kSides]
 
double epsilon_M_barl_SM_ [kBarlRings][int(kBarlWedges/nscx)][kSides]
 
float epsilon_M_endc [kEndcWedgesX][kEndcWedgesY][kSides]
 
double esum_barl_ [kBarlRings][kBarlWedges][kSides]
 
double esum_endc_ [kEndcWedgesX][kEndcWedgesX][kSides]
 
double esumMean_barl_ [kBarlRings]
 
double esumMean_endc_ [kEndcEtaRings]
 
double etsum_barl_ [kBarlRings][kBarlWedges][kSides]
 
double etsum_barl_SM_ [kBarlRings][int(kBarlWedges/nscx)][kSides]
 
double etsum_endc_ [kEndcWedgesX][kEndcWedgesX][kSides]
 
double etsum_endc_uncorr [kEndcWedgesX][kEndcWedgesX][kSides]
 
double etsumMean_barl_ [kBarlRings]
 
double etsumMean_barl_SM_ [kBarlRings]
 
double etsumMean_endc_ [kEndcEtaRings]
 
bool firstpass_
 
bool have_initial_miscalib_
 
std::string initialmiscalibfile_
 
double k_barl_ [kBarlRings]
 
double k_endc_ [kEndcEtaRings]
 
std::vector< TH1F * > miscal_resid_barl_histos
 res miscalib histos More...
 
std::vector< TH1F * > miscal_resid_endc_histos
 
EcalIntercalibConstants miscalib_
 initial miscalibration applied if any) More...
 
int nBads_barl_SM_ [kBarlRings][int(kBarlWedges/nscx)][kSides]
 
EcalIntercalibConstants newCalibs_
 calib constants that we are going to calculate More...
 
unsigned int nhits_barl_ [kBarlRings][kBarlWedges][kSides]
 
unsigned int nhits_endc_ [kEndcWedgesX][kEndcWedgesX][kSides]
 
std::string oldcalibfile_
 
EcalIntercalibConstants oldCalibs_
 the old calibration constants (when reiterating, the last ones derived) More...
 
float rawconst_barl [kBarlRings][kBarlWedges][kSides]
 
float rawconst_endc [kEndcWedgesX][kEndcWedgesX][kSides]
 
bool reiteration_
 
int statusThreshold_
 

Static Private Attributes

static const int nscx =20
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 12 of file PhiSymmetryCalibration_step2_SM.h.

Constructor & Destructor Documentation

PhiSymmetryCalibration_step2_SM::PhiSymmetryCalibration_step2_SM ( const edm::ParameterSet iConfig)

Definition at line 26 of file PhiSymmetryCalibration_step2_SM.cc.

PhiSymmetryCalibration_step2_SM::~PhiSymmetryCalibration_step2_SM ( )

Definition at line 23 of file PhiSymmetryCalibration_step2_SM.cc.

Member Function Documentation

void PhiSymmetryCalibration_step2_SM::analyze ( const edm::Event ev,
const edm::EventSetup se 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 42 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 138 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::endJob ( void  )
virtual

this is the new constant, or better, the correction to be applied to the old constant

residual miscalibraition / expected precision

Reimplemented from edm::EDAnalyzer.

Definition at line 172 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::fillConstantsHistos ( )

Definition at line 364 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::fillHistos ( )

Definition at line 468 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::outResidHistos ( )

Definition at line 912 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::readEtSums ( )

Definition at line 833 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::setUp ( const edm::EventSetup setup)

if a miscalibration was applied, load it, if not put it to 1

Definition at line 51 of file PhiSymmetryCalibration_step2_SM.cc.

void PhiSymmetryCalibration_step2_SM::setupResidHistos ( )

Definition at line 877 of file PhiSymmetryCalibration_step2_SM.cc.

Member Data Documentation

std::vector<DetId> PhiSymmetryCalibration_step2_SM::barrelCells
private

Definition at line 79 of file PhiSymmetryCalibration_step2_SM.h.

std::vector<TH2F*> PhiSymmetryCalibration_step2_SM::correl_barl_histos
private

Definition at line 106 of file PhiSymmetryCalibration_step2_SM.h.

std::vector<TH2F*> PhiSymmetryCalibration_step2_SM::correl_endc_histos
private

Definition at line 109 of file PhiSymmetryCalibration_step2_SM.h.

EcalGeomPhiSymHelper PhiSymmetryCalibration_step2_SM::e_
private

Definition at line 77 of file PhiSymmetryCalibration_step2_SM.h.

std::vector<DetId> PhiSymmetryCalibration_step2_SM::endcapCells
private

Definition at line 80 of file PhiSymmetryCalibration_step2_SM.h.

float PhiSymmetryCalibration_step2_SM::epsilon_M_barl[kBarlRings][kBarlWedges][kSides]
private

Definition at line 74 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::epsilon_M_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
private

Definition at line 48 of file PhiSymmetryCalibration_step2_SM.h.

float PhiSymmetryCalibration_step2_SM::epsilon_M_endc[kEndcWedgesX][kEndcWedgesY][kSides]
private

Definition at line 75 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::esum_barl_[kBarlRings][kBarlWedges][kSides]
private

Definition at line 59 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::esum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 60 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::esumMean_barl_[kBarlRings]
private

Definition at line 62 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::esumMean_endc_[kEndcEtaRings]
private

Definition at line 63 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsum_barl_[kBarlRings][kBarlWedges][kSides]
private

Definition at line 40 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsum_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
private

Definition at line 45 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 50 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsum_endc_uncorr[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 51 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsumMean_barl_[kBarlRings]
private

Definition at line 52 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsumMean_barl_SM_[kBarlRings]
private

Definition at line 47 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::etsumMean_endc_[kEndcEtaRings]
private

Definition at line 53 of file PhiSymmetryCalibration_step2_SM.h.

bool PhiSymmetryCalibration_step2_SM::firstpass_
private

Definition at line 82 of file PhiSymmetryCalibration_step2_SM.h.

bool PhiSymmetryCalibration_step2_SM::have_initial_miscalib_
private

Definition at line 100 of file PhiSymmetryCalibration_step2_SM.h.

std::string PhiSymmetryCalibration_step2_SM::initialmiscalibfile_
private

Definition at line 101 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::k_barl_[kBarlRings]
private

Definition at line 65 of file PhiSymmetryCalibration_step2_SM.h.

double PhiSymmetryCalibration_step2_SM::k_endc_[kEndcEtaRings]
private

Definition at line 66 of file PhiSymmetryCalibration_step2_SM.h.

std::vector<TH1F*> PhiSymmetryCalibration_step2_SM::miscal_resid_barl_histos
private

res miscalib histos

Definition at line 105 of file PhiSymmetryCalibration_step2_SM.h.

std::vector<TH1F*> PhiSymmetryCalibration_step2_SM::miscal_resid_endc_histos
private

Definition at line 108 of file PhiSymmetryCalibration_step2_SM.h.

EcalIntercalibConstants PhiSymmetryCalibration_step2_SM::miscalib_
private

initial miscalibration applied if any)

Definition at line 97 of file PhiSymmetryCalibration_step2_SM.h.

int PhiSymmetryCalibration_step2_SM::nBads_barl_SM_[kBarlRings][int(kBarlWedges/nscx)][kSides]
private

Definition at line 46 of file PhiSymmetryCalibration_step2_SM.h.

EcalIntercalibConstants PhiSymmetryCalibration_step2_SM::newCalibs_
private

calib constants that we are going to calculate

Definition at line 93 of file PhiSymmetryCalibration_step2_SM.h.

unsigned int PhiSymmetryCalibration_step2_SM::nhits_barl_[kBarlRings][kBarlWedges][kSides]
private

Definition at line 55 of file PhiSymmetryCalibration_step2_SM.h.

unsigned int PhiSymmetryCalibration_step2_SM::nhits_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 56 of file PhiSymmetryCalibration_step2_SM.h.

const int PhiSymmetryCalibration_step2_SM::nscx =20
staticprivate

Definition at line 44 of file PhiSymmetryCalibration_step2_SM.h.

std::string PhiSymmetryCalibration_step2_SM::oldcalibfile_
private

Definition at line 87 of file PhiSymmetryCalibration_step2_SM.h.

EcalIntercalibConstants PhiSymmetryCalibration_step2_SM::oldCalibs_
private

the old calibration constants (when reiterating, the last ones derived)

Definition at line 90 of file PhiSymmetryCalibration_step2_SM.h.

float PhiSymmetryCalibration_step2_SM::rawconst_barl[kBarlRings][kBarlWedges][kSides]
private

Definition at line 69 of file PhiSymmetryCalibration_step2_SM.h.

float PhiSymmetryCalibration_step2_SM::rawconst_endc[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 70 of file PhiSymmetryCalibration_step2_SM.h.

bool PhiSymmetryCalibration_step2_SM::reiteration_
private

Definition at line 86 of file PhiSymmetryCalibration_step2_SM.h.

int PhiSymmetryCalibration_step2_SM::statusThreshold_
private

Definition at line 83 of file PhiSymmetryCalibration_step2_SM.h.