CMS 3D CMS Logo

Public Member Functions | Public Attributes

PhysicsModel::PhysicsModel Class Reference

Class that takes care of building a physics model by combining individual channels and processes together Things that it can do:

More...

Inheritance diagram for PhysicsModel::PhysicsModel:
PhysicsModel::SMLikeHiggsModel PhysicsModel::FloatingBRHiggs PhysicsModel::FloatingHiggsMass PhysicsModel::FloatingXSHiggs PhysicsModel::StrictSMLikeHiggsModel

List of all members.

Public Member Functions

def __init__
def doParametersOfInterest
def getYieldScale
def preProcessNuisances
def setModelBuilder
def setPhysicsOptions

Public Attributes

 DC
 modelBuilder
 options

Detailed Description

Class that takes care of building a physics model by combining individual channels and processes together Things that it can do:

Definition at line 8 of file PhysicsModel.py.


Constructor & Destructor Documentation

def PhysicsModel::PhysicsModel::__init__ (   self)

Reimplemented in PhysicsModel::FloatingHiggsMass, PhysicsModel::FloatingXSHiggs, and PhysicsModel::FloatingBRHiggs.

Definition at line 9 of file PhysicsModel.py.

00010                       :
        pass

Member Function Documentation

def PhysicsModel::PhysicsModel::doParametersOfInterest (   self)
Create POI and other parameters, and define the POI set.

Reimplemented in PhysicsModel::FloatingHiggsMass, PhysicsModel::FloatingXSHiggs, and PhysicsModel::FloatingBRHiggs.

Definition at line 19 of file PhysicsModel.py.

00020                                     :
00021         """Create POI and other parameters, and define the POI set."""
00022         # --- Signal Strength as only POI --- 
00023         self.modelBuilder.doVar("r[0,20]");
00024         self.modelBuilder.doSet("POI","r")
00025         # --- Higgs Mass as other parameter ----
00026         if self.options.mass != 0:
00027             if self.modelBuilder.out.var("MH"):
00028               self.modelBuilder.out.var("MH").removeRange()
00029               self.modelBuilder.out.var("MH").setVal(self.options.mass)
00030             else:
              self.modelBuilder.doVar("MH[%g]" % self.options.mass); 
def PhysicsModel::PhysicsModel::getYieldScale (   self,
  bin,
  process 
)

Reimplemented in PhysicsModel::SMLikeHiggsModel.

Definition at line 34 of file PhysicsModel.py.

00035                                        :
00036         "Return the name of a RooAbsReal to scale this yield by or the two special values 1 and 0 (don't scale, and set to zero)"
00037         return "r" if self.DC.isSignal[process] else 1;
00038 

def PhysicsModel::PhysicsModel::preProcessNuisances (   self,
  nuisances 
)

Definition at line 31 of file PhysicsModel.py.

00032                                            :
00033         "receive the usual list of (name,nofloat,pdf,args,errline) to be edited"
        pass # do nothing by default
def PhysicsModel::PhysicsModel::setModelBuilder (   self,
  modelBuilder 
)

Definition at line 11 of file PhysicsModel.py.

00012                                            :
00013         "Connect to the ModelBuilder to get workspace, datacard and options. Should not be overloaded."
00014         self.modelBuilder = modelBuilder
00015         self.DC = modelBuilder.DC
        self.options = modelBuilder.options
def PhysicsModel::PhysicsModel::setPhysicsOptions (   self,
  physOptions 
)

Reimplemented in PhysicsModel::FloatingHiggsMass, PhysicsModel::FloatingXSHiggs, and PhysicsModel::FloatingBRHiggs.

Definition at line 16 of file PhysicsModel.py.

00017                                            :
00018         "Receive a list of strings with the physics options from command line"
        pass

Member Data Documentation

Definition at line 11 of file PhysicsModel.py.

Definition at line 11 of file PhysicsModel.py.

Definition at line 11 of file PhysicsModel.py.