HighLAND
|
#include <Experiment.hxx>
Public Member Functions | |
SampleGroup (const std::string &name) | |
SampleGroup (const std::string &name, DataSample *dataSample, std::map< std::string, DataSample *> &mcSamples) | |
SampleGroup (const std::string &name, const std::string &dataFile, std::map< std::string, std::string > &mcFiles) | |
void | AddDataSample (const std::string &file) |
Add a new Data Sample to a group (for the moment only one data sample can be added) | |
void | AddDataSample (DataSample *sample) |
void | AddMCSample (const std::string &name, const std::string &file) |
Add a new MC Sample to a group specifying its name (spill, sand, etc) | |
void | AddMCSample (const std::string &name, DataSample *sample) |
void | AddMCSamples (std::map< std::string, std::string > &mcFiles) |
Add a set of MC Samples to a group specifying their names (spill, sand, etc) | |
void | AddMCSamples (std::map< std::string, DataSample *> &mcSamples) |
DataSample * | GetDataSample () |
Get the data sample in a group. | |
DataSample * | GetMCSample (const std::string &name) |
Get a single MC sample in a group by name. | |
std::vector< DataSample * > & | GetDataSamples () |
Get all MC samples in a group. | |
std::map< std::string, DataSample * > & | GetMCSamples () |
Get all MC samples in a group. | |
bool | HasMCSample (const std::string &name) |
Check whether the group has a given MC sample. | |
void | GetPOT (Float_t &POTdata, Float_t &POTmc) |
Get the good data and MC POT for this sample group. | |
void | GetPOT (Float_t &POTdata, Float_t &POTmc, Float_t &POTsand) |
Get the good data and MC POT for this sample group, including sand POT. | |
void | SetCurrentTree (const std::string &name) |
Set the current configuration to all samples in the SampleGroup. | |
Protected Attributes | |
std::string | _name |
std::vector< DataSample * > | _dataSamples |
std::map< std::string, DataSample * > | _mcSamples |
Experiment class This class handles multiple data samples in groups (SampleGroup). For example, one generally wants to compare a sample of run 1 data to run 1 MC, and a sample of run 2 data to a sample of run 2 MC. This class allows you to add groups of data/MC samples, then interact with them. SampleGroup class Contains a single data sample and a map of MC samples with their names as key. For example we can associate spill MC and sand muon MC to a given data run
Definition at line 17 of file Experiment.hxx.