XeRun Class Reference

Class for ER background as published in PRL for run 8 Everything is tabulated. More...

#include <XeAnalysis.h>

Inheritance diagram for XeRun:
integrable S1S2Object XeMath XeGraphics XeObject XeCore XeCore XeCore

List of all members.

Public Member Functions

bool checkBand (int band)
 Check whether a band index is correct and prints a warning if not.
bool checkIt ()
 Check the run attributes and recompute what is needed.
void checkTheCuts ()
 Internal method: were thu cuts applied?
void computeBackgrounds ()
 compute background bands from data, and estimate background
bool computeSignal ()
 compute exoeceted Er and S1 spectra for signal, fill bands, etc.
void computeSignalBands (double LEFFt)
 compute the signal bands for a given LEff t-value
double defaultAmBeNormalizationToEvents ()
 Return default Neutron/gamma normalisation (i.e.
double defaultDarkMatterNormalization ()
 Return default DarkMatter normalisation (i.e.
double defaultEGammaNormalizationToEvents ()
 Return default E/gamma normalisation (i.e.
double dRate (double Er)
 Compute event rates in events/KeV.
void draw ()
 Draw it, being and S1S2Object object.
void drawCuts ()
 Draw the cuts.
double ErMax ()
 Return maximum Recoil energy for given mass.
double ErToNPhotons (double Er)
 Return expected number of photons.
double expectedNumberOfNeutrons (double peMin, double peMax)
 Return expected number of neutrons between two PE.
double expectedSignal (double leffT)
 return the expected number of events pass all cuts
double expectedSignalInErWindow (double E1=-1., double E2=-1.)
 Compute the expected number of signal events in an ERecoil window.
void fillDataBands ()
 Fill all data bands, after they have been defined.
void fillSelectionCutsBreakdown (vector< double > &remaining, double LEfft=0.)
 Fill the expected number of signal events for the sequence of selection cuts.
bool fillSimulatedDataAndBands (int band, double s1)
 fill simulated data, and corresponding band/slices
double flatten (double S1, double S2)
 compute flattened log(s1/s2)
void forceSignalERecoilSpectrum (double *Er=NULL)
 Set SignalERecoil spectrum by brute force for (mainly for debugging).
double * getAllBackgroundsInBandsS1Distribution (int band=ALL)
 Return the array of distribution of the background for a given band.
double * getAllBackgroundsInBandsS1Spectrum (int band=ALL)
 Return array o fthe spectrum of the background for a given band.
TabulatedDistgetAllBackgroundsInBandsS1XeDist (int band=ALL)
 Return the distribution of the background for a given band.
XeSpectrumgetAllBackgroundsInBandsS1XeSpectrum (int band=ALL)
 Return the spectrum of the background for a given band.
XeSetOfCutsgetAllCuts ()
 Return all the cuts.
double getAnalysisS1Max ()
 Get overall S1 max for the s1,s2 analysis.
double getAnalysisS1Min ()
 Get overall S1 min for the s1,s2 analysis.
double * getBackgroundS1Distribution (int background)
 Return the S1 distribution for a given type of background.
double * getBackgroundS1Spectrum (int background)
 Return the S1 spectrum for a given type of background.
TabulatedDistgetBackgroundS1XeDist (int background)
 get the S1 distribution (normalized to 1) for a given type of background
XeSpectrumgetBackgroundS1XeSpectrum (int background)
 get the S1 spectrum for a given type of background
double getBandContent (int type, int band=ALL)
 Return content of a given band.
XeSetOfCutsgetDarkMatterCuts ()
 Return the dark matter cuts.
int getDataType ()
 return data type
string getDataTypeName ()
 get the data type name for the current name
ElectronBackgroundModelgetElectronBackgroundModel ()
 return pointer to Electron Background Model in use
double getExposure ()
 Return exposure (in days).
double getFiducialMass ()
 Return fiducial mass.
RunFlattenergetFlattener ()
 Return object which flattens log(s2/s1).
GalaxyModelgetGalaxyModel ()
 Return Galaxy model.
double getHighestS2OverS1 ()
 Get highest overall s2/s1 for the s1,s2 analysis.
InteractiongetInteraction ()
 Return interaction.
LEffgetLEff ()
 Return L-effective model user for Light yield computation.
double getLEffErMin ()
 get hard cut of lowest energy for which LEff>0
double getLEffTValue ()
 Return current "t-value" for L-effective.
double getLightYield ()
 Return light yield.
double getLowestS2OverS1 ()
 Get lowest overall s2/s1 for the s1,s2 analysis.
string getName ()
 Method overriding the default one for XeObject.
NeutronBackgroundModelgetNeutronBackgroundModel ()
 return pointer to Neutron Background Model in use
int getNSelectionCuts ()
 return number of selection cuts
int getNumber ()
 return run number
PValuegetPValue ()
 Return the pValue currently is use.
S1S2BandsgetReferenceBands ()
 Get reference bands.
S1S2BandsgetS1S2Bands (int type)
 Get bands of a given data type.
S1S2DatagetS1S2Data (int type)
 Get data set.
double getSe ()
 Return Se used for Light yield computation.
SelectionCutgetSelectionCutBySequence (int i)
 Return a selection cut, given its sequence number.
XeSetOfSelectionCutsgetSelectionCuts ()
 Return all the selection cuts.
double getSelectionS1Max ()
 Return smeared S1 max for the relevant cuts.
double getSelectionS1Min ()
 Return smeared S1 min for the relevant cuts.
double getSelectionUS1Min ()
 Return unsmeared S1 min for the relevant cuts.
string getShortTypeName (int type)
 return short type type name, using value of cross section for graphs
double getSigmaForReports ()
 Fet the wimp-nucleon cross section for reports, graphs, tables.
double getSigmaNucleon ()
 Return wimp-nucleon cross section.
double getSigmaPMT ()
 Return resolution of PMT.
double * getSignalERecoilDistribution ()
 Return the distrbution of Energy recoil, for current interaction, mass ,.
double * getSignalERecoilSpectrum ()
 Return the spectrum of Energy recoil, for current interaction, mass ,.
TabulatedDistgetSignalERecoilXeDist ()
 get the distribution of Signal ERecoil
XeSpectrumgetSignalERecoilXeSpectrum ()
 get the spectrum of Signal ERecoil
double * getSignalS1Distribution (double tLEff=0.)
 Return the distribution of Signal S1, for current interaction, mass ,.
double * getSignalS1Spectrum (int tindex=SIDE_LEFF_TABULATED)
 Return the spectrum of Signal S1, for current interaction, mass ,.
double * getSignalS1Spectrum (double tLEff)
 Return the spectrum of Signal S1, for current interaction, mass ,.
TabulatedDistgetSignalS1XeDist (double tLEff=0.)
 get the distribution of Signal S1
XeSpectrumgetSignalS1XeSpectrum (int tindex=SIDE_LEFF_TABULATED)
 get the spectrum of Signal S1
XeSpectrumgetSignalS1XeSpectrum (double lLEff)
 get the spectrum of Signal S1
double getSr ()
 Return Sr used for Light yield computation.
TargetgetTarget ()
 Return target.
double getTheoreticalUpperSigma (double cl=DEFAULT_CL, bool afterCuts=true)
 Return theoretical upper poission sigma limit, assuming no background.
double getTotalContent (int type)
 Return total content.
double getTypicalErMin ()
 get typical lower cut on recooil energy corresponding to cuts
double getValue (int what, double x)
 events rate for integration
WimpgetWimp ()
 Return WIMP.
double getWimpMass ()
 return Wimp Mass
double maxS1 (int type)
 return maximum S1 for a given data type
double maxS1 ()
 Return overall S1 max.
double maxS2 (int type)
 return maximum S2 for a given data type
double maxS2 ()
 Return overall S2 max.
double maxX (int type)
 return maximum 'X' for a given data type
double maxX ()
 Return maximum 'X' value, as requested by being an S1S2Object object.
double maxY (int type)
 return maximum 'Y' for a given data type
double maxY ()
 Return maximum 'y' value, as requested by being an S1S2Object object.
double minS1 (int type)
 return minimum S1 for a given data type
double minS1 ()
 Return overall S1 min.
double minS2 (int type)
 return minimum S2 for a given data type
double minS2 ()
 Return overall S2 min.
double minX (int type)
 return minimum 'X' for a given data type
double minX ()
 Return minimum 'X' value, as requested by being an S1S2Object object.
double minY (int type)
 return minimum 'Y' for a given data type
double minY ()
 Return minimum 'Y' value, as requested by being an S1S2Object object.
TH2F * new2DHistogram (int type, int plot=NONE)
 create a 2d histogram whose content is follows slices and bands
TH2F * new2DHistogramOfSignalERecoilDistribution (XeRange *mr=NULL, int plot=NONE)
 Create a 2D histogram of Energy Recoil return Pointer to a new TH2F.
TH2F * new2DHistogramOfSignalERecoilSpectrum (XeRange *mr=NULL, int plot=NONE)
 Create a 2D histogram of Er signal spectrum, after cuts.
TH2F * new2DHistogramOfSignalS1Distribution (XeRange *mr=NULL, int plot=NONE, int tIndex=SIDE_LEFF_TABULATED)
 Create an histogram of the shape of S1 distribution for a signal.
TH2F * new2DHistogramOfSignalS1Spectrum (XeRange *mr=NULL, int plot=NONE, int tindex=SIDE_LEFF_TABULATED)
 create a 2D histogram of S1 spectrum for the expected signal
ElectronBackgroundModelnewDefaultElectronBackgroundModel ()
 return pointer to a default Electron Background Model
LEffnewDefaultLEff ()
 return Pointer to a default LEff class
NeutronBackgroundModelnewDefaultNeutronBackgroundModel ()
 return Pointer to a default Neutron Background Model
XeSetOfCutsnewDefaultXeSetOfDarkMatterCuts ()
 return Pointer to a default Set Of Dark Matter Cuts
XeSetOfSelectionCutsnewDefaultXeSetOfSelectionCuts ()
 return Pointer to a default Set Of Selection Cuts
TabulatedDistnewDistributionOfSignalAndBackgroundS1 (int tindex=SIDE_LEFF_TABULATED)
 Create Distribution of signal + background.
XeGraphnewGraphOfAllBackgroundsInBandsS1Distribution (int band=ALL, int plot=NONE)
 Produce a Graph of the S1 distribution of the background.
XeGraphnewGraphOfAllBackgroundsInBandsS1Spectrum (int band=ALL, int plot=NONE)
 Produce a Graph of the S1 spectrum of the background.
XeGraphnewGraphOfBackgroundS1Distribution (int background, int plot=NONE)
 Create a graph of the shape of S1 distribution for a given background.
XeGraphnewGraphOfCurrentLEff (ErRange *er=NULL, int plot=NONE)
 Create a graph of LEffective for the current value.
XeGraphnewGraphOfExpectedSignal (XeRange *mr=NULL, double tl=0., int plot=NONE)
 Create a graph of the number of signal events passing all cuts.
XeGraphnewGraphOfExpectedSignalInErWindow (XeRange *mr=NULL, int plot=NONE)
 Create a graph of the number of expected events in Er Window, before cuts.
XeGraphnewGraphOfLEff (ErRange *er=NULL, double t=0., int plot=NONE)
 Create a graph of LEffective for the central value.
XeGraphnewGraphOfSelectionCutsAcceptance (S1Range *srange=NULL, bool smear=true, int plot=NONE)
 Create a graph of the acceptance of the selection.
XeGraphnewGraphOfSignalAndBackgroundS1Distribution (int plot=NONE, int tindex=SIDE_LEFF_TABULATED)
 create a graph of S1 spectrum for the expected signal and all backgrounds
XeGraphnewGraphOfSignalAndBackgroundS1Spectrum (int plot=NONE, int tindex=SIDE_LEFF_TABULATED)
 create a graph of S1 spectrum for the expected signal and all backgrounds
XeGraphnewGraphOfSignalERecoilDistribution (int plot=NONE)
 Create a graph of Signal Energy Recoil, normalized to 1.
XeGraphnewGraphOfSignalERecoilSpectrum (int plot=NONE)
 Create a graph of Signal Energy Recoil.
XeGraphnewGraphOfSignalS1Distribution (int plot=NONE, int tIndex=SIDE_LEFF_TABULATED)
 Create a graph of the shape of S1 distribution for a signal.
XeGraphnewGraphOfSignalS1Spectrum (int plot=NONE, int tindex=SIDE_LEFF_TABULATED)
 create a graph of S1 spectrum for the expected signal
XeGraphnewGraphOfTheoreticalUpperSigma (XeRange *mr=NULL, double cl=DEFAULT_CL, bool afterCuts=true, int plot=NONE)
 Create a graph of the theoretical upper sigma in the absence of bkg.
TH1F * newHistogramOfBackgroundS1Distribution (int background, int plot=NONE)
 Return histogram of the shape of S1 distribution for a given background.
TH1F * newHistogramOfSignalERecoilDisribution (int plot=NONE)
 Create an histogram of Energy Recoil, normalized to 1.
TH1F * newHistogramOfSignalERecoilSpectrum (int plot=NONE)
 Create an histogram of Energy Recoil.
TH1F * newHistogramOfSignalS1Distribution (int plot=NONE, int tIndex=SIDE_LEFF_TABULATED)
 Create an histogram of the shape of S1 distribution for a signal.
TH1F * newHistogramOfSignalS1Spectrum (int plot=NONE, int tindex=SIDE_LEFF_TABULATED)
 create an histogram of S1 spectrum for the expected signal
XeMultiGraphnewMultiGraphOfAllBackgroundsInBandsS1Distribution (int plot=NONE)
 Produce a multi graph of the S1 distribution of the background for all bands.
XeMultiGraphnewMultiGraphOfAllBackgroundsInBandsS1Spectrum (int plot=NONE)
 Produce a multi graph of the S1 spectrum of the background for all bands.
XeMultiGraphnewMultiGraphOfExpectedSignalByLEff (XeRange *mr=NULL, tValueRange *tRange=NULL, int plot=NONE)
 Create a Multigraph of the number of signal events passing all cuts when LEff varies.
XeMultiGraphnewMultiGraphOfExpectedSignalByVEsc (XeRange *mr=NULL, VEscRange *vRange=NULL, int plot=NONE)
 Create a Multigraph of the number of signal events passing all cuts when VEsc varies.
XeMultiGraphnewMultiGraphOfS1Distributions (int plot=NONE)
 Return a Multigraph of the shape of S1 distribution for the signal, neutron and electron background.
XeMultiGraphnewMultiGraphOfSignalERecoilDistribution (XeRange *mr=NULL, int plot=NONE)
 Create a Multigraph of Energy Recoil, normalized to 1.
XeMultiGraphnewMultiGraphOfSignalERecoilSpectrum (XeRange *mr=NULL, int plot=NONE)
 Create a Multigraph of Energy Recoil.
XeMultiGraphnewMultiGraphOfSignalS1Distribution (XeRange *mr=NULL, int plot=NONE, int tIndex=SIDE_LEFF_TABULATED)
 Create a Multigraph of the shape of S1 distribution for various masses.
XeMultiGraphnewMultiGraphOfSignalS1Spectrum (int step=1, int plot=NONE)
 Create a multigraph of S1 distribution for various LEff t-values.
XeSpectrumnewSpectrumOfSignalAndBackgroundS1 (int tindex=SIDE_LEFF_TABULATED)
 Create Spectrum of signal + background.
TTree * newTree (int type)
 Get a tree corresponding to a given data file.
double NPhotonsToEr (double nP)
 Return Recoil energy, given expect number of photons.
double nSignalPerCm2 (double lt=0.)
 return expected number of signal events for 1 cm2 cross section
void printBandCLsCounting (int nb)
 Print the CLs limits while cumulating bands one to one.
void printBandContent (double leffT=0.)
 print details of band contents for variable LEff
bool printCandidates (int maxBand)
 Dump "candidates" (i.e.
void printDataSummary ()
 Print a summary of the data bands.
bool printEvents (int dt, int maxBand)
 Dump events of a give data source looking like "candidates" (i.e.
bool printIt (int level=1)
 print this run
void printSelectionCutsBreakdown (double mass=0., double sigma=0., double LEfft=0.)
 Dump of the expected number of signal events for the sequence of selection cuts.
void printSignalERecoilSpectrum ()
 Print the spectrum of E-Recoil.
bool recomputeEverything ()
 Force all run checks and band recomputing.
void setAnalysisS1Max (double s1Max)
 set the highest s1 value for band analysis
void setAnalysisS1Min (double s1Min)
 set the lowest s1 value for band analysis
void setDarkMatterCuts (XeSetOfCuts *cuts)
 Set analysis (dark matter) cuts.
void setElectronBackgroundModel (ElectronBackgroundModel *model)
 Set model for computing electronic background (leakage).
void setEquallyFilledS1Slices (bool equal=false)
 Set the mode when s1 slices are equally filled.
void setGalaxyModel (GalaxyModel *gal)
 Set the Galaxy model.
void setHighestS2OverS1 (double S2OverS1Max)
 set the highest S2OverS1 limit in band 0
void setInteraction (Interaction *inter)
 Set the interaction.
void setLEff (LEff *leff)
 Set the LEffective model.
void setLEffErMin (double e)
 set hard cut of lowest energy for which LEff>0
void setLEffTValue (double tValue)
 Set the LEffective "t-value".
void setLightYield (double lightYield)
 Set the light yield.
void setLowestS2OverS1 (double S2OverS1Min)
 set the lowest S2OverS1 limit in band 0
void setNeutronBackgroundModel (NeutronBackgroundModel *model)
 Set model for computing neutron background.
void setPValue (PValue *pV)
 Set the pValue currently is use.
void setSelectionCuts (XeSetOfSelectionCuts *cuts)
 Set selection cuts.
void setSelectionCutTValue (int i, double t)
 Set the "t-value" for a selection cut.
void setSigmaForReports (double sigma, int unit=SIGMA_UNIT)
 Set the wimp-nucleon cross section for reports, graphs, tables.
void setSigmaNucleon (double sigma)
 Set the wimp-nucleon cross section.
void setTarget (Target *target)
 Set the target.
void setWimp (Wimp *wimp)
 Set the WIMP Particle.
void setWimpMass (double mass)
 Set the WIMP mass.
void simulate (double sigma=0.)
 simulate a run (i.e.
void tabulateSignalERecoilSpectrum ()
 Tabulate SignalERecoil spectrum, in the usual case it's not forced.
void tabulateSignalS1Spectrum (int tIndex)
 Tabulate S1 spectrum for one t value.
void tabulateSignalS1Spectrum ()
 Tabulate S1 spectrum.
virtual bool update ()
 As requested by being a p-value, recompute what is needed when smthg has changed.
bool withBands ()
 Does the current run have bands.
bool withData ()
 This run was defined with data, i.e.
bool withoutBands ()
 Is the current run without bands?
bool withoutData ()
 This run was defined without data, i.e.
 XeRun (int run, int datatype, string file="", string dmGraph="grData", string erGraph="grCo60", string nrGraph="grAmBe")
 XeRun ()
 No arg constructor for root.

Static Public Member Functions

static string getDataTypeName (int dt)
 get the data type name for a given data type
static string getDefaultFileName (int rn)
 get the default file name for a given run
static TargetgetTarget (int a)
 Get the target in use for the run.
static void setNBands (int nb=DEFAULT_N_BANDS)
 Set number of bands for analysis.
static void setNSlices (int ns=DEFAULT_N_SLICES)
 Set number of slices for analysis.

Protected Member Functions

bool checkS1LimitsConsistency ()
 check that all S1 limits (data, cuts, user analysis) are consistent
void deleteTheBand (int data_type)
 delete a given S1S2Bands
void deleteTheBands (int first=0, int last=N_ALL_DATA_TYPES-1)
 delete S1S2Bands
void initialize ()
 Initialize members to their default values.
void instantiateSignalBandsIfNeeded ()
 Instantiate signal bands, if needed.
pair< int, double > LEffTBinAndFraction (double leffT)
 Convert a L-Effective t-value into in index and a fraction ,for interplation.
void resetAllFlags ()
 all operation flags reset to 'undone'
void setAutomaticLimits (bool var=true)
 Will pLots be in variable limits (i.e.
void setNormalization (double egamma=UNDEFINED, double ambe=UNDEFINED, double darkMatter=UNDEFINED)
 Set the relative normalizaition.
void smearPMT (bool smear=true)
 set the smear PMT flag
void traceTheFlags ()
 print flags for tracing purpose

Static Protected Member Functions

static string getTheName (int runNumber)
 Return the standard run name.

Protected Attributes

vector< double * > AllBackgroundsInBandsS1Distribution
vector< double * > AllBackgroundsInBandsS1Spectrum
vector< TabulatedDist * > AllBackgroundsInBandsS1XeDist
vector< XeSpectrum * > AllBackgroundsInBandsS1XeSpectrum
XeSetOfCuts allCuts
double AmBeNormalizationToEvents
double AnalysisS1Max
double AnalysisS1Min
double * BackgroundS1SDistribution [N_BACKGROUNDS]
double * BackgroundS1Spectrum [N_BACKGROUNDS]
TabulatedDistBackgroundS1XeDist [N_BACKGROUNDS]
XeSpectrumBackgroundS1XeSpectrum [N_BACKGROUNDS]
bool backgroundsComputed
vector< double > BackgroundsInBands [N_BACKGROUNDS]
S1S2Bandsbands [N_ALL_DATA_TYPES]
XeSetOfCutsdarkMatterCuts
double DarkMatterNormalization
bool dataBandsAreBuilt
int dataType
ElectronBackgroundModelebm
double EGammaNormalizationToEvents
bool equallyFilledS1Slices
double Exposure
double FiducialMass
int firstAnalysisS1Bin
RunFlattenerflattener
bool forcedSignalERecoilSpectrum
int lastAnalysisS1Bin
LEffleff
double LEffErMin
double LightYield
NeutronBackgroundModelnbm
PValuepValue
S1S2BandsreferenceBands
int runNumber
S1S2Datas1s2 [N_CUT_DATA_TYPES]
double S2OverS1Max
double S2OverS1Min
double Se
XeSetOfSelectionCutsselectionCuts
double SelectionS1Max
double SelectionS1Min
double SelectionUS1Min
double sigmaFactor
double sigmaForReports
double SigmaPMT
double * SignalERecoilDistribution
double * SignalERecoilSpectrum
TabulatedDistSignalERecoilXeDist
XeSpectrumSignalERecoilXeSpectrum
double * SignalS1Distribution [N_LEFF_TABULATED]
double * SignalS1Spectrum [N_LEFF_TABULATED]
double SignalS1Total [N_LEFF_TABULATED]
TabulatedDistSignalS1XeDist [N_LEFF_TABULATED]
XeSpectrumSignalS1XeSpectrum [N_LEFF_TABULATED]
bool signalTabulated
bool smearingPMT
double Sr
Targettarget
double TotalContent [N_BACKGROUNDS]
double typicalErMin

Static Protected Attributes

static int nBands
static int nSlices

Detailed Description

Class for ER background as published in PRL for run 8 Everything is tabulated.

constructor

Parameters:
run XeRun on which the model is applied No arg constructor for root return Bands for anomalous background return Bands for (regular) background Set tabulated background
backgrounds a pointer to the array Set tabulated anomalous background
backgrounds a pointer to the array print this background model
level print level The basis for an analysis : a Run with its (optional) data . Contains S1S2Data for each of AM_BE_DATA , E_GAMMA_DATA , DM_DATA , AM_BE_CUT_DATA , E_GAMMA_CUT_DATA , DM_CUT_DATA . Contains S1S2Bands for the same data sets. S1S2Bands of (nominal) background are created; they are called: ER_BACKGROUND, ER_LEAKAGE, NR_BACKGROUND and ALL_BACKGROUNDS

Constructor & Destructor Documentation

XeRun::XeRun ( int  run,
int  datatype,
string  file = "",
string  dmGraph = "grData",
string  erGraph = "grCo60",
string  nrGraph = "grAmBe" 
)
Parameters:
run runNumber
datatype data type (REAL_DATA or NO_DATA)
file name of root file containing graphs
dmGraph TGraph containing DM data
erGraph TGraph containing Electronic recoil data
nrGraph TGraph containing neutron recoil data

Member Function Documentation

bool XeRun::checkBand ( int  band  ) 

Check whether a band index is correct and prints a warning if not.

Parameters:
banf band index, from 0 to nBands-1, or "ALL"
bool XeRun::checkIt (  )  [virtual]

Check the run attributes and recompute what is needed.

Returns:
flag telling that everything is ok

Reimplemented from XeObject.

bool XeRun::checkS1LimitsConsistency (  )  [protected]

check that all S1 limits (data, cuts, user analysis) are consistent

Returns:
true if ok, false if not
bool XeRun::computeSignal (  ) 

compute exoeceted Er and S1 spectra for signal, fill bands, etc.

..

void XeRun::computeSignalBands ( double  LEFFt  ) 

compute the signal bands for a given LEff t-value

Parameters:
LEFFt t-value of LEff
double XeRun::defaultAmBeNormalizationToEvents (  ) 

Return default Neutron/gamma normalisation (i.e.

expected number of bkg events)

double XeRun::defaultDarkMatterNormalization (  ) 

Return default DarkMatter normalisation (i.e.

1)

double XeRun::defaultEGammaNormalizationToEvents (  ) 

Return default E/gamma normalisation (i.e.

expected number of bkg events)

void XeRun::deleteTheBand ( int  data_type  )  [protected]

delete a given S1S2Bands

Parameters:
data_type data type (DM_DATA, ...)
void XeRun::deleteTheBands ( int  first = 0,
int  last = N_ALL_DATA_TYPES-1 
) [protected]

delete S1S2Bands

Parameters:
first First S1S2Bands to be deleted
last Last S1S2Bands to be deleted
double XeRun::dRate ( double  Er  ) 

Compute event rates in events/KeV.

Returns:
rate in events/KeV
Parameters:
Er Recoil energy
double XeRun::ErToNPhotons ( double  Er  ) 

Return expected number of photons.

Parameters:
Er Recoil Energy
double XeRun::expectedNumberOfNeutrons ( double  peMin,
double  peMax 
)

Return expected number of neutrons between two PE.

Parameters:
peMin Lower bound
peMax Upper bound
double XeRun::expectedSignal ( double  leffT  ) 

return the expected number of events pass all cuts

Parameters:
leffT LEff t-value
double XeRun::expectedSignalInErWindow ( double  E1 = -1.,
double  E2 = -1. 
)

Compute the expected number of signal events in an ERecoil window.

Parameters:
E1 lower bound of the integral
E2 upper bound of the integral
void XeRun::fillSelectionCutsBreakdown ( vector< double > &  remaining,
double  LEfft = 0. 
)

Fill the expected number of signal events for the sequence of selection cuts.

Parameters:
remaining vector of remaing events after each selection cut
LEfft LEffective t-parameter
bool XeRun::fillSimulatedDataAndBands ( int  band,
double  s1 
)

fill simulated data, and corresponding band/slices

Returns:
true if s1 inside, false if not (this is an error condition)
Parameters:
band band number to be filled
s1 simulated S1
double XeRun::flatten ( double  S1,
double  S2 
)

compute flattened log(s1/s2)

Returns:
flattened log(S1/S2)
Parameters:
S1 S1 value
S2 S2 value
void XeRun::forceSignalERecoilSpectrum ( double *  Er = NULL  ) 

Set SignalERecoil spectrum by brute force for (mainly for debugging).

Parameters:
Er Spectrum, for 0 to N_ERS_POINTS*ER_STEP; If NULL, assumes that the spectrum is already filled in
double* XeRun::getAllBackgroundsInBandsS1Distribution ( int  band = ALL  ) 

Return the array of distribution of the background for a given band.

Returns:
pointer to double
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
double* XeRun::getAllBackgroundsInBandsS1Spectrum ( int  band = ALL  ) 

Return array o fthe spectrum of the background for a given band.

Returns:
pointer to double
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
TabulatedDist* XeRun::getAllBackgroundsInBandsS1XeDist ( int  band = ALL  ) 

Return the distribution of the background for a given band.

Returns:
pointer to TabulatedDist
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
XeSpectrum* XeRun::getAllBackgroundsInBandsS1XeSpectrum ( int  band = ALL  ) 

Return the spectrum of the background for a given band.

Returns:
pointer to Spectrum
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
XeSetOfCuts* XeRun::getAllCuts (  ) 

Return all the cuts.

Returns:
pointer to a XeSetOfCuts XeObject
double* XeRun::getBackgroundS1Distribution ( int  background  ) 

Return the S1 distribution for a given type of background.

Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
double* XeRun::getBackgroundS1Spectrum ( int  background  ) 

Return the S1 spectrum for a given type of background.

Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
TabulatedDist* XeRun::getBackgroundS1XeDist ( int  background  ) 

get the S1 distribution (normalized to 1) for a given type of background

Returns:
a pointer to TabulatedDist
Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
XeSpectrum* XeRun::getBackgroundS1XeSpectrum ( int  background  ) 

get the S1 spectrum for a given type of background

Returns:
a pointer to XeSpectrum
Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
double XeRun::getBandContent ( int  type,
int  band = ALL 
)

Return content of a given band.

Parameters:
band which band (ALL means the all together= the sum)
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
XeSetOfCuts* XeRun::getDarkMatterCuts (  ) 

Return the dark matter cuts.

Returns:
pointer to a XeSetOfCuts XeObject
int XeRun::getDataType (  ) 

return data type

Returns:
NO_DATA, REAL_DATA, SIMULATED_DATA
static string XeRun::getDataTypeName ( int  dt  )  [static]

get the data type name for a given data type

Parameters:
dt data type (NO_DATA, REAL_DATA or SIMULATED_DATA)
static string XeRun::getDefaultFileName ( int  rn  )  [static]

get the default file name for a given run

Parameters:
rn run number
RunFlattener* XeRun::getFlattener (  ) 

Return object which flattens log(s2/s1).

Returns:
pointer to RunFlattener XeObject
GalaxyModel* XeRun::getGalaxyModel (  ) 

Return Galaxy model.

Returns:
pointer to Galaxy Model XeObject
Interaction* XeRun::getInteraction (  ) 

Return interaction.

Returns:
pointer to Interaction XeObject
LEff* XeRun::getLEff (  ) 

Return L-effective model user for Light yield computation.

Returns:
pointer to LEff XeObject
string XeRun::getName (  ) 

Method overriding the default one for XeObject.

It adds the data type

Reimplemented from XeObject.

S1S2Bands* XeRun::getReferenceBands (  ) 

Get reference bands.

Returns:
pointer to a S1S2Bands XeObject
S1S2Bands* XeRun::getS1S2Bands ( int  type  ) 

Get bands of a given data type.

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
S1S2Data* XeRun::getS1S2Data ( int  type  ) 

Get data set.

Parameters:
type either AM_BE_DATA,E_GAMMA_DATA, or DM_CUT_DATA
SelectionCut* XeRun::getSelectionCutBySequence ( int  i  ) 

Return a selection cut, given its sequence number.

Parameters:
i index running from 0
Returns:
a pointer to a SelectionCut XeObject
XeSetOfSelectionCuts* XeRun::getSelectionCuts (  ) 

Return all the selection cuts.

Returns:
pointer to a XeSetOfSelectionCuts XeObject
string XeRun::getShortTypeName ( int  type  ) 

return short type type name, using value of cross section for graphs

Parameters:
type Data type
double XeRun::getSigmaForReports (  ) 

Fet the wimp-nucleon cross section for reports, graphs, tables.

..

double* XeRun::getSignalERecoilDistribution (  ) 

Return the distrbution of Energy recoil, for current interaction, mass ,.

..

double* XeRun::getSignalERecoilSpectrum (  ) 

Return the spectrum of Energy recoil, for current interaction, mass ,.

..

TabulatedDist* XeRun::getSignalERecoilXeDist (  ) 

get the distribution of Signal ERecoil

Returns:
a pointer to the existing TabultatedDist
XeSpectrum* XeRun::getSignalERecoilXeSpectrum (  ) 

get the spectrum of Signal ERecoil

Returns:
a pointer to th existing XeSpectrum
double* XeRun::getSignalS1Distribution ( double  tLEff = 0.  ) 

Return the distribution of Signal S1, for current interaction, mass ,.

Parameters:
tLEff "t-value" of L-effective
double* XeRun::getSignalS1Spectrum ( int  tindex = SIDE_LEFF_TABULATED  ) 

Return the spectrum of Signal S1, for current interaction, mass ,.

Parameters:
tindex index of the tabulation
double* XeRun::getSignalS1Spectrum ( double  tLEff  ) 

Return the spectrum of Signal S1, for current interaction, mass ,.

Parameters:
tLEff "t-value" of L-effective
TabulatedDist* XeRun::getSignalS1XeDist ( double  tLEff = 0.  ) 

get the distribution of Signal S1

Returns:
a pointer to a new Tabultated Dist
Parameters:
tLEff "t-value" of L-effective
XeSpectrum* XeRun::getSignalS1XeSpectrum ( int  tindex = SIDE_LEFF_TABULATED  ) 

get the spectrum of Signal S1

Returns:
a pointer to a new XeSpectrum
Parameters:
tindex index of the tabulation
XeSpectrum* XeRun::getSignalS1XeSpectrum ( double  lLEff  ) 

get the spectrum of Signal S1

Returns:
a pointer to a new XeSpectrum
Parameters:
tLEff "t-value" of L-effective
static Target* XeRun::getTarget ( int  a  )  [static]

Get the target in use for the run.

Parameters:
a mass number 129/131/... or NATURAL,DEPLETED , XE100_MIXTURE
Target* XeRun::getTarget (  ) 

Return target.

Returns:
pointer to Target XeObject
static string XeRun::getTheName ( int  runNumber  )  [static, protected]

Return the standard run name.

Parameters:
runNumber run number
double XeRun::getTheoreticalUpperSigma ( double  cl = DEFAULT_CL,
bool  afterCuts = true 
)

Return theoretical upper poission sigma limit, assuming no background.

Parameters:
cl confidence level
afterCuts evaluated after the cuts (alternative: before)
double XeRun::getTotalContent ( int  type  ) 

Return total content.

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::getValue ( int  what,
double  x 
) [virtual]

events rate for integration

Returns:
The value for integration
Parameters:
what Sor far implemented RATE -> dRate(x)
x the point for the integrable is computed

Implements integrable.

Wimp* XeRun::getWimp (  ) 

Return WIMP.

Returns:
pointer to Wimp XeObject
pair<int,double> XeRun::LEffTBinAndFraction ( double  leffT  )  [protected]

Convert a L-Effective t-value into in index and a fraction ,for interplation.

Parameters:
lefft L-Effective "t-value"
Returns:
a pair consisting of an index and the fraction to the next index
double XeRun::maxS1 ( int  type  ) 

return maximum S1 for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::maxS2 ( int  type  ) 

return maximum S2 for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::maxX ( int  type  ) 

return maximum 'X' for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::maxY ( int  type  ) 

return maximum 'Y' for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::minS1 ( int  type  ) 

return minimum S1 for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::minS2 ( int  type  ) 

return minimum S2 for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::minX ( int  type  ) 

return minimum 'X' for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
double XeRun::minY ( int  type  ) 

return minimum 'Y' for a given data type

Parameters:
type can be AM_BE_DATA,E_GAMMA_DATA,DM_DATA,ER_BACKGROUND,...
TH2F* XeRun::new2DHistogram ( int  type,
int  plot = NONE 
)

create a 2d histogram whose content is follows slices and bands

Returns:
pointer to the newly created TH2D
Parameters:
type data type
plot Do we want to plot the content? can be NONE,LINEAR,LOG
TH2F* XeRun::new2DHistogramOfSignalERecoilDistribution ( XeRange mr = NULL,
int  plot = NONE 
)

Create a 2D histogram of Energy Recoil return Pointer to a new TH2F.

Parameters:
plot either NONE, AUTO, LINEAR, or LOG
TH2F* XeRun::new2DHistogramOfSignalERecoilSpectrum ( XeRange mr = NULL,
int  plot = NONE 
)

Create a 2D histogram of Er signal spectrum, after cuts.

Parameters:
Mr Mass Range (XeRange) if NULL, use default one
plot either NONE, AUTO, LINEAR, or LOG
TH2F* XeRun::new2DHistogramOfSignalS1Distribution ( XeRange mr = NULL,
int  plot = NONE,
int  tIndex = SIDE_LEFF_TABULATED 
)

Create an histogram of the shape of S1 distribution for a signal.

Returns:
pointer to newly created Histogram
Parameters:
tIndex Index of LEff t-value
plot either NONE, AUTO, LINEAR, or LOG
TH2F* XeRun::new2DHistogramOfSignalS1Spectrum ( XeRange mr = NULL,
int  plot = NONE,
int  tindex = SIDE_LEFF_TABULATED 
)

create a 2D histogram of S1 spectrum for the expected signal

Returns:
Pointer to a new TH2F
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
plot either NONE, AUTO, LINEAR, or LOG
TabulatedDist* XeRun::newDistributionOfSignalAndBackgroundS1 ( int  tindex = SIDE_LEFF_TABULATED  ) 

Create Distribution of signal + background.

Returns:
Pointer to a newly created TabulatedDist
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
XeGraph* XeRun::newGraphOfAllBackgroundsInBandsS1Distribution ( int  band = ALL,
int  plot = NONE 
)

Produce a Graph of the S1 distribution of the background.

Returns:
A pointer to the XeGraph
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfAllBackgroundsInBandsS1Spectrum ( int  band = ALL,
int  plot = NONE 
)

Produce a Graph of the S1 spectrum of the background.

Returns:
A pointer to the XeGraph
Parameters:
band from 0 to nBands-1; if 'ALL', means all of them
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfBackgroundS1Distribution ( int  background,
int  plot = NONE 
)

Create a graph of the shape of S1 distribution for a given background.

Returns:
pointer to newly created XeGraph
Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfCurrentLEff ( ErRange er = NULL,
int  plot = NONE 
)

Create a graph of LEffective for the current value.

Returns:
Pointer to the newly created XeGraph
Parameters:
Er Energy Range (ErRange) if NULL, use default one
t LEff T-value
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfExpectedSignal ( XeRange mr = NULL,
double  tl = 0.,
int  plot = NONE 
)

Create a graph of the number of signal events passing all cuts.

Parameters:
mr Mass range (NULL : default one)
tl LEff t-value
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfExpectedSignalInErWindow ( XeRange mr = NULL,
int  plot = NONE 
)

Create a graph of the number of expected events in Er Window, before cuts.

Parameters:
mr Mass range (NULL : default one)
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfLEff ( ErRange er = NULL,
double  t = 0.,
int  plot = NONE 
)

Create a graph of LEffective for the central value.

Returns:
Pointer to the newly created XeGraph
Parameters:
Er Energy Range (ErRange) if NULL, use default one
t LEff T-value
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSelectionCutsAcceptance ( S1Range srange = NULL,
bool  smear = true,
int  plot = NONE 
)

Create a graph of the acceptance of the selection.

Parameters:
srange S1 range (NULL : default one)
smear accpetance of smeared (true) or unsmeared (false)?
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalAndBackgroundS1Distribution ( int  plot = NONE,
int  tindex = SIDE_LEFF_TABULATED 
)

create a graph of S1 spectrum for the expected signal and all backgrounds

Returns:
Pointer to a newly created XeGraph
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalAndBackgroundS1Spectrum ( int  plot = NONE,
int  tindex = SIDE_LEFF_TABULATED 
)

create a graph of S1 spectrum for the expected signal and all backgrounds

Returns:
Pointer to a newly created XeGraph
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalERecoilDistribution ( int  plot = NONE  ) 

Create a graph of Signal Energy Recoil, normalized to 1.

Returns:
Pointer to the newly created XeGraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalERecoilSpectrum ( int  plot = NONE  ) 

Create a graph of Signal Energy Recoil.

Returns:
Pointer to the newly created XeGraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalS1Distribution ( int  plot = NONE,
int  tIndex = SIDE_LEFF_TABULATED 
)

Create a graph of the shape of S1 distribution for a signal.

Parameters:
tIndex Index of LEff t-value
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfSignalS1Spectrum ( int  plot = NONE,
int  tindex = SIDE_LEFF_TABULATED 
)

create a graph of S1 spectrum for the expected signal

Returns:
Pointer to a new XeGraph of S1
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* XeRun::newGraphOfTheoreticalUpperSigma ( XeRange mr = NULL,
double  cl = DEFAULT_CL,
bool  afterCuts = true,
int  plot = NONE 
)

Create a graph of the theoretical upper sigma in the absence of bkg.

Parameters:
mr Mass range (NULL : default one)
cl confidence level
after cuts assuming a CLs anaylsis and consider all cuts
plot either NONE, AUTO, LINEAR, or LOG
TH1F* XeRun::newHistogramOfBackgroundS1Distribution ( int  background,
int  plot = NONE 
)

Return histogram of the shape of S1 distribution for a given background.

Returns:
pointer to newly created Histogram
Parameters:
background : ER_BACKGROUND, ER_LEAKAGE , NR_BACKGROUND or ALL_BACKGROUNDS
plot either NONE, AUTO, LINEAR, or LOG
TH1F* XeRun::newHistogramOfSignalERecoilDisribution ( int  plot = NONE  ) 

Create an histogram of Energy Recoil, normalized to 1.

Returns:
Pointer to the newly created histogram
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
TH1F* XeRun::newHistogramOfSignalERecoilSpectrum ( int  plot = NONE  ) 

Create an histogram of Energy Recoil.

Returns:
Pointer to the newly created Xegraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
TH1F* XeRun::newHistogramOfSignalS1Distribution ( int  plot = NONE,
int  tIndex = SIDE_LEFF_TABULATED 
)

Create an histogram of the shape of S1 distribution for a signal.

Returns:
pointer to newly created Histogram
Parameters:
tIndex Index of LEff t-value
plot either NONE, AUTO, LINEAR, or LOG
TH1F* XeRun::newHistogramOfSignalS1Spectrum ( int  plot = NONE,
int  tindex = SIDE_LEFF_TABULATED 
)

create an histogram of S1 spectrum for the expected signal

Returns:
Pointer to a new XeGraph of S1
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfAllBackgroundsInBandsS1Distribution ( int  plot = NONE  ) 

Produce a multi graph of the S1 distribution of the background for all bands.

Returns:
A pointer to the XeMultiGraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfAllBackgroundsInBandsS1Spectrum ( int  plot = NONE  ) 

Produce a multi graph of the S1 spectrum of the background for all bands.

Returns:
A pointer to the XeMultiGraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfExpectedSignalByLEff ( XeRange mr = NULL,
tValueRange tRange = NULL,
int  plot = NONE 
)

Create a Multigraph of the number of signal events passing all cuts when LEff varies.

Parameters:
mr Mass range (NULL : default one)
tRange Tvalue Range (NULL= default one)
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfExpectedSignalByVEsc ( XeRange mr = NULL,
VEscRange vRange = NULL,
int  plot = NONE 
)

Create a Multigraph of the number of signal events passing all cuts when VEsc varies.

Parameters:
mr Mass range (NULL : default one)
vRange VEscape Range (NULL= default one)
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfS1Distributions ( int  plot = NONE  ) 

Return a Multigraph of the shape of S1 distribution for the signal, neutron and electron background.

Parameters:
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfSignalERecoilDistribution ( XeRange mr = NULL,
int  plot = NONE 
)

Create a Multigraph of Energy Recoil, normalized to 1.

Returns:
Pointer to the Multigraph
Parameters:
Mr Mass Range (XeRange) if NULL, use default one
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfSignalERecoilSpectrum ( XeRange mr = NULL,
int  plot = NONE 
)

Create a Multigraph of Energy Recoil.

Returns:
Pointer to the Multigraph
Parameters:
Mr Mass Range (XeRange) if NULL, use default one
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfSignalS1Distribution ( XeRange mr = NULL,
int  plot = NONE,
int  tIndex = SIDE_LEFF_TABULATED 
)

Create a Multigraph of the shape of S1 distribution for various masses.

Returns:
pointer to newly created XeMultiGraph
Parameters:
Mr Mass Range (XeRange) if NULL, use default one
tIndex Index of LEff t-value
plot either NONE, AUTO, LINEAR, or LOG
XeMultiGraph* XeRun::newMultiGraphOfSignalS1Spectrum ( int  step = 1,
int  plot = NONE 
)

Create a multigraph of S1 distribution for various LEff t-values.

Returns:
Pointer to a new XeMultiGraph of S1
Parameters:
s1Max Max S1 scale
step distance between 2 t-index
plot either NONE, AUTO, LINEAR, or LOG
XeSpectrum* XeRun::newSpectrumOfSignalAndBackgroundS1 ( int  tindex = SIDE_LEFF_TABULATED  ) 

Create Spectrum of signal + background.

Returns:
Pointer to a newly created XeSpectrum
Parameters:
tindex which of the tabulated LEff t values is to be plotted.
TTree* XeRun::newTree ( int  type  ) 

Get a tree corresponding to a given data file.

Returns:
pointer to a newly created TTree object
Parameters:
type data type
double XeRun::NPhotonsToEr ( double  nP  ) 

Return Recoil energy, given expect number of photons.

Parameters:
nP expected number of photons
double XeRun::nSignalPerCm2 ( double  lt = 0.  ) 

return expected number of signal events for 1 cm2 cross section

Parameters:
lt L-Eff t-value
void XeRun::printBandCLsCounting ( int  nb  ) 

Print the CLs limits while cumulating bands one to one.

Parameters:
nb number of bands to consider
void XeRun::printBandContent ( double  leffT = 0.  ) 

print details of band contents for variable LEff

Parameters:
leffT t-value describing LEff
bool XeRun::printCandidates ( int  maxBand  ) 

Dump "candidates" (i.e.

events in lowest bands)

Parameters:
Maximum band number (number from 0)
Returns:
went ok?
bool XeRun::printEvents ( int  dt,
int  maxBand 
)

Dump events of a give data source looking like "candidates" (i.e.

events in lowest bands)

Parameters:
dt datatype`
Maximum band number (number from 0)
Returns:
went ok?
bool XeRun::printIt ( int  level = 1  )  [virtual]

print this run

Parameters:
level print level

Reimplemented from XeObject.

void XeRun::printSelectionCutsBreakdown ( double  mass = 0.,
double  sigma = 0.,
double  LEfft = 0. 
)

Dump of the expected number of signal events for the sequence of selection cuts.

Parameters:
mass WIMP mass (0.: keep unchanged)
sigma cross section (0.: keep unchanged)
LEfft LEffective t-parameter
bool XeRun::recomputeEverything (  ) 

Force all run checks and band recomputing.

Returns:
flag telling that everything is ok
void XeRun::setAnalysisS1Max ( double  s1Max  ) 

set the highest s1 value for band analysis

Parameters:
s1Max the maximal value
void XeRun::setAnalysisS1Min ( double  s1Min  ) 

set the lowest s1 value for band analysis

Parameters:
s1Min the minimal value
void XeRun::setAutomaticLimits ( bool  var = true  )  [protected, virtual]

Will pLots be in variable limits (i.e.

according to min and max) ?

Parameters:
var true is automatic limits, false in fixed limits

Reimplemented from S1S2Object.

void XeRun::setDarkMatterCuts ( XeSetOfCuts cuts  ) 

Set analysis (dark matter) cuts.

Parameters:
cuts analysis (dark matter) cuts to be set
void XeRun::setElectronBackgroundModel ( ElectronBackgroundModel model  ) 

Set model for computing electronic background (leakage).

Parameters:
model The model to be used
void XeRun::setEquallyFilledS1Slices ( bool  equal = false  ) 

Set the mode when s1 slices are equally filled.

Parameters:
equal true if yes, general case is no
void XeRun::setGalaxyModel ( GalaxyModel gal  ) 

Set the Galaxy model.

Parameters:
gal pointer to the GalaxyModel
void XeRun::setHighestS2OverS1 ( double  S2OverS1Max  ) 

set the highest S2OverS1 limit in band 0

Parameters:
S2OverS1Max the maximal value
void XeRun::setInteraction ( Interaction inter  ) 

Set the interaction.

Parameters:
inter a pointer the Interaction
void XeRun::setLEff ( LEff leff  ) 

Set the LEffective model.

Parameters:
leff pointer to a LEff XeObject
void XeRun::setLEffErMin ( double  e  ) 

set hard cut of lowest energy for which LEff>0

Parameters:
e energy in KeV
void XeRun::setLEffTValue ( double  tValue  ) 

Set the LEffective "t-value".

Parameters:
tValue How many sigmas above or below central L-effective
void XeRun::setLightYield ( double  lightYield  ) 

Set the light yield.

Parameters:
lightYield the value
void XeRun::setLowestS2OverS1 ( double  S2OverS1Min  ) 

set the lowest S2OverS1 limit in band 0

Parameters:
S2OverS1Min the minimal value
static void XeRun::setNBands ( int  nb = DEFAULT_N_BANDS  )  [static]

Set number of bands for analysis.

Parameters:
nb number of bands
void XeRun::setNeutronBackgroundModel ( NeutronBackgroundModel model  ) 

Set model for computing neutron background.

Parameters:
model The model to be used
void XeRun::setNormalization ( double  egamma = UNDEFINED,
double  ambe = UNDEFINED,
double  darkMatter = UNDEFINED 
) [protected]

Set the relative normalizaition.

Parameters:
egamma e/gamma run/DM runs normalization
ambe AmBe run/DM runs normalization
darkMatter Dark Matter/DM runs normalization (usually 1.)
static void XeRun::setNSlices ( int  ns = DEFAULT_N_SLICES  )  [static]

Set number of slices for analysis.

Parameters:
ns Number of slices
void XeRun::setPValue ( PValue pV  ) 

Set the pValue currently is use.

Parameters:
pV current PValue
void XeRun::setSelectionCuts ( XeSetOfSelectionCuts cuts  ) 

Set selection cuts.

Parameters:
cuts selection cuts to be set
void XeRun::setSelectionCutTValue ( int  i,
double  t 
)

Set the "t-value" for a selection cut.

Parameters:
i cut index starting at zero
tValue How many sigmas above or below central cut
void XeRun::setSigmaForReports ( double  sigma,
int  unit = SIGMA_UNIT 
)

Set the wimp-nucleon cross section for reports, graphs, tables.

..

Parameters:
sigma the cross section
unit either SIGMA_UNIT or EVENT_UNIT
void XeRun::setSigmaNucleon ( double  sigma  ) 

Set the wimp-nucleon cross section.

Parameters:
sigma the cross section
void XeRun::setTarget ( Target target  ) 

Set the target.

Parameters:
target pointer to a Target XeObject
void XeRun::setWimp ( Wimp wimp  ) 

Set the WIMP Particle.

Parameters:
wimp pointer to the Wimp
void XeRun::setWimpMass ( double  mass  ) 

Set the WIMP mass.

Parameters:
mass the requested mass
void XeRun::simulate ( double  sigma = 0.  ) 

simulate a run (i.e.

fill DM_CUT_DATA data sets and bands)

Parameters:
sigma cross section being simulated
void XeRun::smearPMT ( bool  smear = true  )  [protected]

set the smear PMT flag

Parameters:
smear do we want to smear? (default is YES)
void XeRun::tabulateSignalS1Spectrum ( int  tIndex  ) 

Tabulate S1 spectrum for one t value.

Parameters:
tIndex Index (from 0 to 2*SIDE_LEFF_TABULATED)
bool XeRun::withData (  ) 

This run was defined with data, i.e.

it's not a mock-up

bool XeRun::withoutData (  ) 

This run was defined without data, i.e.

it's a mock-up


Member Data Documentation

vector<double*> XeRun::AllBackgroundsInBandsS1Distribution [protected]

Distribution of all backgrounfs for each band

vector<double*> XeRun::AllBackgroundsInBandsS1Spectrum [protected]

Spectra of all backgrounds for each band

Distribution of all backgrounfs for each band

Spectra of all backgrounds for each band

Set of all the cuts

Normalisation of AmBe runs

double XeRun::AnalysisS1Max [protected]

Maximum S1 for the analysis

double XeRun::AnalysisS1Min [protected]

Minimum S1 for the analysis

double* XeRun::BackgroundS1SDistribution[N_BACKGROUNDS] [protected]

pointer to S1 distribution for various backgrounds

double* XeRun::BackgroundS1Spectrum[N_BACKGROUNDS] [protected]

pointer to S1 spectrum for various backgrounds

TabulatedDist* XeRun::BackgroundS1XeDist[N_BACKGROUNDS] [protected]

S1 distributions for various backgrounds

XeSpectrum* XeRun::BackgroundS1XeSpectrum[N_BACKGROUNDS] [protected]

S1 spectrum for various backgrounds

bool XeRun::backgroundsComputed [protected]

Have all background been computed ?

vector<double> XeRun::BackgroundsInBands[N_BACKGROUNDS] [protected]

Nominal background count for each band

S1S2Bands* XeRun::bands[N_ALL_DATA_TYPES] [protected]

pointer to all S1S2 bands

pointer to set of dark matter cuts

double XeRun::DarkMatterNormalization [protected]

Normalisation of DM (1.)

bool XeRun::dataBandsAreBuilt [protected]

Have Dark matter and calibration bands been filled?

int XeRun::dataType [protected]

Data type, NO_DATA, REAL_DATA or SIMULATED_DATA

pointer to electron background model

Normalisatoin of ER runs

bool XeRun::equallyFilledS1Slices [protected]

Do we want S1 slices defined by equal content? (default:no)

double XeRun::Exposure [protected]

Run exposure (in days)

double XeRun::FiducialMass [protected]

Fiducial mass (in kg)

int XeRun::firstAnalysisS1Bin [protected]

Lowest S1 bin for the analysis

pointer to S1S2 flattener

Force spectrum of SignalERecoil

int XeRun::lastAnalysisS1Bin [protected]

Highest S1 bin for the analysis

LEff* XeRun::leff [protected]

pointer to description of L-Effective

double XeRun::LEffErMin [protected]

Hard cut of LEff

double XeRun::LightYield [protected]

Light yield (in pe/Kev>

int XeRun::nBands [static, protected]

Number of bands in the analysis

pointer to neutron background model

int XeRun::nSlices [static, protected]

Number of slices in the analysis

PValue* XeRun::pValue [protected]

pointer to PValue currently in use

pointer to S1S2 reference bands

int XeRun::runNumber [protected]

Run number

S1S2Data* XeRun::s1s2[N_CUT_DATA_TYPES] [protected]

pointer to all S1S2 data sets

double XeRun::S2OverS1Max [protected]

upper limit of S2/S1 for the analysis

double XeRun::S2OverS1Min [protected]

Lower limit of S2/S1 for the analysis

double XeRun::Se [protected]

Field quenching for Electronic recoil

pointer to set of selection cuts

double XeRun::SelectionS1Max [protected]

Maximum S1 in smeared selection cuts

double XeRun::SelectionS1Min [protected]

Minimum S1 in smeared selection cuts

double XeRun::SelectionUS1Min [protected]

Minimum S1 in unsmeared selection cuts

double XeRun::sigmaFactor [protected]

sigmaForReports/getSigmaNucleon()

double XeRun::sigmaForReports [protected]

Cross section used in plots,graphs,reports

double XeRun::SigmaPMT [protected]

Sigma when smearing PMT response

double* XeRun::SignalERecoilDistribution [protected]

pointer to current SignalERecoil distribution

double* XeRun::SignalERecoilSpectrum [protected]

pointer to current the SignalERecoil spectrum

SignalERecoil TabulatedDist

Current SignalERecoil XeSpectrum

double* XeRun::SignalS1Distribution[N_LEFF_TABULATED] [protected]

pointers to expected signal S1 dist. for various Leff

double* XeRun::SignalS1Spectrum[N_LEFF_TABULATED] [protected]

pointers to expected signal S1 spect. for various Leff

double XeRun::SignalS1Total[N_LEFF_TABULATED] [protected]

Total events for various Leff

TabulatedDist* XeRun::SignalS1XeDist[N_LEFF_TABULATED] [protected]

Signal S1 distribution, for various Leff

XeSpectrum* XeRun::SignalS1XeSpectrum[N_LEFF_TABULATED] [protected]

p Signal S1 Spectrum, for various Leff

bool XeRun::signalTabulated [protected]

Is signal tabulated?

bool XeRun::smearingPMT [protected]

Are PMT signals to be smeared ? (default:yes)

double XeRun::Sr [protected]

Field quenching for Neutron recoil

Target* XeRun::target [protected]

pointer to Target in use

double XeRun::TotalContent[N_BACKGROUNDS] [protected]

Total events for each background

double XeRun::typicalErMin [protected]

Ermin,for fast evaluation of number of events


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1