HighLAND
Public Types | Public Member Functions | Protected Attributes | List of all members
ConfigurationManager Class Reference
Inheritance diagram for ConfigurationManager:
HLClonesArray

Public Types

enum  enumConf_ConfigurationManager { default_conf =0, enumConfLast_ConfigurationManager }
 

Public Member Functions

 ConfigurationManager (const std::string &file, double norm, const std::string &cut)
 
std::vector< ConfigurationBase * > & GetConfigurations ()
 return the vector of configurations
 
const std::string & GetCurrentConfigurationName ()
 return the name of the current configuration
 
ConfigurationBaseGetCurrentConfiguration () const
 return the current configuration
 
ConfigurationBaseGetConfiguration (Int_t index) const
 return the configuration with a given index
 
ConfigurationBaseGetConfiguration (const std::string &conf)
 return the configuration with a given index
 
Int_t GetCurrentConfigurationIndex () const
 return the index of the current configuration
 
void SetCurrentConfigurationName (const std::string &conf)
 Set the name of the current configuration.
 
void SetCurrentConfigurationIndex (Int_t conf)
 Set the index of the current configuration.
 
Int_t GetConfigurationIndex (const std::string &conf_name)
 Returs the index of a configuration with name.
 
const std::string & GetConfigurationName (Int_t index)
 Returs the name of a configuration with index.
 
void AddConfiguration (Int_t index, const std::string &conf, UInt_t ntoys=1, Int_t randomSeed=-1, ToyMaker *toyMaker=NULL)
 Add a new configuration.
 
bool ConfigurationEnabled (const std::string &conf)
 Check if a configuration is enabled.
 
bool ConfigurationEnabled (Int_t conf)
 Check if a configuration is enabled.
 
void EnableConfiguration (const std::string &conf)
 Enable/Disable configurations.
 
void DisableConfiguration (const std::string &conf)
 
void EnableConfiguration (Int_t conf)
 
void DisableConfiguration (Int_t conf)
 
void DisableAllConfigurations ()
 
void EnableAllConfigurations ()
 
void ReadConfigurations (const std::string &file)
 Read configurations from a file.
 
bool GetToyEnabled (const std::string &conf, int toy)
 Enable/disable toys.
 
void EnableToy (const std::string &conf, int toy)
 
void DisableToy (const std::string &conf, int toy)
 
void DisableAllToys (const std::string &conf)
 
void EnableAllToys (const std::string &conf)
 
int GetNToys (const std::string &conf)
 
int GetNToys ()
 
void SetNToys (const std::string &conf, int ntoy)
 Sets the number of toys to a configuration with name.
 
void SetNToys (Int_t index, int ntoy)
 Sets the number of toys to a configuration with index.
 
void SetToyRandomSeed (Int_t index, Int_t seed)
 Sets the Toy random seed to a configuration with index.
 
int GetNMaxToys ()
 Get the maximum number of toys in all configurations.
 
void SetToyIndex (int index)
 Set and gets the index of the current toy.
 
int GetToyIndex ()
 
void EnableSystematic (Int_t syst, Int_t conf=-1)
 Enable the systematic registered with the given index.
 
void EnableSystematics (const std::vector< Int_t > &systs, Int_t conf=-1)
 Enable the systematics registered with the given indices.
 
void DisableSystematic (Int_t index)
 Disable the systematic registered with the given index.
 
void DisableAllSystematic (Int_t conf=-1)
 Disable the systematic registered with the given index.
 
const std::vector< Int_t > & GetEnabledSystematics (Int_t conf=-1)
 Get the systematics that are enabled for a given configuration.
 
void EnableEventWeight (Int_t syst, Int_t conf=-1)
 Enable the systematic registered with the given index.
 
void EnableEventWeights (const std::vector< Int_t > &systs, Int_t conf=-1)
 Enable the systematics registered with the given indices.
 
void DisableEventWeight (Int_t index)
 Disable the systematic registered with the given index.
 
void DisableAllEventWeight (Int_t conf=-1)
 Disable the systematic registered with the given index.
 
const std::vector< Int_t > & GetEnabledEventWeights (Int_t conf=-1)
 Get the systematics that are enabled for a given configuration.
 
void EnableEventVariation (Int_t syst, Int_t conf=-1)
 Enable the systematic registered with the given index.
 
void EnableEventVariations (const std::vector< Int_t > &systs, Int_t conf=-1)
 Enable the systematics registered with the given indices.
 
void DisableEventVariation (Int_t index)
 Disable the systematic registered with the given index.
 
void DisableAllEventVariation (Int_t conf=-1)
 Disable the systematic registered with the given index.
 
const std::vector< Int_t > & GetEnabledEventVariations (Int_t conf=-1)
 Get the systematics that are enabled for a given configuration.
 
void DumpConfigurations (SystematicManager *syst=NULL)
 Dump summary info about all configurations.
 
void CreateToyExperiments (const SystematicManager &syst)
 Create the ToyExperiments using the ToyMaker and the SystematicManager.
 
- Public Member Functions inherited from HLClonesArray
 HLClonesArray (const std::string &tree_name, const std::string &tcarray_name, const std::string &class_name, const UInt_t size)
 
void ReadClonesArray (const std::string &file)
 
void WriteClonesArray (TTree &tree)
 
Int_t & GetNObjects ()
 Return the number of steps that have been added.
 
TClonesArray * GetClonesArray ()
 
const std::string & GetClonesArrayName () const
 Return the name of the TClonesArray.
 
const std::string & GetTreeName () const
 Return the name of the tree.
 

Protected Attributes

int _toy_index
 current toy index
 
Int_t _current_conf
 Current configuration index.
 
std::vector< ConfigurationBase *> _confs
 configurations
 
std::vector< ConfigurationBase *> _confs_nonull
 no NULL configurations
 
- Protected Attributes inherited from HLClonesArray
TChain * _chain
 TChain used to read the "config" tree from the output file.
 
Int_t _NObjects
 The number of steps that were added.
 
TClonesArray * _objects
 
std::string _tcArrayName
 Name of the TClonesArray in the tree.
 
std::string _treeName
 Name of the Tree.
 
std::string _fileName
 Name of the last file read.
 

Detailed Description

Definition at line 13 of file ConfigurationManager.hxx.


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