HighLAND
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FGDPIDSystematics Class Reference

This systematic smears the pull of each FGD track segment. More...

#include <FGDPIDSystematics.hxx>

Inheritance diagram for FGDPIDSystematics:
EventVariationBase SystematicBase

Public Member Functions

 FGDPIDSystematics ()
 
void Apply (const ToyExperiment &toy, AnaEventC &event)
 Apply the systematic.
 
bool UndoSystematic (AnaEventC &event)
 Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill.
 
- Public Member Functions inherited from EventVariationBase
 EventVariationBase ()
 Create the systematic, with one parameter.
 
 EventVariationBase (UInt_t npar)
 Create the systematic, specifying the number of systematic parameters.
 
virtual ~EventVariationBase ()
 Everyone should have a destructor.
 
virtual void InitializeEvent (const AnaEventC &event, const SelectionBase &sel)
 Initialize the SystBox for this event.
 
virtual void InitializeEvent (const AnaEventC &event)
 
- Public Member Functions inherited from SystematicBase
 SystematicBase ()
 Create the systematic, with one parameter.
 
 SystematicBase (UInt_t npar)
 Create the systematic, specifying the number of systematic parameters.
 
virtual ~SystematicBase ()
 Everyone should have a destructor.
 
UInt_t GetNParameters () const
 Returns the number of systematic parameters associated to this systematic.
 
void SetNParameters (int N)
 Set the number of systematic parameters associated to this systematic.
 
virtual const char * GetName () const
 Return the name of this systematic. This overrides the TObject::GetName() interface.
 
const std::string & Name () const
 Return the name of this systematic.
 
void SetName (const std::string &name)
 Set the name of this systematic.
 
Int_t GetIndex () const
 Return the index of this systematic.
 
void SetIndex (Int_t index)
 Set the index of this systematic.
 
TypeEnum Type () const
 Return the type of this systematic.
 
std::string ConvertType ()
 Return the type of this systematic.
 
void SetType (TypeEnum type)
 Set the type of this systematic.
 
PDFEnum PDF () const
 Return the PDF of this systematic.
 
std::string ConvertPDF ()
 Return the PDF of this systematic.
 
void SetPDF (PDFEnum PDF)
 Set the PDF of this systematic.
 
void SetEnabled (bool ena)
 Set the enable bit.
 
bool IsEnabled () const
 Returns the enable bit.
 
virtual void FinalizeEvent (const AnaEventC &event)
 Delete the SystBox for this event.
 
SystBoxBGetSystBox (const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
 Get the SystBox corresponding to a selection, branch and event.
 
virtual void Initialize (Int_t nsel, Int_t isel, Int_t nbranch, Int_t nevents)
 Create the array of SystBox.
 
 ClassDef (SystematicBase, 2)
 

Protected Member Functions

bool IsRelevantRecObject (const AnaEventC &event, const AnaRecObjectC &track) const
 Is this track relevant for this systematic ?
 
Int_t GetRelevantRecObjectGroups (const SelectionBase &sel, Int_t *IDs) const
 Get the TrackGroup IDs array for this systematic.
 
- Protected Member Functions inherited from EventVariationBase
void FillSystBox (const AnaEventC &event, const SelectionBase &sel, SystBoxB &box)
 Fills the SystBox.
 

Protected Attributes

BinnedParams_fgd1mean
 
BinnedParams_fgd1sigma
 
BinnedParams_fgd2mean
 
BinnedParams_fgd2sigma
 
- Protected Attributes inherited from SystematicBase
std::string _name
 The name of this systematic.
 
Int_t _index
 The index of this systematic (needed by SystematicsManager);.
 
TypeEnum _type
 The type of this systematic (variation, weight or flux)
 
bool _enabled
 Is this systematic enabled ?
 
PDFEnum _PDF
 The PDF use for the systematic parameter scan.
 
UInt_t _nParameters
 the number of systematic parameters
 
SystBoxB **** _systBoxes
 ----—— Relevant objects for this systematic ------------—— More...
 
Int_t _systBoxesNSel
 
Int_t _systBoxesNBranches [NMAXSELECTIONS]
 
Int_t _systBoxesNEvents [NMAXSELECTIONS][NMAXBRANCHES]
 

Additional Inherited Members

- Public Types inherited from SystematicBase
enum  TypeEnum { kVariation = 0, kWeight, kFlux, kUnknown }
 Enumerator describing the values that _type member can take.
 
enum  PDFEnum {
  kGaussian = 0, kUniform, kBinomial, kMultinomial,
  kUnknownPDF
}
 Enumerator describing the values that _PDF member can take.
 

Detailed Description

This systematic smears the pull of each FGD track segment.

Definition at line 8 of file FGDPIDSystematics.hxx.

Constructor & Destructor Documentation

§ FGDPIDSystematics()

FGDPIDSystematics::FGDPIDSystematics ( )

Instantiate the FGD PID systematic. nbins is the number of bins in the PDF

Definition at line 9 of file FGDPIDSystematics.cxx.

10 //********************************************************************
11 
12 
13  // Read the systematic source parameters from the data files
14  Int_t npar=0;
15  _fgd1mean = new BinnedParams("FGD1PIDMean", BinnedParams::k1D_EFF_SYMMETRIC, versionUtils::Extension());
16  _fgd1sigma = new BinnedParams("FGD1PIDSigRatio",BinnedParams::k1D_SYMMETRIC, versionUtils::Extension());
17  npar=_fgd1mean->GetNBins()+_fgd1sigma->GetNBins();
18  if( versionUtils::prod6_systematics){
19  _fgd2mean = new BinnedParams("FGD2PIDMean", BinnedParams::k1D_EFF_SYMMETRIC, versionUtils::Extension());
20  _fgd2sigma = new BinnedParams("FGD2PIDSigRatio",BinnedParams::k1D_SYMMETRIC, versionUtils::Extension());
21  npar+=_fgd2mean->GetNBins()+_fgd2sigma->GetNBins();
22  }
23 
24  //set the total number of parameters
25  SetNParameters(npar);
26 }
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
EventVariationBase()
Create the systematic, with one parameter.
Int_t GetNBins()
Get the number of bins.

The documentation for this class was generated from the following files: