RockMatrixRAF0720Ext.cxx File Reference

#include "RockMatrixRAF0720Ext.h"
#include "MessageService/MsgService.h"
#include "NtupleUtils/NuCutImps.h"
#include "TChain.h"
#include "TFile.h"
#include "TH2D.h"
#include "TMath.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: RockMatrixRAF0720Ext.cxx,v 1.10 2010/11/10 20:34:11 mstrait Exp $")
static TH1D An ("trkane","trkane", NBINS1DA, anbins)
static TH1D En ("trkene","trkene", NBINS1DE, enbins)
static TH1D EA ("trkenan","trkenan", NBINS2D, 0, NBINS2D)
static TH1D dispe ("trkendisp","trkendisp", NBINSDISPE, debins)
static TH1D dispa ("trkandisp","trkandisp", NBINSDISPA, 0, 90)
static TH1D semidispnone ("semidispnone","", 1, 0, 1)
static TH1D semidispcoarse ("semidispcoarse","", NBINS_SDC, sdc_bins)
static TH1D semidispfine ("semidispfine","", NBINS_SDF, sdf_bins)
static void issueobobwarning ()
static double spoonlawn (double trkEn)
static double clampfine (double trkEn)
static double clampcoarse (double trkEn)
static double clampnone (double trkEn)

Variables

static const int NBINS1DE = 25
static const int NBINS1DA = 45
static const int NBINS2D = 133
static const int NBINSDISPE = 11
static const int NBINSDISPA = 9
static double debins [NBINSDISPE+1]
static double enbins [NBINS1DE+1]
static double anbins [NBINS1DA+1]
static const int NBINS_SDC = 26
static const int NBINS_SDF = 92
static double sdc_bins [NBINS_SDC+1]
static double sdf_bins [NBINS_SDF+1]

Function Documentation

static TH1D An ( "trkane"  ,
"trkane"  ,
NBINS1DA  ,
anbins   
) [static]
static double clampcoarse ( double  trkEn  )  [static]

Definition at line 712 of file RockMatrixRAF0720Ext.cxx.

References semidispcoarse().

Referenced by RockMatrixRAF0720Ext::Fill().

00713 {
00714   static double top = semidispcoarse.GetBinLowEdge(semidispcoarse.GetNbinsX()+1);
00715   static double mid = semidispcoarse.GetBinCenter(semidispcoarse.GetNbinsX());
00716   return trkEn > top? mid : trkEn;
00717 }

static double clampfine ( double  trkEn  )  [static]

Definition at line 705 of file RockMatrixRAF0720Ext.cxx.

References semidispfine().

Referenced by RockMatrixRAF0720Ext::Fill().

00706 {
00707   static double top = semidispfine.GetBinLowEdge(semidispfine.GetNbinsX()+1);
00708   static double mid = semidispfine.GetBinCenter(semidispfine.GetNbinsX());
00709   return trkEn > top? mid : trkEn;
00710 }

static double clampnone ( double  trkEn  )  [static]

Definition at line 720 of file RockMatrixRAF0720Ext.cxx.

References semidispnone().

Referenced by RockMatrixRAF0720Ext::Fill().

00721 {
00722   static double top = semidispnone.GetBinLowEdge(semidispnone.GetNbinsX()+1);
00723   static double mid = semidispnone.GetBinCenter(semidispnone.GetNbinsX());
00724   return trkEn > top? mid : trkEn;
00725 }

CVSID ( "$Id: RockMatrixRAF0720Ext.  cxx,
v 1.10 2010/11/10 20:34:11 mstrait Exp $"   
)

Class for doing a fit to Rock and AntiFiducial events the way Matt wants to do it. Contrast with RockMatrixRAF0720Std, which is the way Matt and the CC group have hashed it out. This file is starting as a copy of RockMatrixRAF0720Std.cxx, but can diverge arbitrarily.

static TH1D dispa ( "trkandisp"  ,
"trkandisp"  ,
NBINSDISPA  ,
,
90   
) [static]
static TH1D dispe ( "trkendisp"  ,
"trkendisp"  ,
NBINSDISPE  ,
debins   
) [static]
static TH1D EA ( "trkenan"  ,
"trkenan"  ,
NBINS2D  ,
,
NBINS2D   
) [static]
static TH1D En ( "trkene"  ,
"trkene"  ,
NBINS1DE  ,
enbins   
) [static]
static void issueobobwarning (  )  [static]

Definition at line 316 of file RockMatrixRAF0720Ext.cxx.

References Msg::kInfo, and MAXMSG.

Referenced by RockMatrixRAF0720Ext::GlobalBin2ear().

00317 {
00318   MAXMSG("RockMatrixRAF0720Std", Msg::kInfo, 1)
00319   << "\n\nAre you passing in the bin numbers from fAllReco/raf_allreco or"
00320      " fJess_[ccmu|cctau|no]/raf_jess_[ccmu|cctau|no]?  If so, you need"
00321      " to subtract one to go from the bin numbers of those histogram to the "
00322      " global bin number used to fill those histograms.  Sorry.\n\n";
00323 }

static TH1D semidispcoarse ( "semidispcoarse"  ,
""  ,
NBINS_SDC  ,
sdc_bins   
) [static]
static TH1D semidispfine ( "semidispfine"  ,
""  ,
NBINS_SDF  ,
sdf_bins   
) [static]
static TH1D semidispnone ( "semidispnone"  ,
""  ,
,
,
 
) [static]
static double spoonlawn ( double  trkEn  )  [static]

Definition at line 699 of file RockMatrixRAF0720Ext.cxx.

References RE_DISPDUMMYMAX, and RE_DISPMAX1.

Referenced by RockMatrixRAF0720Ext::Fill().

00700 {
00701   return trkEn > RE_DISPMAX1? RE_DISPDUMMYMAX-0.0001: trkEn;
00702 }


Variable Documentation

double anbins[NBINS1DA+1] [static]
Initial value:
 { 
   0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,
  20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,
  40, 45, 50, 55, 60, 90 
}

Definition at line 50 of file RockMatrixRAF0720Ext.cxx.

double debins[NBINSDISPE+1] [static]
Initial value:
 {
  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, RE_DISPMAX1, RE_DISPDUMMYMAX 
}

Definition at line 31 of file RockMatrixRAF0720Ext.cxx.

Referenced by RockMatrixRAF0720Std::RockMatrixRAF0720Std().

double enbins[NBINS1DE+1] [static]
Initial value:
 { 
  0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 
  5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 
  10, 15, 20, 25, 30, 200
}

Definition at line 40 of file RockMatrixRAF0720Ext.cxx.

const int NBINS1DA = 45 [static]
const int NBINS1DE = 25 [static]
const int NBINS2D = 133 [static]
const int NBINS_SDC = 26 [static]

Definition at line 72 of file RockMatrixRAF0720Ext.cxx.

const int NBINS_SDF = 92 [static]

Definition at line 73 of file RockMatrixRAF0720Ext.cxx.

const int NBINSDISPA = 9 [static]

Definition at line 29 of file RockMatrixRAF0720Ext.cxx.

const int NBINSDISPE = 11 [static]

Definition at line 28 of file RockMatrixRAF0720Ext.cxx.

double sdc_bins[NBINS_SDC+1] [static]
Initial value:
 {
  0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5,
  5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5,
  10, 15, 20, 25, 30, 200, 201
}

Definition at line 77 of file RockMatrixRAF0720Ext.cxx.

double sdf_bins[NBINS_SDF+1] [static]
Initial value:
 {
  0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0,
  5.25,  5.50,  5.75,  6.00,  6.25,  6.50,  6.75,  7.00,  7.25,
  7.50,  7.75,  8.00,  8.25,  8.50,  8.75,  9.00,  9.25,  9.50,  9.75,
  10.00, 10.25, 10.50, 10.75, 11.00, 11.25, 11.50, 11.75, 12.00, 12.25,
  12.50, 12.75, 13.00, 13.25, 13.50, 13.75, 14.00, 14.25, 14.50, 14.75,
  15.00, 15.25, 15.50, 15.75, 16.00, 16.25, 16.50, 16.75, 17.00, 17.25,
  17.50, 17.75, 18.00, 18.25, 18.50, 18.75, 19.00, 19.25, 19.50, 19.75,
  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 200, 201 }

Definition at line 91 of file RockMatrixRAF0720Ext.cxx.


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1