CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ElectronCalibration Class Reference

#include <Calibration/EcalCalibAlgos/src/ElectronCalibration.cc>

Inheritance diagram for ElectronCalibration:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
 ElectronCalibration (const edm::ParameterSet &)
 
void endJob () override
 
 ~ElectronCalibration () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

EBDetId findMaxHit (edm::Handle< EBRecHitCollection > &)
 
EBDetId findMaxHit2 (const std::vector< DetId > &, const EBRecHitCollection *)
 

Private Attributes

std::string calibAlgo_
 
CalibrationCluster calibCluster
 
int calibClusterSize
 
TH1F * calibinter
 
TH1F * calibinterNoCuts
 
TH1F * calibs
 
TH1F * calibsNoCuts
 
int ClusterSize_
 
double cut1_
 
double cut2_
 
double cut3_
 
double cutCalo1_
 
double cutCalo2_
 
double cutEPCalo1_
 
double cutEPCalo2_
 
double cutEPin1_
 
double cutEPin2_
 
double cutESeed_
 
TH1F * DiffCalibs
 
TH1F * DiffCalibsNoCuts
 
TH1F * e25
 
TH1F * e25NoCuts
 
TH1F * E25oP
 
TH1F * E25oPNoCuts
 
TH1F * e25OverScE
 
TH1F * e25OverScENoCuts
 
TH1F * e9
 
TH1F * e9NoCuts
 
TH1F * e9Overe25
 
TH1F * e9Overe25NoCuts
 
int elecclass_
 
edm::InputTag electronLabel_
 
double ElePt_
 
std::vector< float > EnergyVector
 
std::vector< float > EnergyVectorNoCuts
 
TH1F * EoP
 
TH1F * EoP_all
 
TH1F * EoPNoCuts
 
TH1F * Error1
 
TH1F * Error1NoCuts
 
TH1F * Error2
 
TH1F * Error2NoCuts
 
TH1F * Error3
 
TH1F * Error3NoCuts
 
TH1F * eSeedOverPout
 
TH1F * eSeedOverPout2
 
TH1F * eSeedOverPout2ESeed
 
TH1F * eSeedOverPout2NoCuts
 
TH1F * eSeedOverPoutNoCuts
 
int etaMax
 
int etaMin
 
int eventcrystal [171][360]
 
std::vector< std::vector< float > > EventMatrix
 
std::vector< std::vector< float > > EventMatrixNoCuts
 
TFile * f
 
TH2F * GeneralMap
 
TH1F * hadOverEm
 
TH1F * hadOverEmESeed
 
TH1F * hadOverEmNoCuts
 
int keventweight
 
int keventweight_
 
TH2F * Map
 
TH2F * Map3Dcalib
 
TH2F * Map3DcalibNoCuts
 
TH2F * MapCor1
 
TH2F * MapCor10
 
TH2F * MapCor10ESeed
 
TH2F * MapCor10NoCuts
 
TH2F * MapCor11
 
TH2F * MapCor11ESeed
 
TH2F * MapCor11NoCuts
 
TH2F * MapCor1ESeed
 
TH2F * MapCor1NoCuts
 
TH2F * MapCor2
 
TH2F * MapCor2ESeed
 
TH2F * MapCor2NoCuts
 
TH2F * MapCor3
 
TH2F * MapCor3ESeed
 
TH2F * MapCor3NoCuts
 
TH2F * MapCor4
 
TH2F * MapCor4ESeed
 
TH2F * MapCor4NoCuts
 
TH2F * MapCor5
 
TH2F * MapCor5ESeed
 
TH2F * MapCor5NoCuts
 
TH2F * MapCor6
 
TH2F * MapCor6ESeed
 
TH2F * MapCor6NoCuts
 
TH2F * MapCor7
 
TH2F * MapCor7ESeed
 
TH2F * MapCor7NoCuts
 
TH2F * MapCor8
 
TH2F * MapCor8ESeed
 
TH2F * MapCor8NoCuts
 
TH2F * MapCor9
 
TH2F * MapCor9ESeed
 
TH2F * MapCor9NoCuts
 
TH2F * MapCorCalib
 
TH2F * MapCorCalibNoCuts
 
TH2F * MapNoCuts
 
std::vector< int > MaxCCeta
 
std::vector< int > MaxCCetaNoCuts
 
std::vector< int > MaxCCphi
 
std::vector< int > MaxCCphiNoCuts
 
int maxeta_
 
int maxphi_
 
int mineta_
 
int minphi_
 
std::string miscalibfile_
 
TH1F * MisCalibs
 
HouseholderDecompositionMyHH
 
MinL3AlgorithmMyL3Algo1
 
std::vector< float > newCalibs
 
int numevent_
 
std::vector< float > oldCalibs
 
int phiMax
 
int phiMin
 
TH1F * PinMinPout
 
TH1F * PinMinPoutNoCuts
 
TH1F * PinOverPout
 
TH1F * PinOverPoutNoCuts
 
TH1F * RatioCalibs
 
TH1F * RatioCalibsNoCuts
 
int read_events
 
edm::InputTag recHitLabel_
 
CalibrationCluster::CalibMap ReducedMap
 
std::string rootfile_
 
TH1F * scE
 
TH1F * scENoCuts
 
std::vector< float > solution
 
std::vector< float > solutionNoCuts
 
edm::InputTag trackLabel_
 
TH1F * trP
 
TH1F * trPNoCuts
 
std::vector< float > WeightVector
 
std::vector< float > WeightVectorNoCuts
 

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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: Perform single electron calibration (tested on TB data only).

Implementation: <Notes on="" implementation>="">

Definition at line 45 of file ElectronCalibration.h.

Constructor & Destructor Documentation

◆ ElectronCalibration()

ElectronCalibration::ElectronCalibration ( const edm::ParameterSet iConfig)
explicit

Definition at line 35 of file ElectronCalibration.cc.

35  {
36  rootfile_ = iConfig.getParameter<std::string>("rootfile");
37  recHitLabel_ = iConfig.getParameter<edm::InputTag>("ebRecHitsLabel");
38  electronLabel_ = iConfig.getParameter<edm::InputTag>("electronLabel");
39  trackLabel_ = iConfig.getParameter<edm::InputTag>("trackLabel");
40  calibAlgo_ = iConfig.getParameter<std::string>("CALIBRATION_ALGO");
41  std::cout << " The used Algorithm is " << calibAlgo_ << std::endl;
42  keventweight_ = iConfig.getParameter<int>("keventweight");
43  ClusterSize_ = iConfig.getParameter<int>("Clustersize");
44  ElePt_ = iConfig.getParameter<double>("ElePt");
45  maxeta_ = iConfig.getParameter<int>("maxeta");
46  mineta_ = iConfig.getParameter<int>("mineta");
47  maxphi_ = iConfig.getParameter<int>("maxphi");
48  minphi_ = iConfig.getParameter<int>("minphi");
49  cut1_ = iConfig.getParameter<double>("cut1");
50  cut2_ = iConfig.getParameter<double>("cut2");
51  cut3_ = iConfig.getParameter<double>("cut3");
52  elecclass_ = iConfig.getParameter<int>("elecclass");
53  std::cout << " The electronclass is " << elecclass_ << std::endl;
54  numevent_ = iConfig.getParameter<int>("numevent");
55  miscalibfile_ = iConfig.getParameter<std::string>("miscalibfile");
56 
57  cutEPCalo1_ = iConfig.getParameter<double>("cutEPCaloMin");
58  cutEPCalo2_ = iConfig.getParameter<double>("cutEPCaloMax");
59  cutEPin1_ = iConfig.getParameter<double>("cutEPinMin");
60  cutEPin2_ = iConfig.getParameter<double>("cutEPinMax");
61  cutCalo1_ = iConfig.getParameter<double>("cutCaloMin");
62  cutCalo2_ = iConfig.getParameter<double>("cutCaloMax");
63 
64  cutESeed_ = iConfig.getParameter<double>("cutESeed");
65 }

References calibAlgo_, ClusterSize_, gather_cfg::cout, cut1_, cut2_, cut3_, cutCalo1_, cutCalo2_, cutEPCalo1_, cutEPCalo2_, cutEPin1_, cutEPin2_, cutESeed_, elecclass_, electronLabel_, ElePt_, edm::ParameterSet::getParameter(), keventweight_, maxeta_, maxphi_, mineta_, minphi_, miscalibfile_, numevent_, recHitLabel_, rootfile_, AlCaHLTBitMon_QueryRunRegistry::string, and trackLabel_.

◆ ~ElectronCalibration()

ElectronCalibration::~ElectronCalibration ( )
override

Definition at line 67 of file ElectronCalibration.cc.

67 {}

Member Function Documentation

◆ analyze()

void ElectronCalibration::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 458 of file ElectronCalibration.cc.

458  {
459  //=================================================================================
460  using namespace edm;
461 
462  // Get EBRecHits
464  iEvent.getByLabel(recHitLabel_, phits);
465  if (!phits.isValid()) {
466  std::cerr << "Error! can't get the product EBRecHitCollection: " << std::endl;
467  }
468 
469  const EBRecHitCollection* hits = phits.product(); // get a ptr to the product
470 
471  // Get pixelElectrons
473 
474  iEvent.getByLabel(electronLabel_, pElectrons);
475  if (!pElectrons.isValid()) {
476  std::cerr << "Error! can't get the product ElectronCollection: " << std::endl;
477  }
478 
480  read_events++;
481  if (read_events % 1000 == 0)
482  std::cout << "read_events = " << read_events << std::endl;
483 
484  if (!hits)
485  return;
486  if (hits->empty())
487  return;
488  if (!electronCollection)
489  return;
490  if (electronCollection->empty())
491  return;
492 
494  // START HERE....
496  reco::GsfElectronCollection::const_iterator eleIt = electronCollection->begin();
497 
498  reco::GsfElectron highPtElectron;
499 
500  float highestElePt = 0.;
501  bool found = false;
502  for (eleIt = electronCollection->begin(); eleIt != electronCollection->end(); eleIt++) {
503  //Comments
504  if (fabs(eleIt->eta()) > (maxeta_ + 3) * 0.0175)
505  continue;
506  if (eleIt->eta() < (mineta_ - 3) * 0.0175)
507  continue;
508 
509  if (eleIt->pt() > highestElePt) {
510  highestElePt = eleIt->pt();
511  highPtElectron = *eleIt;
512  found = true;
513  }
514  }
515  if (highestElePt < ElePt_)
516  return;
517  if (!found)
518  return;
519  const reco::SuperCluster& sc = *(highPtElectron.superCluster());
520  if (fabs(sc.eta()) > (maxeta_ + 3) * 0.0175) {
521  std::cout << "++++ Problem with electron, electron eta is " << highPtElectron.eta() << " while SC is " << sc.eta()
522  << std::endl;
523  return;
524  }
525  // std::cout << "track eta = " << highPtElectron.eta() << std::endl;
526  // std::cout << "track phi = " << highPtElectron.phi() << std::endl;
527 
528  std::vector<DetId> v1;
529  //Loop to fill the vector of DetIds
530  for (std::vector<std::pair<DetId, float> >::const_iterator idsIt = sc.hitsAndFractions().begin();
531  idsIt != sc.hitsAndFractions().end();
532  ++idsIt) {
533  v1.push_back(idsIt->first);
534  }
535 
536  //getHitsByDetId(); //Change function name
537  EBDetId maxHitId;
538 
539  maxHitId = findMaxHit2(v1, hits);
540 
541  if (maxHitId.null()) {
542  std::cout << " Null " << std::endl;
543  return;
544  }
545 
546  int maxCC_Eta = maxHitId.ieta();
547  int maxCC_Phi = maxHitId.iphi();
548 
549  if (maxCC_Eta > maxeta_)
550  return;
551  if (maxCC_Eta < mineta_)
552  return;
553  if (maxCC_Phi > maxphi_)
554  return;
555  if (maxCC_Phi < minphi_)
556  return;
557 
558  // number of events per crystal is set
559  if (numevent_ > 0) {
560  eventcrystal[maxCC_Eta + 85][maxCC_Phi - 1] += 1;
561  if (eventcrystal[maxCC_Eta + 85][maxCC_Phi - 1] > numevent_)
562  return;
563  }
564 
565  std::vector<EBDetId> Xtals5x5 = calibCluster.get5x5Id(maxHitId);
566 
567  if ((int)Xtals5x5.size() != ClusterSize_ * ClusterSize_)
568  return;
569 
570  // fill cluster energy
571  std::vector<float> energy;
572  float energy3x3 = 0.;
573  float energy5x5 = 0.;
574 
575  for (int icry = 0; icry < ClusterSize_ * ClusterSize_; icry++) {
577  if (Xtals5x5[icry].subdetId() != 1)
578  continue;
579  itrechit = hits->find(Xtals5x5[icry]);
580  if (itrechit == hits->end()) {
581  std::cout << "DetId not is e25" << std::endl;
582  continue;
583  }
584 
585  if (edm::isNotFinite(itrechit->energy()))
586  return;
587  energy.push_back(itrechit->energy());
588  energy5x5 += energy[icry];
589 
590  if (icry == 6 || icry == 7 || icry == 8 || icry == 11 || icry == 12 || icry == 13 || icry == 16 || icry == 17 ||
591  icry == 18) {
592  energy3x3 += energy[icry];
593  }
594  }
595  if ((int)energy.size() != ClusterSize_ * ClusterSize_)
596  return;
597  //Once we have the matrix 5x5, we have to correct for gaps/cracks/umbrella and maincontainement
598 
599  GeneralMap->Fill(maxCC_Eta, maxCC_Phi);
600 
601  EoP_all->Fill(highPtElectron.eSuperClusterOverP());
602 
603  if (highPtElectron.classification() == elecclass_ || elecclass_ == -1) {
604  float Ptrack_in =
605  sqrt(pow(highPtElectron.trackMomentumAtVtx().X(), 2) + pow(highPtElectron.trackMomentumAtVtx().Y(), 2) +
606  pow(highPtElectron.trackMomentumAtVtx().Z(), 2));
607 
608  float UncorrectedPatCalo =
609  sqrt(pow(highPtElectron.trackMomentumAtCalo().X(), 2) + pow(highPtElectron.trackMomentumAtCalo().Y(), 2) +
610  pow(highPtElectron.trackMomentumAtCalo().Z(), 2));
611 
612  float Ptrack_out =
613  sqrt(pow(highPtElectron.trackMomentumOut().X(), 2) + pow(highPtElectron.trackMomentumOut().Y(), 2) +
614  pow(highPtElectron.trackMomentumOut().Z(), 2));
615 
616  EventMatrixNoCuts.push_back(energy);
617  EnergyVectorNoCuts.push_back(UncorrectedPatCalo);
618 
619  MaxCCetaNoCuts.push_back(maxCC_Eta);
620  MaxCCphiNoCuts.push_back(maxCC_Phi);
621 
622  WeightVectorNoCuts.push_back(energy5x5 / UncorrectedPatCalo);
623 
624  //---------------------------------------------------No Cuts-------------------------------------------------------
625  e9NoCuts->Fill(energy3x3);
626  e25NoCuts->Fill(energy5x5);
627  e9Overe25NoCuts->Fill(energy3x3 / energy5x5);
628  scENoCuts->Fill(sc.energy());
629 
630  trPNoCuts->Fill(UncorrectedPatCalo);
631 
632  EoPNoCuts->Fill(highPtElectron.eSuperClusterOverP());
633  e25OverScENoCuts->Fill(energy5x5 / sc.energy());
634 
635  E25oPNoCuts->Fill(energy5x5 / UncorrectedPatCalo);
636 
637  MapNoCuts->Fill(maxCC_Eta, maxCC_Phi);
638  PinOverPoutNoCuts->Fill(
639  sqrt(pow(highPtElectron.trackMomentumAtVtx().X(), 2) + pow(highPtElectron.trackMomentumAtVtx().Y(), 2) +
640  pow(highPtElectron.trackMomentumAtVtx().Z(), 2)) /
641  sqrt(pow(highPtElectron.trackMomentumOut().X(), 2) + pow(highPtElectron.trackMomentumOut().Y(), 2) +
642  pow(highPtElectron.trackMomentumOut().Z(), 2)));
643  eSeedOverPoutNoCuts->Fill(highPtElectron.eSuperClusterOverP());
644 
645  MapCor1NoCuts->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / Ptrack_in);
646  MapCor2NoCuts->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSuperClusterOverP());
647  MapCor3NoCuts->Fill(energy5x5 / UncorrectedPatCalo, Ptrack_out / Ptrack_in);
648  MapCor4NoCuts->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / highPtElectron.p());
649  MapCor5NoCuts->Fill(energy5x5 / UncorrectedPatCalo, UncorrectedPatCalo / Ptrack_out);
650  MapCor6NoCuts->Fill(Ptrack_out / Ptrack_in, energy5x5 / Ptrack_in);
651  MapCor7NoCuts->Fill(Ptrack_out / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
652  MapCor8NoCuts->Fill(energy5x5 / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
653  MapCor9NoCuts->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSeedClusterOverPout());
654  MapCor10NoCuts->Fill(highPtElectron.eSeedClusterOverPout(), Ptrack_out / Ptrack_in);
655  MapCor11NoCuts->Fill(highPtElectron.eSeedClusterOverPout(), energy5x5 / Ptrack_in);
656 
657  PinMinPoutNoCuts->Fill((Ptrack_in - Ptrack_out) / Ptrack_in);
658 
659  Error1NoCuts->Fill(highPtElectron.trackMomentumError() / Ptrack_in);
660  Error2NoCuts->Fill(highPtElectron.trackMomentumError() / Ptrack_out);
661  Error3NoCuts->Fill(highPtElectron.trackMomentumError() / UncorrectedPatCalo);
662  eSeedOverPout2NoCuts->Fill(highPtElectron.eSeedClusterOverPout());
663 
664  hadOverEmNoCuts->Fill(highPtElectron.hadronicOverEm());
665 
666  //------------------------------------------------Cuts-----------------------------------------------------
667  //Cuts!
668  if ((energy3x3 / energy5x5) < cut1_)
669  return;
670 
671  if ((Ptrack_out / Ptrack_in) < cut2_ || (Ptrack_out / Ptrack_in) > cut3_)
672  return;
673  if ((energy5x5 / Ptrack_in) < cutEPin1_ || (energy5x5 / Ptrack_in) > cutEPin2_)
674  return;
675 
676  e9->Fill(energy3x3);
677  e25->Fill(energy5x5);
678  e9Overe25->Fill(energy3x3 / energy5x5);
679  scE->Fill(sc.energy());
680  trP->Fill(UncorrectedPatCalo);
681 
682  EoP->Fill(highPtElectron.eSuperClusterOverP());
683  e25OverScE->Fill(energy5x5 / sc.energy());
684 
685  E25oP->Fill(energy5x5 / UncorrectedPatCalo);
686 
687  Map->Fill(maxCC_Eta, maxCC_Phi);
688  PinOverPout->Fill(
689  sqrt(pow(highPtElectron.trackMomentumAtVtx().X(), 2) + pow(highPtElectron.trackMomentumAtVtx().Y(), 2) +
690  pow(highPtElectron.trackMomentumAtVtx().Z(), 2)) /
691  sqrt(pow(highPtElectron.trackMomentumOut().X(), 2) + pow(highPtElectron.trackMomentumOut().Y(), 2) +
692  pow(highPtElectron.trackMomentumOut().Z(), 2)));
693  eSeedOverPout->Fill(highPtElectron.eSuperClusterOverP());
694 
695  MapCor1->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / Ptrack_in);
696  MapCor2->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSuperClusterOverP());
697  MapCor3->Fill(energy5x5 / UncorrectedPatCalo, Ptrack_out / Ptrack_in);
698  MapCor4->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / highPtElectron.p());
699  MapCor5->Fill(energy5x5 / UncorrectedPatCalo, UncorrectedPatCalo / Ptrack_out);
700  MapCor6->Fill(Ptrack_out / Ptrack_in, energy5x5 / Ptrack_in);
701  MapCor7->Fill(Ptrack_out / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
702  MapCor8->Fill(energy5x5 / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
703  MapCor9->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSeedClusterOverPout());
704  MapCor10->Fill(highPtElectron.eSeedClusterOverPout(), Ptrack_out / Ptrack_in);
705  MapCor11->Fill(highPtElectron.eSeedClusterOverPout(), energy5x5 / Ptrack_in);
706 
707  PinMinPout->Fill((Ptrack_in - Ptrack_out) / Ptrack_in);
708 
709  Error1->Fill(highPtElectron.trackMomentumError() / Ptrack_in);
710  Error2->Fill(highPtElectron.trackMomentumError() / Ptrack_out);
711  Error3->Fill(highPtElectron.trackMomentumError() / UncorrectedPatCalo);
712 
713  eSeedOverPout2->Fill(highPtElectron.eSeedClusterOverPout());
714  hadOverEm->Fill(highPtElectron.hadronicOverEm());
715 
716  EventMatrix.push_back(energy);
717  EnergyVector.push_back(UncorrectedPatCalo);
718  MaxCCeta.push_back(maxCC_Eta);
719  MaxCCphi.push_back(maxCC_Phi);
720 
721  WeightVector.push_back(energy5x5 / UncorrectedPatCalo);
722 
723  //-------------------------------------------------------Extra Cut-----------------------------------------------------
724  if (highPtElectron.eSeedClusterOverPout() < cutESeed_)
725  return;
726 
727  MapCor1ESeed->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / Ptrack_in);
728  MapCor2ESeed->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSuperClusterOverP());
729  MapCor3ESeed->Fill(energy5x5 / UncorrectedPatCalo, Ptrack_out / Ptrack_in);
730  MapCor4ESeed->Fill(energy5x5 / UncorrectedPatCalo, energy5x5 / highPtElectron.p());
731  MapCor5ESeed->Fill(energy5x5 / UncorrectedPatCalo, UncorrectedPatCalo / Ptrack_out);
732  MapCor6ESeed->Fill(Ptrack_out / Ptrack_in, energy5x5 / Ptrack_in);
733  MapCor7ESeed->Fill(Ptrack_out / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
734  MapCor8ESeed->Fill(energy5x5 / Ptrack_in, UncorrectedPatCalo / Ptrack_out);
735  MapCor9ESeed->Fill(energy5x5 / UncorrectedPatCalo, highPtElectron.eSeedClusterOverPout());
736  MapCor10ESeed->Fill(highPtElectron.eSeedClusterOverPout(), Ptrack_out / Ptrack_in);
737  MapCor11ESeed->Fill(highPtElectron.eSeedClusterOverPout(), energy5x5 / Ptrack_in);
738 
739  eSeedOverPout2ESeed->Fill(highPtElectron.eSeedClusterOverPout());
740 
741  hadOverEmESeed->Fill(highPtElectron.hadronicOverEm());
742 
743  } else {
744  return;
745  }
746 }

References calibCluster, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, reco::GsfElectron::classification(), ClusterSize_, gather_cfg::cout, cut1_, cut2_, cut3_, cutEPin1_, cutEPin2_, cutESeed_, e25, e25NoCuts, E25oP, E25oPNoCuts, e25OverScE, e25OverScENoCuts, e9, e9NoCuts, e9Overe25, e9Overe25NoCuts, elecclass_, pdwgLeptonRecoSkim_cfi::electronCollection, electronLabel_, ElePt_, HCALHighEnergyHPDFilter_cfi::energy, reco::CaloCluster::energy(), EnergyVector, EnergyVectorNoCuts, EoP, EoP_all, EoPNoCuts, Error1, Error1NoCuts, Error2, Error2NoCuts, Error3, Error3NoCuts, reco::GsfElectron::eSeedClusterOverPout(), eSeedOverPout, eSeedOverPout2, eSeedOverPout2ESeed, eSeedOverPout2NoCuts, eSeedOverPoutNoCuts, reco::GsfElectron::eSuperClusterOverP(), reco::LeafCandidate::eta(), reco::CaloCluster::eta(), eventcrystal, EventMatrix, EventMatrixNoCuts, findMaxHit2(), newFWLiteAna::found, GeneralMap, CalibrationCluster::get5x5Id(), hadOverEm, hadOverEmESeed, hadOverEmNoCuts, reco::GsfElectron::hadronicOverEm(), hfClusterShapes_cfi::hits, reco::CaloCluster::hitsAndFractions(), EBDetId::ieta(), iEvent, EBDetId::iphi(), edm::isNotFinite(), edm::HandleBase::isValid(), Map, MapCor1, MapCor10, MapCor10ESeed, MapCor10NoCuts, MapCor11, MapCor11ESeed, MapCor11NoCuts, MapCor1ESeed, MapCor1NoCuts, MapCor2, MapCor2ESeed, MapCor2NoCuts, MapCor3, MapCor3ESeed, MapCor3NoCuts, MapCor4, MapCor4ESeed, MapCor4NoCuts, MapCor5, MapCor5ESeed, MapCor5NoCuts, MapCor6, MapCor6ESeed, MapCor6NoCuts, MapCor7, MapCor7ESeed, MapCor7NoCuts, MapCor8, MapCor8ESeed, MapCor8NoCuts, MapCor9, MapCor9ESeed, MapCor9NoCuts, MapNoCuts, MaxCCeta, MaxCCetaNoCuts, MaxCCphi, MaxCCphiNoCuts, maxeta_, maxphi_, mineta_, minphi_, DetId::null(), numevent_, reco::LeafCandidate::p(), phits, PinMinPout, PinMinPoutNoCuts, PinOverPout, PinOverPoutNoCuts, funct::pow(), edm::Handle< T >::product(), read_events, recHitLabel_, scE, scENoCuts, mathSSE::sqrt(), reco::GsfElectron::superCluster(), reco::GsfElectron::trackMomentumAtCalo(), reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumError(), reco::GsfElectron::trackMomentumOut(), trP, trPNoCuts, trackerHitRTTI::vector, WeightVector, and WeightVectorNoCuts.

◆ beginJob()

void ElectronCalibration::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 70 of file ElectronCalibration.cc.

70  {
71  //========================================================================
72  f = new TFile(rootfile_.c_str(), "RECREATE");
73 
74  // Book histograms
75  e9 = new TH1F("e9", "E9 energy", 300, 0., 150.);
76  e25 = new TH1F("e25", "E25 energy", 300, 0., 150.);
77  scE = new TH1F("scE", "SC energy", 300, 0., 150.);
78  trP = new TH1F("trP", "Trk momentum", 300, 0., 150.);
79  EoP = new TH1F("EoP", "EoP", 600, 0., 3.);
80  EoP_all = new TH1F("EoP_all", "EoP_all", 600, 0., 3.);
81 
82  if (elecclass_ == 0 || elecclass_ == -1) {
83  calibs = new TH1F("calib", "Calibration constants", 4000, 0.5, 2.);
84  } else {
85  calibs = new TH1F("calib", "Calibration constants", 800, 0.5, 2.);
86  }
87 
88  e25OverScE = new TH1F("e25OverscE", "E25 / SC energy", 400, 0., 2.);
89  E25oP = new TH1F("E25oP", "E25 / P", 1200, 0., 1.5);
90 
91  Map = new TH2F("Map", "Nb Events in Crystal", 85, 1, 85, 70, 5, 75);
92  e9Overe25 = new TH1F("e9Overe25", "E9 / E25", 400, 0., 2.);
93  Map3Dcalib = new TH2F("3Dcalib", "3Dcalib", 85, 1, 85, 70, 5, 75);
94 
95  MapCor1 = new TH2F("MapCor1", "Correlation E25/Pcalo versus E25/Pin", 100, 0., 5., 100, 0., 5.);
96  MapCor2 = new TH2F("MapCor2", "Correlation E25/Pcalo versus E/P", 100, 0., 5., 100, 0., 5.);
97  MapCor3 = new TH2F("MapCor3", "Correlation E25/Pcalo versus Pout/Pin", 100, 0., 5., 100, 0., 5.);
98  MapCor4 = new TH2F("MapCor4", "Correlation E25/Pcalo versus E25/highestP", 100, 0., 5., 100, 0., 5.);
99  MapCor5 = new TH2F("MapCor5", "Correlation E25/Pcalo versus Pcalo/Pout", 100, 0., 5., 100, 0., 5.);
100  MapCor6 = new TH2F("MapCor6", "Correlation Pout/Pin versus E25/Pin", 100, 0., 5., 100, 0., 5.);
101  MapCor7 = new TH2F("MapCor7", "Correlation Pout/Pin versus Pcalo/Pout", 100, 0., 5., 100, 0., 5.);
102  MapCor8 = new TH2F("MapCor8", "Correlation E25/Pin versus Pcalo/Pout", 100, 0., 5., 100, 0., 5.);
103  MapCor9 = new TH2F("MapCor9", "Correlation E25/Pcalo versus Eseed/Pout", 100, 0., 5., 100, 0., 5.);
104  MapCor10 = new TH2F("MapCor10", "Correlation Eseed/Pout versus Pout/Pin", 100, 0., 5., 100, 0., 5.);
105  MapCor11 = new TH2F("MapCor11", "Correlation Eseed/Pout versus E25/Pin", 100, 0., 5., 100, 0., 5.);
106  MapCorCalib =
107  new TH2F("MapCorCalib", "Correlation Miscalibration versus Calibration constants", 100, 0.5, 1.5, 100, 0.5, 1.5);
108 
109  PinMinPout = new TH1F("PinMinPout", "(Pin - Pout)/Pin", 600, -2.0, 2.0);
110 
111  if (elecclass_ == 0 || elecclass_ == -1) {
112  calibinter = new TH1F("calibinter", "internal calibration constants", 2000, 0.5, 2.);
113  PinOverPout = new TH1F("PinOverPout", "pinOverpout", 600, 0., 3.);
114  eSeedOverPout = new TH1F("eSeedOverPout", "eSeedOverpout ", 600, 0., 3.);
115  MisCalibs = new TH1F("MisCalibs", "Miscalibration constants", 4000, 0.5, 2.);
116  RatioCalibs = new TH1F("RatioCalibs", "Ratio in Calibration Constants", 4000, 0.5, 2.0);
117  DiffCalibs = new TH1F("DiffCalibs", "Difference in Calibration constants", 4000, -1.0, 1.0);
118  } else {
119  calibinter = new TH1F("calibinter", "internal calibration constants", 400, 0.5, 2.);
120  PinOverPout = new TH1F("PinOverPout", "pinOverpout", 600, 0., 3.);
121  eSeedOverPout = new TH1F("eSeedOverPout", "eSeedOverpout ", 600, 0., 3.);
122  MisCalibs = new TH1F("MisCalibs", "Miscalibration constants", 800, 0.5, 2.);
123  RatioCalibs = new TH1F("RatioCalibs", "Ratio in Calibration Constants", 800, 0.5, 2.0);
124  DiffCalibs = new TH1F("DiffCalibs", "Difference in Calibration constants", 800, -1.0, 1.0);
125  }
126  Error1 = new TH1F("Error1", "DeltaP/Pin", 800, -1.0, 1.0);
127  Error2 = new TH1F("Error2", "DeltaP/Pout", 800, -1.0, 1.0);
128  Error3 = new TH1F("Error3", "DeltaP/Pcalo", 800, -1.0, 1.0);
129  eSeedOverPout2 = new TH1F("eSeedOverPout2", "eSeedOverpout (No Supercluster)", 600, 0., 4.);
130  hadOverEm = new TH1F("hadOverEm", "Had/EM distribution", 600, -2., 2.);
131 
132  // Book histograms
133  Map3DcalibNoCuts = new TH2F("3DcalibNoCuts", "3Dcalib (Before Cuts)", 85, 1, 85, 70, 5, 75);
134  e9NoCuts = new TH1F("e9NoCuts", "E9 energy (Before Cuts)", 300, 0., 150.);
135  e25NoCuts = new TH1F("e25NoCuts", "E25 energy (Before Cuts)", 300, 0., 150.);
136  scENoCuts = new TH1F("scENoCuts", "SC energy (Before Cuts)", 300, 0., 150.);
137  trPNoCuts = new TH1F("trPNoCuts", "Trk momentum (Before Cuts)", 300, 0., 150.);
138  EoPNoCuts = new TH1F("EoPNoCuts", "EoP (Before Cuts)", 600, 0., 3.);
139  if (elecclass_ == 0 || elecclass_ == -1) {
140  calibsNoCuts = new TH1F("calibNoCuts", "Calibration constants (Before Cuts)", 4000, 0., 2.);
141  } else {
142  calibsNoCuts = new TH1F("calibNoCuts", "Calibration constants (Before Cuts)", 800, 0., 2.);
143  }
144  e25OverScENoCuts = new TH1F("e25OverscENoCuts", "E25 / SC energy (Before Cuts)", 400, 0., 2.);
145  E25oPNoCuts = new TH1F("E25oPNoCuts", "E25 / P (Before Cuts)", 1200, 0., 1.5);
146  MapNoCuts = new TH2F("MapNoCuts", "Nb Events in Crystal (Before Cuts)", 85, 1, 85, 70, 5, 75);
147  e9Overe25NoCuts = new TH1F("e9Overe25NoCuts", "E9 / E25 (Before Cuts)", 400, 0., 2.);
148  PinOverPoutNoCuts = new TH1F("PinOverPoutNoCuts", "pinOverpout (Before Cuts)", 600, 0., 3.);
149  eSeedOverPoutNoCuts = new TH1F(" eSeedOverPoutNoCuts", "eSeedOverpout (Before Cuts) ", 600, 0., 4.);
150  PinMinPoutNoCuts = new TH1F("PinMinPoutNoCuts", "(Pin - Pout)/Pin (Before Cuts)", 600, -2.0, 2.0);
151 
152  RatioCalibsNoCuts = new TH1F("RatioCalibsNoCuts", "Ratio in Calibration Constants (Before Cuts)", 4000, 0.5, 2.0);
153  DiffCalibsNoCuts = new TH1F("DiffCalibsNoCuts", "Difference in Calibration constants (Before Cuts)", 4000, -1.0, 1.0);
154  calibinterNoCuts = new TH1F("calibinterNoCuts", "internal calibration constants", 2000, 0.5, 2.);
155 
156  MapCor1NoCuts =
157  new TH2F("MapCor1NoCuts", "Correlation E25/PatCalo versus E25/Pin (Before Cuts)", 100, 0., 5., 100, 0., 5.);
158  MapCor2NoCuts =
159  new TH2F("MapCor2NoCuts", "Correlation E25/PatCalo versus E/P (Before Cuts)", 100, 0., 5., 100, 0., 5.);
160  MapCor3NoCuts =
161  new TH2F("MapCor3NoCuts", "Correlation E25/PatCalo versus Pout/Pin (Before Cuts)", 100, 0., 5., 100, 0., 5.);
162  MapCor4NoCuts =
163  new TH2F("MapCor4NoCuts", "Correlation E25/PatCalo versus E25/highestP (Before Cuts)", 100, 0., 5., 100, 0., 5.);
164  MapCor5NoCuts =
165  new TH2F("MapCor5NoCuts", "Correlation E25/Pcalo versus Pcalo/Pout (Before Cuts)", 100, 0., 5., 100, 0., 5.);
166  MapCor6NoCuts =
167  new TH2F("MapCor6NoCuts", "Correlation Pout/Pin versus E25/Pin (Before Cuts)", 100, 0., 5., 100, 0., 5.);
168  MapCor7NoCuts =
169  new TH2F("MapCor7NoCuts", "Correlation Pout/Pin versus Pcalo/Pout (Before Cuts)", 100, 0., 5., 100, 0., 5.);
170  MapCor8NoCuts =
171  new TH2F("MapCor8NoCuts", "Correlation E25/Pin versus Pcalo/Pout (Before Cuts)", 100, 0., 5., 100, 0., 5.);
172  MapCor9NoCuts =
173  new TH2F("MapCor9NoCuts", "Correlation E25/Pcalo versus Eseed/Pout (Before Cuts)", 100, 0., 5., 100, 0., 5.);
175  new TH2F("MapCor10NoCuts", "Correlation Eseed/Pout versus Pout/Pin (Before Cuts)", 100, 0., 5., 100, 0., 5.);
177  new TH2F("MapCor11NoCuts", "Correlation Eseed/Pout versus E25/Pin (Before Cuts)", 100, 0., 5., 100, 0., 5.);
178  MapCorCalibNoCuts = new TH2F("MapCorCalibNoCuts",
179  "Correlation Miscalibration versus Calibration constants (Before Cuts)",
180  100,
181  0.,
182  3.,
183  100,
184  0.,
185  3.);
186 
187  Error1NoCuts = new TH1F("Eror1NoCuts", "DeltaP/Pin (Before Cuts)", 800, -1.0, 1.0);
188  Error2NoCuts = new TH1F("Error2NoCuts", "DeltaP/Pout (Before Cuts)", 800, -1.0, 1.0);
189  Error3NoCuts = new TH1F("Error3NoCuts", "DeltaP/Pcalo (Before Cuts)", 800, -1.0, 1.0);
190  eSeedOverPout2NoCuts = new TH1F("eSeedOverPout2NoCuts", "eSeedOverpout (No Supercluster, Before Cuts)", 600, 0., 4.);
191  hadOverEmNoCuts = new TH1F("hadOverEmNoCuts", "Had/EM distribution (Before Cuts)", 600, -2., 2.);
192 
193  //Book histograms after ESeed cut
194  MapCor1ESeed =
195  new TH2F("MapCor1ESeed", "Correlation E25/Pcalo versus E25/Pin (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
196  MapCor2ESeed =
197  new TH2F("MapCor2ESeed", "Correlation E25/Pcalo versus E/P (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
198  MapCor3ESeed = new TH2F(
199  "MapCor3ESeed", "Correlation E25/Pcalo versus Pout/Pin (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
200  MapCor4ESeed = new TH2F(
201  "MapCor4ESeed", "Correlation E25/Pcalo versus E25/highestP (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
202  MapCor5ESeed = new TH2F(
203  "MapCor5ESeed", "Correlation E25/Pcalo versus Pcalo/Pout (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
204  MapCor6ESeed =
205  new TH2F("MapCor6ESeed", "Correlation Pout/Pin versus E25/Pin (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
206  MapCor7ESeed = new TH2F(
207  "MapCor7ESeed", "Correlation Pout/Pin versus Pcalo/Pout (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
208  MapCor8ESeed = new TH2F(
209  "MapCor8ESeed", "Correlation E25/Pin versus Pcalo/Pout (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
210  MapCor9ESeed = new TH2F(
211  "MapCor9ESeed", "Correlation E25/Pcalo versus Eseed/Pout (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
212  MapCor10ESeed = new TH2F(
213  "MapCor10ESeed", "Correlation Eseed/Pout versus Pout/Pin (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
214  MapCor11ESeed = new TH2F(
215  "MapCor11ESeed", "Correlation Eseed/Pout versus E25/Pin (after Eseed/Pout cut)", 100, 0., 5., 100, 0., 5.);
216 
218  new TH1F("eSeedOverPout2ESeed", "eSeedOverpout (No Supercluster, after Eseed/Pout cut)", 600, 0., 4.);
219 
220  hadOverEmESeed = new TH1F("hadOverEmESeed", "Had/EM distribution (after Eseed/Pout cut)", 600, -2., 2.);
221 
222  //Book histograms without any cut
223  GeneralMap = new TH2F("GeneralMap", "Map without any cuts", 85, 1, 85, 70, 5, 75);
224 
226  etaMin = mineta_;
227  etaMax = maxeta_;
228  phiMin = minphi_;
229  phiMax = maxphi_;
230  if (calibAlgo_ == "L3") {
232  } else {
233  if (calibAlgo_ == "HH" || calibAlgo_ == "HHReg") {
235  } else {
236  std::cout << " Name of Algorithm is not recognize " << calibAlgo_ << " Should be either L3, HH or HHReg. Abort! "
237  << std::endl;
238  }
239  }
240  read_events = 0;
241 
242  // get Region to be calibrated
244 
245  oldCalibs.resize(ReducedMap.size(), 0.);
246 
247  // table is set to zero
248  for (int phi = 0; phi < 360; phi++) {
249  for (int eta = 0; eta < 171; eta++) {
250  eventcrystal[eta][phi] = 0;
251  }
252  }
253 
254  std::cout << " Begin JOB " << std::endl;
255 }

References calibAlgo_, calibCluster, calibClusterSize, calibinter, calibinterNoCuts, calibs, calibsNoCuts, ClusterSize_, gather_cfg::cout, DiffCalibs, DiffCalibsNoCuts, e25, e25NoCuts, E25oP, E25oPNoCuts, e25OverScE, e25OverScENoCuts, e9, e9NoCuts, e9Overe25, e9Overe25NoCuts, elecclass_, EoP, EoP_all, EoPNoCuts, Error1, Error1NoCuts, Error2, Error2NoCuts, Error3, Error3NoCuts, eSeedOverPout, eSeedOverPout2, eSeedOverPout2ESeed, eSeedOverPout2NoCuts, eSeedOverPoutNoCuts, PVValHelper::eta, etaMax, etaMin, eventcrystal, f, GeneralMap, CalibrationCluster::getMap(), hadOverEm, hadOverEmESeed, hadOverEmNoCuts, keventweight_, Map, Map3Dcalib, Map3DcalibNoCuts, MapCor1, MapCor10, MapCor10ESeed, MapCor10NoCuts, MapCor11, MapCor11ESeed, MapCor11NoCuts, MapCor1ESeed, MapCor1NoCuts, MapCor2, MapCor2ESeed, MapCor2NoCuts, MapCor3, MapCor3ESeed, MapCor3NoCuts, MapCor4, MapCor4ESeed, MapCor4NoCuts, MapCor5, MapCor5ESeed, MapCor5NoCuts, MapCor6, MapCor6ESeed, MapCor6NoCuts, MapCor7, MapCor7ESeed, MapCor7NoCuts, MapCor8, MapCor8ESeed, MapCor8NoCuts, MapCor9, MapCor9ESeed, MapCor9NoCuts, MapCorCalib, MapCorCalibNoCuts, MapNoCuts, maxeta_, maxphi_, mineta_, minphi_, MisCalibs, MyHH, MyL3Algo1, oldCalibs, phi, phiMax, phiMin, PinMinPout, PinMinPoutNoCuts, PinOverPout, PinOverPoutNoCuts, RatioCalibs, RatioCalibsNoCuts, read_events, ReducedMap, rootfile_, scE, scENoCuts, trP, and trPNoCuts.

◆ endJob()

void ElectronCalibration::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 259 of file ElectronCalibration.cc.

259  {
260  //========================================================================
261 
262  int nIterations = 10;
263  if (calibAlgo_ == "L3") {
265  } else {
266  if (calibAlgo_ == "HH") {
268  } else {
269  if (calibAlgo_ == "HHReg") {
271  } else {
272  std::cout << " Calibration not run due to problem in Algo Choice..." << std::endl;
273  return;
274  }
275  }
276  }
277  for (int ii = 0; ii < (int)solution.size(); ii++) {
278  std::cout << "solution[" << ii << "] = " << solution[ii] << std::endl;
279  calibs->Fill(solution[ii]);
280  }
281 
282  newCalibs.resize(ReducedMap.size(), 0.);
283 
284  calibXMLwriter write_calibrations;
285 
286  FILE* MisCalib;
287  MisCalib = fopen(miscalibfile_.c_str(), "r");
288  int fileStatus = 1;
289  int eta = -1;
290  int phi = -1;
291  float coeff = -1;
292 
293  std::map<EBDetId, float> OldCoeff;
294 
295  while (fileStatus != EOF) {
296  fileStatus = fscanf(MisCalib, "%d %d %f\n", &eta, &phi, &coeff);
297  if (eta != -1 && phi != -1 && coeff != -1) {
298  // std::cout<<" We have read correctly the coefficient " << coeff << " corresponding to eta "<<eta<<" and phi "<<phi<<std::endl;
299  OldCoeff.insert(std::make_pair(EBDetId(eta, phi, EBDetId::ETAPHIMODE), coeff));
300  }
301  }
302 
303  fclose(MisCalib);
304 
305  int icry = 0;
306  CalibrationCluster::CalibMap::iterator itmap;
307  for (itmap = ReducedMap.begin(); itmap != ReducedMap.end(); itmap++) {
308  newCalibs[icry] = solution[icry];
309 
310  write_calibrations.writeLine(itmap->first, newCalibs[icry]);
311  float Compare = 1.;
312  std::map<EBDetId, float>::iterator iter = OldCoeff.find(itmap->first);
313  if (iter != OldCoeff.end())
314  Compare = iter->second;
315 
316  if ((itmap->first).ieta() > mineta_ && (itmap->first).ieta() < maxeta_ && (itmap->first).iphi() > minphi_ &&
317  (itmap->first).iphi() < maxphi_) {
318  Map3Dcalib->Fill((itmap->first).ieta(), (itmap->first).iphi(), newCalibs[icry] * Compare);
319  MisCalibs->Fill(Compare);
320  }
321  if ((itmap->first).ieta() < mineta_ + 2) {
322  icry++;
323  continue;
324  }
325  if ((itmap->first).ieta() > maxeta_ - 2) {
326  icry++;
327  continue;
328  }
329  if ((itmap->first).iphi() < minphi_ + 2) {
330  icry++;
331  continue;
332  }
333  if ((itmap->first).iphi() > maxphi_ - 2) {
334  icry++;
335  continue;
336  }
337 
338  calibinter->Fill(newCalibs[icry]);
339  DiffCalibs->Fill(newCalibs[icry] - 1. / Compare);
340  RatioCalibs->Fill(newCalibs[icry] * Compare);
341  MapCorCalib->Fill(1. / Compare, newCalibs[icry]);
342  icry++;
343  }
344 
345  if (calibAlgo_ == "L3") {
348  } else {
349  if (calibAlgo_ == "HH") {
351  } else {
352  if (calibAlgo_ == "HHReg") {
354  } else {
355  std::cout << " Calibration not run due to problem in AlgoChoice..." << std::endl;
356  return;
357  }
358  }
359  }
360  for (int ii = 0; ii < (int)solutionNoCuts.size(); ii++) {
362  }
363  int icryp = 0;
364  CalibrationCluster::CalibMap::iterator itmapp;
365  for (itmapp = ReducedMap.begin(); itmapp != ReducedMap.end(); itmapp++) {
366  newCalibs[icryp] = solutionNoCuts[icryp];
367  float Compare2 = 1.;
368  std::map<EBDetId, float>::iterator iter2 = OldCoeff.find(itmapp->first);
369  if (iter2 != OldCoeff.end())
370  Compare2 = iter2->second;
371 
372  if ((itmapp->first).ieta() > mineta_ && (itmapp->first).ieta() < maxeta_ && (itmapp->first).iphi() > minphi_ &&
373  (itmapp->first).iphi() < maxphi_)
374  Map3DcalibNoCuts->Fill((itmapp->first).ieta(), (itmapp->first).iphi(), newCalibs[icryp] * Compare2);
375  if ((itmapp->first).ieta() < mineta_ + 2) {
376  icryp++;
377  continue;
378  }
379  if ((itmapp->first).ieta() > maxeta_ - 2) {
380  icryp++;
381  continue;
382  }
383  if ((itmapp->first).iphi() < minphi_ + 2) {
384  icryp++;
385  continue;
386  }
387  if ((itmapp->first).iphi() > maxphi_ - 2) {
388  icryp++;
389  continue;
390  }
391  calibinterNoCuts->Fill(newCalibs[icryp]);
392  DiffCalibsNoCuts->Fill(newCalibs[icryp] - 1. / (Compare2));
393  RatioCalibsNoCuts->Fill(newCalibs[icryp] * Compare2);
394  MapCorCalibNoCuts->Fill(1. / Compare2, newCalibs[icryp]);
395  icryp++;
396  }
397 
399 
400  std::cout << " " << std::endl;
401  std::cout << "************* STATISTICS **************" << std::endl;
402  std::cout << " Events Studied " << read_events << std::endl;
403 
405 
406  f->Write();
407 
408  f->Close();
409 }

References calibAlgo_, calibinter, calibinterNoCuts, calibs, calibsNoCuts, gather_cfg::cout, DiffCalibs, DiffCalibsNoCuts, EnergyVector, EnergyVectorNoCuts, PVValHelper::eta, EBDetId::ETAPHIMODE, EventMatrix, EventMatrixNoCuts, f, LEDCalibrationChannels::ieta, if(), cuy::ii, createfilelist::int, LEDCalibrationChannels::iphi, MinL3Algorithm::iterate(), HouseholderDecomposition::iterate(), Map3Dcalib, Map3DcalibNoCuts, MapCorCalib, MapCorCalibNoCuts, MaxCCeta, MaxCCetaNoCuts, MaxCCphi, MaxCCphiNoCuts, maxeta_, maxphi_, mineta_, minphi_, miscalibfile_, MisCalibs, MyHH, MyL3Algo1, newCalibs, phi, RatioCalibs, RatioCalibsNoCuts, read_events, ReducedMap, HouseholderDecomposition::runRegional(), solution, solutionNoCuts, and calibXMLwriter::writeLine().

Referenced by o2olib.O2ORunMgr::executeJob().

◆ findMaxHit()

EBDetId ElectronCalibration::findMaxHit ( edm::Handle< EBRecHitCollection > &  phits)
private

Definition at line 412 of file ElectronCalibration.cc.

412  {
413  //=================================================================================
414 
415  EcalRecHitCollection ecrh = *phits;
417  int count = 0;
418  EBDetId save;
419  float en_save = 0;
420  for (it = ecrh.begin(); it != ecrh.end(); it++) {
421  EBDetId p = EBDetId(it->id().rawId());
422  if (it->energy() > en_save) {
423  en_save = it->energy();
424  save = p;
425  }
426  count++;
427  }
428  return save;
429 }

References edm::SortedCollection< T, SORT >::begin(), submitPVResolutionJobs::count, edm::SortedCollection< T, SORT >::end(), AlCaHLTBitMon_ParallelJobs::p, phits, and cuy::save.

◆ findMaxHit2()

EBDetId ElectronCalibration::findMaxHit2 ( const std::vector< DetId > &  v1,
const EBRecHitCollection hits 
)
private

Definition at line 432 of file ElectronCalibration.cc.

432  {
433  //=================================================================================
434 
435  double currEnergy = 0.;
436  EBDetId maxHit;
437 
438  for (std::vector<DetId>::const_iterator idsIt = v1.begin(); idsIt != v1.end(); ++idsIt) {
439  if (idsIt->subdetId() != 1)
440  continue;
442  itrechit = hits->find(*idsIt);
443 
444  if (itrechit == hits->end()) {
445  std::cout << "ElectronCalibration::findMaxHit2: rechit not found! " << std::endl;
446  continue;
447  }
448  if (itrechit->energy() > currEnergy) {
449  currEnergy = itrechit->energy();
450  maxHit = *idsIt;
451  }
452  }
453 
454  return maxHit;
455 }

References gather_cfg::cout, hfClusterShapes_cfi::hits, and MTVHistoProducerAlgoForTrackerBlock_cfi::maxHit.

Referenced by analyze().

Member Data Documentation

◆ calibAlgo_

std::string ElectronCalibration::calibAlgo_
private

Definition at line 63 of file ElectronCalibration.h.

Referenced by beginJob(), ElectronCalibration(), and endJob().

◆ calibCluster

CalibrationCluster ElectronCalibration::calibCluster
private

Definition at line 84 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ calibClusterSize

int ElectronCalibration::calibClusterSize
private

Definition at line 89 of file ElectronCalibration.h.

Referenced by beginJob().

◆ calibinter

TH1F* ElectronCalibration::calibinter
private

Definition at line 144 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ calibinterNoCuts

TH1F* ElectronCalibration::calibinterNoCuts
private

Definition at line 145 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ calibs

TH1F* ElectronCalibration::calibs
private

Definition at line 118 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ calibsNoCuts

TH1F* ElectronCalibration::calibsNoCuts
private

Definition at line 137 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ ClusterSize_

int ElectronCalibration::ClusterSize_
private

Definition at line 82 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), and ElectronCalibration().

◆ cut1_

double ElectronCalibration::cut1_
private

Definition at line 71 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ cut2_

double ElectronCalibration::cut2_
private

Definition at line 72 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ cut3_

double ElectronCalibration::cut3_
private

Definition at line 73 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ cutCalo1_

double ElectronCalibration::cutCalo1_
private

Definition at line 79 of file ElectronCalibration.h.

Referenced by ElectronCalibration().

◆ cutCalo2_

double ElectronCalibration::cutCalo2_
private

Definition at line 80 of file ElectronCalibration.h.

Referenced by ElectronCalibration().

◆ cutEPCalo1_

double ElectronCalibration::cutEPCalo1_
private

Definition at line 75 of file ElectronCalibration.h.

Referenced by ElectronCalibration().

◆ cutEPCalo2_

double ElectronCalibration::cutEPCalo2_
private

Definition at line 76 of file ElectronCalibration.h.

Referenced by ElectronCalibration().

◆ cutEPin1_

double ElectronCalibration::cutEPin1_
private

Definition at line 77 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ cutEPin2_

double ElectronCalibration::cutEPin2_
private

Definition at line 78 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ cutESeed_

double ElectronCalibration::cutESeed_
private

Definition at line 81 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ DiffCalibs

TH1F* ElectronCalibration::DiffCalibs
private

Definition at line 128 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ DiffCalibsNoCuts

TH1F* ElectronCalibration::DiffCalibsNoCuts
private

Definition at line 130 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ e25

TH1F* ElectronCalibration::e25
private

Definition at line 112 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e25NoCuts

TH1F* ElectronCalibration::e25NoCuts
private

Definition at line 132 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ E25oP

TH1F* ElectronCalibration::E25oP
private

Definition at line 122 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ E25oPNoCuts

TH1F* ElectronCalibration::E25oPNoCuts
private

Definition at line 141 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e25OverScE

TH1F* ElectronCalibration::e25OverScE
private

Definition at line 120 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e25OverScENoCuts

TH1F* ElectronCalibration::e25OverScENoCuts
private

Definition at line 139 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e9

TH1F* ElectronCalibration::e9
private

Definition at line 113 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e9NoCuts

TH1F* ElectronCalibration::e9NoCuts
private

Definition at line 133 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e9Overe25

TH1F* ElectronCalibration::e9Overe25
private

Definition at line 119 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ e9Overe25NoCuts

TH1F* ElectronCalibration::e9Overe25NoCuts
private

Definition at line 138 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ elecclass_

int ElectronCalibration::elecclass_
private

Definition at line 74 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), and ElectronCalibration().

◆ electronLabel_

edm::InputTag ElectronCalibration::electronLabel_
private

Definition at line 61 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ ElePt_

double ElectronCalibration::ElePt_
private

Definition at line 66 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ EnergyVector

std::vector<float> ElectronCalibration::EnergyVector
private

Definition at line 91 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ EnergyVectorNoCuts

std::vector<float> ElectronCalibration::EnergyVectorNoCuts
private

Definition at line 96 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ EoP

TH1F* ElectronCalibration::EoP
private

Definition at line 116 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ EoP_all

TH1F* ElectronCalibration::EoP_all
private

Definition at line 117 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ EoPNoCuts

TH1F* ElectronCalibration::EoPNoCuts
private

Definition at line 136 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error1

TH1F* ElectronCalibration::Error1
private

Definition at line 193 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error1NoCuts

TH1F* ElectronCalibration::Error1NoCuts
private

Definition at line 196 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error2

TH1F* ElectronCalibration::Error2
private

Definition at line 194 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error2NoCuts

TH1F* ElectronCalibration::Error2NoCuts
private

Definition at line 197 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error3

TH1F* ElectronCalibration::Error3
private

Definition at line 195 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Error3NoCuts

TH1F* ElectronCalibration::Error3NoCuts
private

Definition at line 198 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ eSeedOverPout

TH1F* ElectronCalibration::eSeedOverPout
private

Definition at line 125 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ eSeedOverPout2

TH1F* ElectronCalibration::eSeedOverPout2
private

Definition at line 200 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ eSeedOverPout2ESeed

TH1F* ElectronCalibration::eSeedOverPout2ESeed
private

Definition at line 202 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ eSeedOverPout2NoCuts

TH1F* ElectronCalibration::eSeedOverPout2NoCuts
private

Definition at line 201 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ eSeedOverPoutNoCuts

TH1F* ElectronCalibration::eSeedOverPoutNoCuts
private

Definition at line 148 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ etaMax

int ElectronCalibration::etaMax
private

Definition at line 90 of file ElectronCalibration.h.

Referenced by beginJob().

◆ etaMin

int ElectronCalibration::etaMin
private

Definition at line 90 of file ElectronCalibration.h.

Referenced by beginJob().

◆ eventcrystal

int ElectronCalibration::eventcrystal[171][360]
private

Definition at line 107 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ EventMatrix

std::vector<std::vector<float> > ElectronCalibration::EventMatrix
private

Definition at line 93 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ EventMatrixNoCuts

std::vector<std::vector<float> > ElectronCalibration::EventMatrixNoCuts
private

Definition at line 98 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ f

TFile* ElectronCalibration::f
private

◆ GeneralMap

TH2F* ElectronCalibration::GeneralMap
private

Definition at line 150 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ hadOverEm

TH1F* ElectronCalibration::hadOverEm
private

Definition at line 204 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ hadOverEmESeed

TH1F* ElectronCalibration::hadOverEmESeed
private

Definition at line 206 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ hadOverEmNoCuts

TH1F* ElectronCalibration::hadOverEmNoCuts
private

Definition at line 205 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ keventweight

int ElectronCalibration::keventweight
private

Definition at line 89 of file ElectronCalibration.h.

◆ keventweight_

int ElectronCalibration::keventweight_
private

Definition at line 65 of file ElectronCalibration.h.

Referenced by beginJob(), and ElectronCalibration().

◆ Map

TH2F* ElectronCalibration::Map
private

Definition at line 121 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ Map3Dcalib

TH2F* ElectronCalibration::Map3Dcalib
private

Definition at line 142 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ Map3DcalibNoCuts

TH2F* ElectronCalibration::Map3DcalibNoCuts
private

Definition at line 143 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ MapCor1

TH2F* ElectronCalibration::MapCor1
private

Definition at line 152 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor10

TH2F* ElectronCalibration::MapCor10
private

Definition at line 161 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor10ESeed

TH2F* ElectronCalibration::MapCor10ESeed
private

Definition at line 187 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor10NoCuts

TH2F* ElectronCalibration::MapCor10NoCuts
private

Definition at line 174 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor11

TH2F* ElectronCalibration::MapCor11
private

Definition at line 162 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor11ESeed

TH2F* ElectronCalibration::MapCor11ESeed
private

Definition at line 188 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor11NoCuts

TH2F* ElectronCalibration::MapCor11NoCuts
private

Definition at line 175 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor1ESeed

TH2F* ElectronCalibration::MapCor1ESeed
private

Definition at line 178 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor1NoCuts

TH2F* ElectronCalibration::MapCor1NoCuts
private

Definition at line 165 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor2

TH2F* ElectronCalibration::MapCor2
private

Definition at line 153 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor2ESeed

TH2F* ElectronCalibration::MapCor2ESeed
private

Definition at line 179 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor2NoCuts

TH2F* ElectronCalibration::MapCor2NoCuts
private

Definition at line 166 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor3

TH2F* ElectronCalibration::MapCor3
private

Definition at line 154 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor3ESeed

TH2F* ElectronCalibration::MapCor3ESeed
private

Definition at line 180 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor3NoCuts

TH2F* ElectronCalibration::MapCor3NoCuts
private

Definition at line 167 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor4

TH2F* ElectronCalibration::MapCor4
private

Definition at line 155 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor4ESeed

TH2F* ElectronCalibration::MapCor4ESeed
private

Definition at line 181 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor4NoCuts

TH2F* ElectronCalibration::MapCor4NoCuts
private

Definition at line 168 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor5

TH2F* ElectronCalibration::MapCor5
private

Definition at line 156 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor5ESeed

TH2F* ElectronCalibration::MapCor5ESeed
private

Definition at line 182 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor5NoCuts

TH2F* ElectronCalibration::MapCor5NoCuts
private

Definition at line 169 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor6

TH2F* ElectronCalibration::MapCor6
private

Definition at line 157 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor6ESeed

TH2F* ElectronCalibration::MapCor6ESeed
private

Definition at line 183 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor6NoCuts

TH2F* ElectronCalibration::MapCor6NoCuts
private

Definition at line 170 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor7

TH2F* ElectronCalibration::MapCor7
private

Definition at line 158 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor7ESeed

TH2F* ElectronCalibration::MapCor7ESeed
private

Definition at line 184 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor7NoCuts

TH2F* ElectronCalibration::MapCor7NoCuts
private

Definition at line 171 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor8

TH2F* ElectronCalibration::MapCor8
private

Definition at line 159 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor8ESeed

TH2F* ElectronCalibration::MapCor8ESeed
private

Definition at line 185 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor8NoCuts

TH2F* ElectronCalibration::MapCor8NoCuts
private

Definition at line 172 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor9

TH2F* ElectronCalibration::MapCor9
private

Definition at line 160 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor9ESeed

TH2F* ElectronCalibration::MapCor9ESeed
private

Definition at line 186 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCor9NoCuts

TH2F* ElectronCalibration::MapCor9NoCuts
private

Definition at line 173 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MapCorCalib

TH2F* ElectronCalibration::MapCorCalib
private

Definition at line 163 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ MapCorCalibNoCuts

TH2F* ElectronCalibration::MapCorCalibNoCuts
private

Definition at line 176 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ MapNoCuts

TH2F* ElectronCalibration::MapNoCuts
private

Definition at line 140 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ MaxCCeta

std::vector<int> ElectronCalibration::MaxCCeta
private

Definition at line 94 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ MaxCCetaNoCuts

std::vector<int> ElectronCalibration::MaxCCetaNoCuts
private

Definition at line 99 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ MaxCCphi

std::vector<int> ElectronCalibration::MaxCCphi
private

Definition at line 95 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ MaxCCphiNoCuts

std::vector<int> ElectronCalibration::MaxCCphiNoCuts
private

Definition at line 100 of file ElectronCalibration.h.

Referenced by analyze(), and endJob().

◆ maxeta_

int ElectronCalibration::maxeta_
private

Definition at line 67 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), ElectronCalibration(), and endJob().

◆ maxphi_

int ElectronCalibration::maxphi_
private

Definition at line 69 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), ElectronCalibration(), and endJob().

◆ mineta_

int ElectronCalibration::mineta_
private

Definition at line 68 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), ElectronCalibration(), and endJob().

◆ minphi_

int ElectronCalibration::minphi_
private

Definition at line 70 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), ElectronCalibration(), and endJob().

◆ miscalibfile_

std::string ElectronCalibration::miscalibfile_
private

Definition at line 64 of file ElectronCalibration.h.

Referenced by ElectronCalibration(), and endJob().

◆ MisCalibs

TH1F* ElectronCalibration::MisCalibs
private

Definition at line 126 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ MyHH

HouseholderDecomposition* ElectronCalibration::MyHH
private

Definition at line 146 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ MyL3Algo1

MinL3Algorithm* ElectronCalibration::MyL3Algo1
private

Definition at line 101 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ newCalibs

std::vector<float> ElectronCalibration::newCalibs
private

Definition at line 104 of file ElectronCalibration.h.

Referenced by endJob().

◆ numevent_

int ElectronCalibration::numevent_
private

Definition at line 108 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ oldCalibs

std::vector<float> ElectronCalibration::oldCalibs
private

Definition at line 105 of file ElectronCalibration.h.

Referenced by beginJob().

◆ phiMax

int ElectronCalibration::phiMax
private

Definition at line 90 of file ElectronCalibration.h.

Referenced by beginJob().

◆ phiMin

int ElectronCalibration::phiMin
private

Definition at line 90 of file ElectronCalibration.h.

Referenced by beginJob().

◆ PinMinPout

TH1F* ElectronCalibration::PinMinPout
private

Definition at line 190 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ PinMinPoutNoCuts

TH1F* ElectronCalibration::PinMinPoutNoCuts
private

Definition at line 191 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ PinOverPout

TH1F* ElectronCalibration::PinOverPout
private

Definition at line 124 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ PinOverPoutNoCuts

TH1F* ElectronCalibration::PinOverPoutNoCuts
private

Definition at line 147 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ RatioCalibs

TH1F* ElectronCalibration::RatioCalibs
private

Definition at line 127 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ RatioCalibsNoCuts

TH1F* ElectronCalibration::RatioCalibsNoCuts
private

Definition at line 129 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ read_events

int ElectronCalibration::read_events
private

Definition at line 87 of file ElectronCalibration.h.

Referenced by analyze(), beginJob(), and endJob().

◆ recHitLabel_

edm::InputTag ElectronCalibration::recHitLabel_
private

Definition at line 60 of file ElectronCalibration.h.

Referenced by analyze(), and ElectronCalibration().

◆ ReducedMap

CalibrationCluster::CalibMap ElectronCalibration::ReducedMap
private

Definition at line 85 of file ElectronCalibration.h.

Referenced by beginJob(), and endJob().

◆ rootfile_

std::string ElectronCalibration::rootfile_
private

Definition at line 59 of file ElectronCalibration.h.

Referenced by beginJob(), and ElectronCalibration().

◆ scE

TH1F* ElectronCalibration::scE
private

Definition at line 114 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ scENoCuts

TH1F* ElectronCalibration::scENoCuts
private

Definition at line 134 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ solution

std::vector<float> ElectronCalibration::solution
private

Definition at line 102 of file ElectronCalibration.h.

Referenced by endJob().

◆ solutionNoCuts

std::vector<float> ElectronCalibration::solutionNoCuts
private

Definition at line 103 of file ElectronCalibration.h.

Referenced by endJob().

◆ trackLabel_

edm::InputTag ElectronCalibration::trackLabel_
private

Definition at line 62 of file ElectronCalibration.h.

Referenced by ElectronCalibration().

◆ trP

TH1F* ElectronCalibration::trP
private

Definition at line 115 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ trPNoCuts

TH1F* ElectronCalibration::trPNoCuts
private

Definition at line 135 of file ElectronCalibration.h.

Referenced by analyze(), and beginJob().

◆ WeightVector

std::vector<float> ElectronCalibration::WeightVector
private

Definition at line 92 of file ElectronCalibration.h.

Referenced by analyze().

◆ WeightVectorNoCuts

std::vector<float> ElectronCalibration::WeightVectorNoCuts
private

Definition at line 97 of file ElectronCalibration.h.

Referenced by analyze().

ElectronCalibration::mineta_
int mineta_
Definition: ElectronCalibration.h:68
ElectronCalibration::elecclass_
int elecclass_
Definition: ElectronCalibration.h:74
ElectronCalibration::MapNoCuts
TH2F * MapNoCuts
Definition: ElectronCalibration.h:140
ElectronCalibration::WeightVectorNoCuts
std::vector< float > WeightVectorNoCuts
Definition: ElectronCalibration.h:97
EBDetId::ieta
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49
ElectronCalibration::EventMatrixNoCuts
std::vector< std::vector< float > > EventMatrixNoCuts
Definition: ElectronCalibration.h:98
ElectronCalibration::electronLabel_
edm::InputTag electronLabel_
Definition: ElectronCalibration.h:61
ElectronCalibration::etaMax
int etaMax
Definition: ElectronCalibration.h:90
ElectronCalibration::MapCor2NoCuts
TH2F * MapCor2NoCuts
Definition: ElectronCalibration.h:166
edm::SortedCollection< EcalRecHit >::const_iterator
std::vector< EcalRecHit >::const_iterator const_iterator
Definition: SortedCollection.h:80
calibXMLwriter
Definition: calibXMLwriter.h:15
ElectronCalibration::hadOverEmNoCuts
TH1F * hadOverEmNoCuts
Definition: ElectronCalibration.h:205
reco::GsfElectron::trackMomentumOut
math::XYZVectorF trackMomentumOut() const
Definition: GsfElectron.h:278
edm::Handle::product
T const * product() const
Definition: Handle.h:70
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
ElectronCalibration::eventcrystal
int eventcrystal[171][360]
Definition: ElectronCalibration.h:107
ElectronCalibration::calibAlgo_
std::string calibAlgo_
Definition: ElectronCalibration.h:63
ElectronCalibration::cut1_
double cut1_
Definition: ElectronCalibration.h:71
ElectronCalibration::MapCor6NoCuts
TH2F * MapCor6NoCuts
Definition: ElectronCalibration.h:170
ElectronCalibration::cutCalo1_
double cutCalo1_
Definition: ElectronCalibration.h:79
ElectronCalibration::cut2_
double cut2_
Definition: ElectronCalibration.h:72
edm::isNotFinite
constexpr bool isNotFinite(T x)
Definition: isFinite.h:9
ElectronCalibration::MapCor2
TH2F * MapCor2
Definition: ElectronCalibration.h:153
ElectronCalibration::MapCor1NoCuts
TH2F * MapCor1NoCuts
Definition: ElectronCalibration.h:165
ElectronCalibration::trackLabel_
edm::InputTag trackLabel_
Definition: ElectronCalibration.h:62
ElectronCalibration::WeightVector
std::vector< float > WeightVector
Definition: ElectronCalibration.h:92
reco::SuperCluster
Definition: SuperCluster.h:18
EBDetId
Definition: EBDetId.h:17
edm
HLT enums.
Definition: AlignableModifier.h:19
ElectronCalibration::MapCorCalibNoCuts
TH2F * MapCorCalibNoCuts
Definition: ElectronCalibration.h:176
ElectronCalibration::newCalibs
std::vector< float > newCalibs
Definition: ElectronCalibration.h:104
ElectronCalibration::eSeedOverPoutNoCuts
TH1F * eSeedOverPoutNoCuts
Definition: ElectronCalibration.h:148
ElectronCalibration::ClusterSize_
int ClusterSize_
Definition: ElectronCalibration.h:82
ElectronCalibration::MapCor3
TH2F * MapCor3
Definition: ElectronCalibration.h:154
phits
const caConstants::TupleMultiplicity *__restrict__ const HitsOnGPU *__restrict__ double *__restrict__ phits
Definition: BrokenLineFitOnGPU.h:27
ElectronCalibration::rootfile_
std::string rootfile_
Definition: ElectronCalibration.h:59
gather_cfg.cout
cout
Definition: gather_cfg.py:144
MinL3Algorithm
Definition: MinL3Algorithm.h:18
ElectronCalibration::RatioCalibsNoCuts
TH1F * RatioCalibsNoCuts
Definition: ElectronCalibration.h:129
ElectronCalibration::e9Overe25NoCuts
TH1F * e9Overe25NoCuts
Definition: ElectronCalibration.h:138
ElectronCalibration::MapCor4
TH2F * MapCor4
Definition: ElectronCalibration.h:155
ElectronCalibration::solutionNoCuts
std::vector< float > solutionNoCuts
Definition: ElectronCalibration.h:103
ElectronCalibration::Error1NoCuts
TH1F * Error1NoCuts
Definition: ElectronCalibration.h:196
HouseholderDecomposition::iterate
std::vector< float > iterate(const std::vector< std::vector< float > > &eventMatrix, const std::vector< int > &VmaxCeta, const std::vector< int > &VmaxCphi, const std::vector< float > &energyVector, const int &nIter, const bool &normalizeFlag=false)
Definition: HouseholderDecomposition.cc:123
if
if(0==first)
Definition: CAHitNtupletGeneratorKernelsImpl.h:58
ElectronCalibration::EoP_all
TH1F * EoP_all
Definition: ElectronCalibration.h:117
ElectronCalibration::GeneralMap
TH2F * GeneralMap
Definition: ElectronCalibration.h:150
edm::SortedCollection< EcalRecHit >
ElectronCalibration::MapCor10
TH2F * MapCor10
Definition: ElectronCalibration.h:161
ElectronCalibration::cutCalo2_
double cutCalo2_
Definition: ElectronCalibration.h:80
pdwgLeptonRecoSkim_cfi.electronCollection
electronCollection
Definition: pdwgLeptonRecoSkim_cfi.py:5
ElectronCalibration::EnergyVectorNoCuts
std::vector< float > EnergyVectorNoCuts
Definition: ElectronCalibration.h:96
ElectronCalibration::cutESeed_
double cutESeed_
Definition: ElectronCalibration.h:81
ElectronCalibration::maxphi_
int maxphi_
Definition: ElectronCalibration.h:69
DetId::null
constexpr bool null() const
is this a null id ?
Definition: DetId.h:59
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition: GsfElectronFwd.h:14
ElectronCalibration::MisCalibs
TH1F * MisCalibs
Definition: ElectronCalibration.h:126
ElectronCalibration::calibinterNoCuts
TH1F * calibinterNoCuts
Definition: ElectronCalibration.h:145
ElectronCalibration::Error2
TH1F * Error2
Definition: ElectronCalibration.h:194
ElectronCalibration::MapCor5NoCuts
TH2F * MapCor5NoCuts
Definition: ElectronCalibration.h:169
ElectronCalibration::Map
TH2F * Map
Definition: ElectronCalibration.h:121
ElectronCalibration::calibClusterSize
int calibClusterSize
Definition: ElectronCalibration.h:89
reco::GsfElectron::hadronicOverEm
float hadronicOverEm() const
Definition: GsfElectron.h:508
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
edm::Handle
Definition: AssociativeIterator.h:50
ElectronCalibration::e25OverScE
TH1F * e25OverScE
Definition: ElectronCalibration.h:120
ElectronCalibration::phiMax
int phiMax
Definition: ElectronCalibration.h:90
ElectronCalibration::MapCor3NoCuts
TH2F * MapCor3NoCuts
Definition: ElectronCalibration.h:167
ElectronCalibration::calibinter
TH1F * calibinter
Definition: ElectronCalibration.h:144
ElectronCalibration::PinOverPout
TH1F * PinOverPout
Definition: ElectronCalibration.h:124
ElectronCalibration::MapCor7NoCuts
TH2F * MapCor7NoCuts
Definition: ElectronCalibration.h:171
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
ElectronCalibration::E25oPNoCuts
TH1F * E25oPNoCuts
Definition: ElectronCalibration.h:141
ElectronCalibration::eSeedOverPout2
TH1F * eSeedOverPout2
Definition: ElectronCalibration.h:200
ElectronCalibration::cutEPCalo2_
double cutEPCalo2_
Definition: ElectronCalibration.h:76
ElectronCalibration::MapCor8ESeed
TH2F * MapCor8ESeed
Definition: ElectronCalibration.h:185
ElectronCalibration::Error2NoCuts
TH1F * Error2NoCuts
Definition: ElectronCalibration.h:197
ElectronCalibration::MapCor9
TH2F * MapCor9
Definition: ElectronCalibration.h:160
ElectronCalibration::Map3Dcalib
TH2F * Map3Dcalib
Definition: ElectronCalibration.h:142
ElectronCalibration::keventweight_
int keventweight_
Definition: ElectronCalibration.h:65
ElectronCalibration::MapCor5
TH2F * MapCor5
Definition: ElectronCalibration.h:156
CalibrationCluster::get5x5Id
std::vector< EBDetId > get5x5Id(EBDetId const &)
Definition: CalibrationCluster.cc:13
ElectronCalibration::MapCorCalib
TH2F * MapCorCalib
Definition: ElectronCalibration.h:163
ElectronCalibration::hadOverEmESeed
TH1F * hadOverEmESeed
Definition: ElectronCalibration.h:206
ElectronCalibration::calibCluster
CalibrationCluster calibCluster
Definition: ElectronCalibration.h:84
calibXMLwriter::writeLine
void writeLine(EBDetId const &, float)
Definition: calibXMLwriter.cc:32
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
ElectronCalibration::MapCor6
TH2F * MapCor6
Definition: ElectronCalibration.h:157
PVValHelper::eta
Definition: PVValidationHelpers.h:70
ElectronCalibration::e9Overe25
TH1F * e9Overe25
Definition: ElectronCalibration.h:119
ElectronCalibration::MapCor8
TH2F * MapCor8
Definition: ElectronCalibration.h:159
ElectronCalibration::EoPNoCuts
TH1F * EoPNoCuts
Definition: ElectronCalibration.h:136
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ElectronCalibration::cutEPCalo1_
double cutEPCalo1_
Definition: ElectronCalibration.h:75
reco::GsfElectron::trackMomentumAtVtx
math::XYZVectorF trackMomentumAtVtx() const
Definition: GsfElectron.h:276
CalibrationCluster::getMap
CalibMap getMap(int, int, int, int)
Definition: CalibrationCluster.cc:69
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
reco::GsfElectron
Definition: GsfElectron.h:35
ElectronCalibration::MapCor5ESeed
TH2F * MapCor5ESeed
Definition: ElectronCalibration.h:182
ElectronCalibration::MapCor10NoCuts
TH2F * MapCor10NoCuts
Definition: ElectronCalibration.h:174
ElectronCalibration::etaMin
int etaMin
Definition: ElectronCalibration.h:90
ElectronCalibration::eSeedOverPout2NoCuts
TH1F * eSeedOverPout2NoCuts
Definition: ElectronCalibration.h:201
ElectronCalibration::E25oP
TH1F * E25oP
Definition: ElectronCalibration.h:122
ElectronCalibration::cutEPin2_
double cutEPin2_
Definition: ElectronCalibration.h:78
ElectronCalibration::EventMatrix
std::vector< std::vector< float > > EventMatrix
Definition: ElectronCalibration.h:93
MTVHistoProducerAlgoForTrackerBlock_cfi.maxHit
maxHit
Definition: MTVHistoProducerAlgoForTrackerBlock_cfi.py:37
ElectronCalibration::cut3_
double cut3_
Definition: ElectronCalibration.h:73
ElectronCalibration::MapCor9ESeed
TH2F * MapCor9ESeed
Definition: ElectronCalibration.h:186
ElectronCalibration::minphi_
int minphi_
Definition: ElectronCalibration.h:70
ElectronCalibration::f
TFile * f
Definition: ElectronCalibration.h:110
EBDetId::ETAPHIMODE
static const int ETAPHIMODE
Definition: EBDetId.h:158
ElectronCalibration::MyL3Algo1
MinL3Algorithm * MyL3Algo1
Definition: ElectronCalibration.h:101
ElectronCalibration::Error1
TH1F * Error1
Definition: ElectronCalibration.h:193
ElectronCalibration::PinMinPoutNoCuts
TH1F * PinMinPoutNoCuts
Definition: ElectronCalibration.h:191
ElectronCalibration::Map3DcalibNoCuts
TH2F * Map3DcalibNoCuts
Definition: ElectronCalibration.h:143
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
ElectronCalibration::MaxCCphi
std::vector< int > MaxCCphi
Definition: ElectronCalibration.h:95
ElectronCalibration::Error3NoCuts
TH1F * Error3NoCuts
Definition: ElectronCalibration.h:198
ElectronCalibration::MapCor1
TH2F * MapCor1
Definition: ElectronCalibration.h:152
ElectronCalibration::PinOverPoutNoCuts
TH1F * PinOverPoutNoCuts
Definition: ElectronCalibration.h:147
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
reco::CaloCluster::eta
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:181
ElectronCalibration::MaxCCeta
std::vector< int > MaxCCeta
Definition: ElectronCalibration.h:94
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
reco::CaloCluster::hitsAndFractions
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
Definition: CaloCluster.h:210
ElectronCalibration::MapCor11NoCuts
TH2F * MapCor11NoCuts
Definition: ElectronCalibration.h:175
MinL3Algorithm::iterate
std::vector< float > iterate(const std::vector< std::vector< float > > &eventMatrix, const std::vector< int > &VmaxCeta, const std::vector< int > &VmaxCphi, const std::vector< float > &energyVector, const int &nIter, const bool &normalizeFlag=false)
Definition: MinL3Algorithm.cc:35
ElectronCalibration::Error3
TH1F * Error3
Definition: ElectronCalibration.h:195
edm::SortedCollection< EcalRecHit >::iterator
std::vector< EcalRecHit >::iterator iterator
Definition: SortedCollection.h:81
ElectronCalibration::trPNoCuts
TH1F * trPNoCuts
Definition: ElectronCalibration.h:135
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
ElectronCalibration::e25NoCuts
TH1F * e25NoCuts
Definition: ElectronCalibration.h:132
ElectronCalibration::RatioCalibs
TH1F * RatioCalibs
Definition: ElectronCalibration.h:127
ElectronCalibration::recHitLabel_
edm::InputTag recHitLabel_
Definition: ElectronCalibration.h:60
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
HouseholderDecomposition::runRegional
std::vector< float > runRegional(const std::vector< std::vector< float > > &eventMatrix, const std::vector< int > &VmaxCeta, const std::vector< int > &VmaxCphi, const std::vector< float > &energyVector, const int &nIter, const int &regLength=5)
Definition: HouseholderDecomposition.cc:30
ElectronCalibration::maxeta_
int maxeta_
Definition: ElectronCalibration.h:67
reco::GsfElectron::trackMomentumAtCalo
math::XYZVectorF trackMomentumAtCalo() const
Definition: GsfElectron.h:277
ElectronCalibration::MapCor7
TH2F * MapCor7
Definition: ElectronCalibration.h:158
ElectronCalibration::MapCor7ESeed
TH2F * MapCor7ESeed
Definition: ElectronCalibration.h:184
ElectronCalibration::MapCor2ESeed
TH2F * MapCor2ESeed
Definition: ElectronCalibration.h:179
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ElectronCalibration::EnergyVector
std::vector< float > EnergyVector
Definition: ElectronCalibration.h:91
ElectronCalibration::e25OverScENoCuts
TH1F * e25OverScENoCuts
Definition: ElectronCalibration.h:139
ElectronCalibration::e9NoCuts
TH1F * e9NoCuts
Definition: ElectronCalibration.h:133
ElectronCalibration::solution
std::vector< float > solution
Definition: ElectronCalibration.h:102
ElectronCalibration::ElePt_
double ElePt_
Definition: ElectronCalibration.h:66
DDAxes::phi
ElectronCalibration::MaxCCphiNoCuts
std::vector< int > MaxCCphiNoCuts
Definition: ElectronCalibration.h:100
ElectronCalibration::eSeedOverPout
TH1F * eSeedOverPout
Definition: ElectronCalibration.h:125
ElectronCalibration::MapCor4NoCuts
TH2F * MapCor4NoCuts
Definition: ElectronCalibration.h:168
ElectronCalibration::scENoCuts
TH1F * scENoCuts
Definition: ElectronCalibration.h:134
ElectronCalibration::cutEPin1_
double cutEPin1_
Definition: ElectronCalibration.h:77
ElectronCalibration::MapCor9NoCuts
TH2F * MapCor9NoCuts
Definition: ElectronCalibration.h:173
ElectronCalibration::scE
TH1F * scE
Definition: ElectronCalibration.h:114
ElectronCalibration::ReducedMap
CalibrationCluster::CalibMap ReducedMap
Definition: ElectronCalibration.h:85
ElectronCalibration::DiffCalibs
TH1F * DiffCalibs
Definition: ElectronCalibration.h:128
ElectronCalibration::MapCor6ESeed
TH2F * MapCor6ESeed
Definition: ElectronCalibration.h:183
reco::LeafCandidate::p
double p() const final
magnitude of momentum vector
Definition: LeafCandidate.h:123
reco::GsfElectron::eSuperClusterOverP
float eSuperClusterOverP() const
Definition: GsfElectron.h:229
reco::GsfElectron::classification
Classification classification() const
Definition: GsfElectron.h:792
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
reco::GsfElectron::eSeedClusterOverPout
float eSeedClusterOverPout() const
Definition: GsfElectron.h:231
reco::GsfElectron::superCluster
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:163
HouseholderDecomposition
Definition: HouseholderDecomposition.h:17
ElectronCalibration::phiMin
int phiMin
Definition: ElectronCalibration.h:90
ElectronCalibration::MapCor11
TH2F * MapCor11
Definition: ElectronCalibration.h:162
ElectronCalibration::MaxCCetaNoCuts
std::vector< int > MaxCCetaNoCuts
Definition: ElectronCalibration.h:99
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
reco::GsfElectron::trackMomentumError
float trackMomentumError() const
Definition: GsfElectron.h:871
EBDetId::iphi
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
ElectronCalibration::hadOverEm
TH1F * hadOverEm
Definition: ElectronCalibration.h:204
ElectronCalibration::EoP
TH1F * EoP
Definition: ElectronCalibration.h:116
cuy.save
save
Definition: cuy.py:1164
ElectronCalibration::oldCalibs
std::vector< float > oldCalibs
Definition: ElectronCalibration.h:105
ElectronCalibration::numevent_
int numevent_
Definition: ElectronCalibration.h:108
ElectronCalibration::e25
TH1F * e25
Definition: ElectronCalibration.h:112
ElectronCalibration::trP
TH1F * trP
Definition: ElectronCalibration.h:115
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
ElectronCalibration::MapCor1ESeed
TH2F * MapCor1ESeed
Definition: ElectronCalibration.h:178
ElectronCalibration::MapCor3ESeed
TH2F * MapCor3ESeed
Definition: ElectronCalibration.h:180
ElectronCalibration::eSeedOverPout2ESeed
TH1F * eSeedOverPout2ESeed
Definition: ElectronCalibration.h:202
ElectronCalibration::MapCor8NoCuts
TH2F * MapCor8NoCuts
Definition: ElectronCalibration.h:172
ElectronCalibration::DiffCalibsNoCuts
TH1F * DiffCalibsNoCuts
Definition: ElectronCalibration.h:130
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
reco::CaloCluster::energy
double energy() const
cluster energy
Definition: CaloCluster.h:149
ElectronCalibration::PinMinPout
TH1F * PinMinPout
Definition: ElectronCalibration.h:190
cuy.ii
ii
Definition: cuy.py:589
edm::InputTag
Definition: InputTag.h:15
ElectronCalibration::findMaxHit2
EBDetId findMaxHit2(const std::vector< DetId > &, const EBRecHitCollection *)
Definition: ElectronCalibration.cc:432
ElectronCalibration::calibsNoCuts
TH1F * calibsNoCuts
Definition: ElectronCalibration.h:137
ElectronCalibration::miscalibfile_
std::string miscalibfile_
Definition: ElectronCalibration.h:64
ElectronCalibration::MapCor4ESeed
TH2F * MapCor4ESeed
Definition: ElectronCalibration.h:181
ElectronCalibration::MapCor11ESeed
TH2F * MapCor11ESeed
Definition: ElectronCalibration.h:188
ElectronCalibration::calibs
TH1F * calibs
Definition: ElectronCalibration.h:118
ElectronCalibration::read_events
int read_events
Definition: ElectronCalibration.h:87
ElectronCalibration::MyHH
HouseholderDecomposition * MyHH
Definition: ElectronCalibration.h:146
ElectronCalibration::MapCor10ESeed
TH2F * MapCor10ESeed
Definition: ElectronCalibration.h:187
ElectronCalibration::e9
TH1F * e9
Definition: ElectronCalibration.h:113