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 Member Functions | Private Attributes | Static Private Attributes
PhiSymmetryCalibration Class Reference

#include <PhiSymmetryCalibration.h>

Inheritance diagram for PhiSymmetryCalibration:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 Called at each event. More...
 
virtual void beginJob ()
 Called at beginning of job. More...
 
virtual void endJob ()
 Called at end of job. More...
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run &, const edm::EventSetup &)
 
 PhiSymmetryCalibration (const edm::ParameterSet &iConfig)
 Constructor. More...
 
void setUp (const edm::EventSetup &setup)
 
 ~PhiSymmetryCalibration ()
 Destructor. More...
 
- 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 Member Functions

void getKfactors ()
 

Private Attributes

double ap_
 
double b_
 
std::vector< DetIdbarrelCells
 
std::string barrelHits_
 
EcalGeomPhiSymHelper e_
 
std::vector< TH1F * > e_spectrum_b_histos
 
std::vector< TH1F * > e_spectrum_e_histos
 
std::string ecalHitsProducer_
 
double eCut_barl_
 
std::vector< DetIdendcapCells
 
std::string endcapHits_
 
float epsilon_M_barl [kBarlRings][kBarlWedges][kSides]
 
float epsilon_M_endc [kEndcWedgesX][kEndcWedgesY][kSides]
 
double esumMean_barl_ [kBarlRings]
 
double esumMean_endc_ [kEndcEtaRings]
 
std::vector< TH1F * > et_spectrum_b_histos
 
std::vector< TH1F * > et_spectrum_e_histos
 
double etsum_barl_ [kBarlRings][kBarlWedges][kSides]
 
double etsum_barl_miscal_ [kNMiscalBinsEB][kBarlRings]
 
double etsum_endc_ [kEndcWedgesX][kEndcWedgesX][kSides]
 
double etsum_endc_miscal_ [kNMiscalBinsEE][kEndcEtaRings]
 
double etsum_endc_uncorr [kEndcWedgesX][kEndcWedgesX][kSides]
 
double etsumMean_barl_ [kBarlRings]
 
double etsumMean_endc_ [kEndcEtaRings]
 
int eventSet_
 
int eventsinlb_
 
int eventsinrun_
 
bool isfirstpass_
 
double k_barl_ [kBarlRings]
 
double k_endc_ [kEndcEtaRings]
 
double miscalEB_ [kNMiscalBinsEB]
 
double miscalEE_ [kNMiscalBinsEE]
 
int nevents_
 
double newCalibs_barl [kBarlRings][kBarlWedges][kSides]
 
double newCalibs_endc [kEndcWedgesX][kEndcWedgesX][kSides]
 
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...
 
double oldCalibs_barl [kBarlRings][kBarlWedges][kSides]
 
double oldCalibs_endc [kEndcWedgesX][kEndcWedgesY][kSides]
 
float phi_endc [kMaxEndciPhi][kEndcEtaRings]
 
float rawconst_barl [kBarlRings][kBarlWedges][kSides]
 
float rawconst_endc [kEndcWedgesX][kEndcWedgesX][kSides]
 
bool reiteration_
 
bool spectra
 
int statusThreshold_
 threshold in channel status beyond which channel is marked bad More...
 

Static Private Attributes

static const int kMaxEndciPhi = 360
 
static const float kMiscalRangeEB = .05
 
static const float kMiscalRangeEE = .10
 
static const int kNMiscalBinsEB = 21
 
static const int kNMiscalBinsEE = 41
 

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 35 of file PhiSymmetryCalibration.h.

Constructor & Destructor Documentation

PhiSymmetryCalibration::PhiSymmetryCalibration ( const edm::ParameterSet iConfig)

Constructor.

Definition at line 59 of file PhiSymmetryCalibration.cc.

PhiSymmetryCalibration::~PhiSymmetryCalibration ( )

Destructor.

Definition at line 93 of file PhiSymmetryCalibration.cc.

Member Function Documentation

void PhiSymmetryCalibration::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
virtual

Called at each event.

Implements edm::EDAnalyzer.

Definition at line 273 of file PhiSymmetryCalibration.cc.

void PhiSymmetryCalibration::beginJob ( void  )
virtual

Called at beginning of job.

Reimplemented from edm::EDAnalyzer.

Definition at line 114 of file PhiSymmetryCalibration.cc.

void PhiSymmetryCalibration::endJob ( void  )
virtual

Called at end of job.

Reimplemented from edm::EDAnalyzer.

Definition at line 185 of file PhiSymmetryCalibration.cc.

void PhiSymmetryCalibration::endLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &   
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 590 of file PhiSymmetryCalibration.cc.

void PhiSymmetryCalibration::endRun ( edm::Run run,
const edm::EventSetup  
)
virtual

Definition at line 438 of file PhiSymmetryCalibration.cc.

void PhiSymmetryCalibration::getKfactors ( )
private

Definition at line 455 of file PhiSymmetryCalibration.cc.

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

Definition at line 552 of file PhiSymmetryCalibration.cc.

Member Data Documentation

double PhiSymmetryCalibration::ap_
private

Definition at line 133 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::b_
private

Definition at line 134 of file PhiSymmetryCalibration.h.

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

Definition at line 102 of file PhiSymmetryCalibration.h.

std::string PhiSymmetryCalibration::barrelHits_
private

Definition at line 125 of file PhiSymmetryCalibration.h.

EcalGeomPhiSymHelper PhiSymmetryCalibration::e_
private

Definition at line 76 of file PhiSymmetryCalibration.h.

std::vector<TH1F*> PhiSymmetryCalibration::e_spectrum_b_histos
private

Definition at line 156 of file PhiSymmetryCalibration.h.

std::vector<TH1F*> PhiSymmetryCalibration::e_spectrum_e_histos
private

Definition at line 158 of file PhiSymmetryCalibration.h.

std::string PhiSymmetryCalibration::ecalHitsProducer_
private

Definition at line 124 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::eCut_barl_
private

Definition at line 129 of file PhiSymmetryCalibration.h.

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

Definition at line 103 of file PhiSymmetryCalibration.h.

std::string PhiSymmetryCalibration::endcapHits_
private

Definition at line 126 of file PhiSymmetryCalibration.h.

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

Definition at line 114 of file PhiSymmetryCalibration.h.

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

Definition at line 115 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::esumMean_barl_[kBarlRings]
private

Definition at line 92 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::esumMean_endc_[kEndcEtaRings]
private

Definition at line 93 of file PhiSymmetryCalibration.h.

std::vector<TH1F*> PhiSymmetryCalibration::et_spectrum_b_histos
private

Definition at line 155 of file PhiSymmetryCalibration.h.

std::vector<TH1F*> PhiSymmetryCalibration::et_spectrum_e_histos
private

Definition at line 157 of file PhiSymmetryCalibration.h.

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

Definition at line 79 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::etsum_barl_miscal_[kNMiscalBinsEB][kBarlRings]
private

Definition at line 88 of file PhiSymmetryCalibration.h.

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

Definition at line 80 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::etsum_endc_miscal_[kNMiscalBinsEE][kEndcEtaRings]
private

Definition at line 89 of file PhiSymmetryCalibration.h.

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

Definition at line 81 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::etsumMean_barl_[kBarlRings]
private

Definition at line 82 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::etsumMean_endc_[kEndcEtaRings]
private

Definition at line 83 of file PhiSymmetryCalibration.h.

int PhiSymmetryCalibration::eventSet_
private

Definition at line 136 of file PhiSymmetryCalibration.h.

int PhiSymmetryCalibration::eventsinlb_
private

Definition at line 163 of file PhiSymmetryCalibration.h.

int PhiSymmetryCalibration::eventsinrun_
private

Definition at line 162 of file PhiSymmetryCalibration.h.

bool PhiSymmetryCalibration::isfirstpass_
private

Definition at line 151 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::k_barl_[kBarlRings]
private

Definition at line 97 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::k_endc_[kEndcEtaRings]
private

Definition at line 98 of file PhiSymmetryCalibration.h.

const int PhiSymmetryCalibration::kMaxEndciPhi = 360
staticprivate

Definition at line 140 of file PhiSymmetryCalibration.h.

const float PhiSymmetryCalibration::kMiscalRangeEB = .05
staticprivate

Definition at line 71 of file PhiSymmetryCalibration.h.

const float PhiSymmetryCalibration::kMiscalRangeEE = .10
staticprivate

Definition at line 74 of file PhiSymmetryCalibration.h.

const int PhiSymmetryCalibration::kNMiscalBinsEB = 21
staticprivate

Definition at line 70 of file PhiSymmetryCalibration.h.

const int PhiSymmetryCalibration::kNMiscalBinsEE = 41
staticprivate

Definition at line 73 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::miscalEB_[kNMiscalBinsEB]
private

Definition at line 99 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::miscalEE_[kNMiscalBinsEE]
private

Definition at line 100 of file PhiSymmetryCalibration.h.

int PhiSymmetryCalibration::nevents_
private

Definition at line 161 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::newCalibs_barl[kBarlRings][kBarlWedges][kSides]
private

Definition at line 110 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::newCalibs_endc[kEndcWedgesX][kEndcWedgesX][kSides]
private

Definition at line 111 of file PhiSymmetryCalibration.h.

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

Definition at line 85 of file PhiSymmetryCalibration.h.

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

Definition at line 86 of file PhiSymmetryCalibration.h.

std::string PhiSymmetryCalibration::oldcalibfile_
private

Definition at line 146 of file PhiSymmetryCalibration.h.

EcalIntercalibConstants PhiSymmetryCalibration::oldCalibs_
private

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

Definition at line 149 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::oldCalibs_barl[kBarlRings][kBarlWedges][kSides]
private

Definition at line 106 of file PhiSymmetryCalibration.h.

double PhiSymmetryCalibration::oldCalibs_endc[kEndcWedgesX][kEndcWedgesY][kSides]
private

Definition at line 107 of file PhiSymmetryCalibration.h.

float PhiSymmetryCalibration::phi_endc[kMaxEndciPhi][kEndcEtaRings]
private

Definition at line 142 of file PhiSymmetryCalibration.h.

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

Definition at line 118 of file PhiSymmetryCalibration.h.

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

Definition at line 119 of file PhiSymmetryCalibration.h.

bool PhiSymmetryCalibration::reiteration_
private

Definition at line 145 of file PhiSymmetryCalibration.h.

bool PhiSymmetryCalibration::spectra
private

Definition at line 160 of file PhiSymmetryCalibration.h.

int PhiSymmetryCalibration::statusThreshold_
private

threshold in channel status beyond which channel is marked bad

Definition at line 138 of file PhiSymmetryCalibration.h.