ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Process Class Reference

#include <process.hpp>

Public Member Functions

 Process ()=default
 
 Process (const std::string &name, const std::set< std::string > &file_names, const Cut &cut=::Cut(), bool is_data=false, bool is_signal=false, bool count_zeros=true, const SystCollection &systematics=SystCollection())
 
 Process (const std::string &name, std::initializer_list< std::string > file_names, const Cut &cut=::Cut(), bool is_data=false, bool is_signal=false, bool count_zeros=true, const SystCollection &systematics=SystCollection())
 
const std::string & Name () const
 
ProcessName (const std::string &name)
 
const class CutCut () const
 
class CutCut ()
 
const bool & IsData () const
 
bool & IsData ()
 
const bool & IsSignal () const
 
bool & IsSignal ()
 
const bool & CountZeros () const
 
bool & CountZeros ()
 
const std::set< std::string > & FileNames () const
 
long GetEntries () const
 
GammaParams GetYield (const class Cut &cut=::Cut("1")) const
 
const SystCollectionSystematics () const
 
ProcessSystematics (const SystCollection &systematics)
 
ProcessAddSystematic (const Systematic &systematic)
 
ProcessAddSystematics (const SystCollection &systematic)
 
bool HasSystematic (const Systematic &systematic) const
 
ProcessRemoveSystematic (const Systematic &systematic)
 
ProcessRemoveSystematics ()
 
ProcessSetSystematicStrength (const std::string &name, double strength)
 
bool operator< (const Process &p) const
 
bool operator== (const Process &p) const
 

Private Types

typedef std::set< SystematicSystCollection
 

Private Member Functions

void CleanName ()
 
void AddFiles ()
 

Private Attributes

std::set< std::string > file_names_
 
std::shared_ptr< TChain > chain_
 
class Cut cut_
 
std::string name_
 
bool is_data_
 
bool is_signal_
 
bool count_zeros_
 
SystCollection systematics_
 

Detailed Description

Definition at line 17 of file process.hpp.

Member Typedef Documentation

typedef std::set<Systematic> Process::SystCollection
private

Definition at line 18 of file process.hpp.

Constructor & Destructor Documentation

Process::Process ( )
default
Process::Process ( const std::string &  name,
const std::set< std::string > &  file_names,
const Cut cut = ::Cut(),
bool  is_data = false,
bool  is_signal = false,
bool  count_zeros = true,
const SystCollection systematics = SystCollection() 
)
Process::Process ( const std::string &  name,
std::initializer_list< std::string >  file_names,
const Cut cut = ::Cut(),
bool  is_data = false,
bool  is_signal = false,
bool  count_zeros = true,
const SystCollection systematics = SystCollection() 
)

Member Function Documentation

void Process::AddFiles ( )
private
Process & Process::AddSystematic ( const Systematic systematic)

Definition at line 119 of file process.cpp.

References HasSystematic(), and systematics_.

Referenced by AddSystematics().

Process & Process::AddSystematics ( const SystCollection systematic)

Definition at line 126 of file process.cpp.

References AddSystematic().

void Process::CleanName ( )
private

Definition at line 178 of file process.cpp.

References name_, and ReplaceAll().

Referenced by Name().

const bool & Process::CountZeros ( ) const

Definition at line 102 of file process.cpp.

References count_zeros_.

Referenced by YieldManager::ComputeYield(), and operator<<().

bool & Process::CountZeros ( )

Definition at line 106 of file process.cpp.

References count_zeros_.

const class Cut & Process::Cut ( ) const

Definition at line 62 of file process.cpp.

References cut_.

Referenced by YieldManager::ComputeYield(), and operator<<().

class Cut & Process::Cut ( )

Definition at line 66 of file process.cpp.

References cut_.

const set< string > & Process::FileNames ( ) const

Definition at line 70 of file process.cpp.

References file_names_.

long Process::GetEntries ( ) const

Definition at line 74 of file process.cpp.

References chain_.

Referenced by YieldManager::ComputeYield().

GammaParams Process::GetYield ( const class Cut cut = ::Cut("1")) const
bool Process::HasSystematic ( const Systematic systematic) const

Definition at line 133 of file process.cpp.

References systematics_.

Referenced by AddSystematic().

const bool & Process::IsData ( ) const

Definition at line 86 of file process.cpp.

References is_data_.

Referenced by YieldManager::ComputeYield(), operator<<(), and WorkspaceGenerator::PrintComparison().

bool & Process::IsData ( )

Definition at line 90 of file process.cpp.

References is_data_.

const bool & Process::IsSignal ( ) const

Definition at line 94 of file process.cpp.

References is_signal_.

Referenced by operator<<(), and WorkspaceGenerator::PrintComparison().

bool & Process::IsSignal ( )

Definition at line 98 of file process.cpp.

References is_signal_.

const string & Process::Name ( ) const
Process & Process::Name ( const std::string &  name)

Definition at line 56 of file process.cpp.

References CleanName(), scan_aggregate::name, and name_.

bool Process::operator< ( const Process p) const

Definition at line 168 of file process.cpp.

References count_zeros_, cut_, file_names_, and systematics_.

bool Process::operator== ( const Process p) const

Definition at line 173 of file process.cpp.

References count_zeros_, cut_, file_names_, and systematics_.

Process & Process::RemoveSystematic ( const Systematic systematic)
Process & Process::RemoveSystematics ( )

Definition at line 146 of file process.cpp.

References systematics_.

Process & Process::SetSystematicStrength ( const std::string &  name,
double  strength 
)

Definition at line 151 of file process.cpp.

References ERROR, scan_aggregate::name, name_, Systematic::Strength(), and systematics_.

const Process::SystCollection & Process::Systematics ( ) const

Definition at line 110 of file process.cpp.

References systematics_.

Referenced by WorkspaceGenerator::AddSignalPredictions().

Process & Process::Systematics ( const SystCollection systematics)

Definition at line 114 of file process.cpp.

References systematics_.

Member Data Documentation

std::shared_ptr<TChain> Process::chain_
mutableprivate

Definition at line 70 of file process.hpp.

Referenced by AddFiles(), GetEntries(), and GetYield().

bool Process::count_zeros_
private

Definition at line 75 of file process.hpp.

Referenced by CountZeros(), operator<(), and operator==().

class Cut Process::cut_
private

Definition at line 71 of file process.hpp.

Referenced by Cut(), GetYield(), operator<(), and operator==().

std::set<std::string> Process::file_names_
private

Definition at line 69 of file process.hpp.

Referenced by AddFiles(), FileNames(), operator<(), and operator==().

bool Process::is_data_
private

Definition at line 73 of file process.hpp.

Referenced by IsData().

bool Process::is_signal_
private

Definition at line 74 of file process.hpp.

Referenced by IsSignal().

std::string Process::name_
private

Definition at line 72 of file process.hpp.

Referenced by CleanName(), Name(), RemoveSystematic(), and SetSystematicStrength().

SystCollection Process::systematics_
private

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