CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PhotonCalibrator.Run2PhotonCalibrator Class Reference

Public Member Functions

def __init__ (self, data, isMC, isSync=False)
 
def correct (self, photon, run)
 

Public Attributes

 photonEnergyCalibratorRun2
 
 random
 

Detailed Description

Definition at line 5 of file PhotonCalibrator.py.

Constructor & Destructor Documentation

◆ __init__()

def PhotonCalibrator.Run2PhotonCalibrator.__init__ (   self,
  data,
  isMC,
  isSync = False 
)

Definition at line 6 of file PhotonCalibrator.py.

6  def __init__(self, data, isMC, isSync=False):
7  self.random = ROOT.TRandom3()
8  self.random.SetSeed(0) # make it really random across different jobs
9  self.photonEnergyCalibratorRun2 = ROOT.PhotonEnergyCalibratorRun2(isMC, isSync, data)
10  self.photonEnergyCalibratorRun2.initPrivateRng(self.random)
11 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ correct()

def PhotonCalibrator.Run2PhotonCalibrator.correct (   self,
  photon,
  run 
)

Definition at line 12 of file PhotonCalibrator.py.

References createfilelist.int, and PhotonCalibrator.Run2PhotonCalibrator.photonEnergyCalibratorRun2.

12  def correct(self,photon,run):
13  photon.uncalibratedP4 = photon.p4(photon.getCandidateP4type())
14  photon.uncalibratedP4Error = photon.getCorrectedEnergyError(photon.getCandidateP4type())
15  self.photonEnergyCalibratorRun2.calibrate(photon.physObj, int(run))
16  return True

Member Data Documentation

◆ photonEnergyCalibratorRun2

PhotonCalibrator.Run2PhotonCalibrator.photonEnergyCalibratorRun2

Definition at line 9 of file PhotonCalibrator.py.

Referenced by PhotonCalibrator.Run2PhotonCalibrator.correct().

◆ random

PhotonCalibrator.Run2PhotonCalibrator.random

Definition at line 7 of file PhotonCalibrator.py.