CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Attributes
Splitter Class Referenceabstract

#include <CachingVariable.h>

Inheritance diagram for Splitter:
CachingVariable VarSplitter

Public Member Functions

virtual CachingVariable::evalType eval (const edm::Event &iEvent) const =0
 
const std::string & label (unsigned int i) const
 
unsigned int maxIndex () const
 
virtual unsigned int maxSlots () const
 
const std::string shortLabel (unsigned int i) const
 
 Splitter (std::string method, std::string n, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 
- Public Member Functions inherited from CachingVariable
void addDescriptionLine (const std::string &s)
 
 CachingVariable (std::string m, std::string n, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 
bool compute (const edm::Event &iEvent) const
 
const Descriptiondescription () const
 
const std::string & holderName () const
 
const std::string & method () const
 
const std::string & name () const
 
valueType operator() (const edm::Event &iEvent) const
 
void print () const
 
void setHolder (std::string hn) const
 
virtual ~CachingVariable ()
 

Public Attributes

list file = sys.argv[2]
 
list path = sys.argv[1]
 
list prefix = sys.argv[3]
 
tuple s = Splitter(path, file, prefix)
 

Protected Attributes

std::vector< std::string > labels_
 
std::vector< std::string > short_labels_
 
- Protected Attributes inherited from CachingVariable
evalType cache_
 
edm::ParameterSet conf_
 
Description d_
 
edm::Event::CacheIdentifier_t eventCacheID_ =0
 
std::string holderName_
 
std::string method_
 
std::string name_
 

Additional Inherited Members

- Public Types inherited from CachingVariable
typedef std::pair< bool,
valueType
evalType
 
typedef double valueType
 
typedef std::map< std::string,
const CachingVariable * > 
vMap
 
- Protected Member Functions inherited from CachingVariable
evalTypebaseEval (const edm::Event &iEvent) const
 
bool notSeenThisEventAlready (const edm::Event &iEvent) const
 
void setCache (valueType &v) const
 
void setNotCompute () const
 

Detailed Description

Definition at line 178 of file CachingVariable.h.

Constructor & Destructor Documentation

Splitter::Splitter ( std::string  method,
std::string  n,
const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)
inline

Definition at line 180 of file CachingVariable.h.

180  :
181  CachingVariable(method,n,iConfig,iC) {}
CachingVariable(std::string m, std::string n, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
const std::string & method() const

Member Function Documentation

virtual CachingVariable::evalType Splitter::eval ( const edm::Event iEvent) const
pure virtual

Reimplemented from CachingVariable.

Implemented in VarSplitter.

const std::string& Splitter::label ( unsigned int  i) const
inline

Definition at line 197 of file CachingVariable.h.

References CachingVariable::conf_, edm::ParameterSet::dump(), i, and labels_.

Referenced by SplittingConfigurableHisto::complete(), and SplittingConfigurableHisto::SplittingConfigurableHisto().

197  {
198  if (i>=labels_.size()){
199  edm::LogError("Splitter")<<"trying to access slots label at index: "<<i<<"while of size: "<<labels_.size()<<"\n"<<conf_.dump();
200  return labels_.back(); }
201  else return labels_[i];}
int i
Definition: DBlmapReader.cc:9
std::string dump(unsigned int indent=0) const
edm::ParameterSet conf_
std::vector< std::string > labels_
unsigned int Splitter::maxIndex ( ) const
inline

Definition at line 186 of file CachingVariable.h.

References maxSlots().

Referenced by VarSplitter::eval().

186 { return maxSlots()-1;}
virtual unsigned int maxSlots() const
virtual unsigned int Splitter::maxSlots ( ) const
inlinevirtual

Reimplemented in VarSplitter.

Definition at line 189 of file CachingVariable.h.

References labels_.

Referenced by maxIndex(), and SplittingConfigurableHisto::SplittingConfigurableHisto().

189 { return labels_.size();}
std::vector< std::string > labels_
const std::string Splitter::shortLabel ( unsigned int  i) const
inline

Definition at line 191 of file CachingVariable.h.

References CachingVariable::conf_, edm::ParameterSet::dump(), i, and short_labels_.

Referenced by SplittingConfigurableHisto::SplittingConfigurableHisto().

191  {
192  if (i>=short_labels_.size()){
193  edm::LogError("Splitter")<<"trying to access slots short_label at index: "<<i<<"while of size: "<<short_labels_.size()<<"\n"<<conf_.dump();
194  return short_labels_.back(); }
195  else return short_labels_[i];}
int i
Definition: DBlmapReader.cc:9
std::string dump(unsigned int indent=0) const
std::vector< std::string > short_labels_
edm::ParameterSet conf_

Member Data Documentation

list Splitter.file = sys.argv[2]

Definition at line 197 of file Splitter.py.

std::vector<std::string> Splitter::labels_
protected

Definition at line 204 of file CachingVariable.h.

Referenced by label(), maxSlots(), and VarSplitter::VarSplitter().

list Splitter.path = sys.argv[1]

Definition at line 196 of file Splitter.py.

Referenced by python.rootplot.rootmath.Target.__repr__().

list Splitter.prefix = sys.argv[3]

Definition at line 198 of file Splitter.py.

tuple Splitter.s = Splitter(path, file, prefix)

Definition at line 199 of file Splitter.py.

Referenced by VarSplitter.maxSlots().

std::vector<std::string> Splitter::short_labels_
protected

Definition at line 205 of file CachingVariable.h.

Referenced by shortLabel(), and VarSplitter::VarSplitter().