LDMX Software
SingleHandle Struct Reference

This is a s. More...

#include <CommonUtils.h>

Public Member Functions

void fill (unsigned int entry)
 Fill the entry.
 

Public Attributes

std::string tag = ""
 A tag name.
 
std::string label = ""
 A label name.
 
std::string rangeDrawStr = ""
 
unsigned int bins = 1
 The number of bins for the booking.
 
std::array< float, 2 > range = {0., 0.}
 The range array.
 
std::function< float(ULong64_t)> value
 Value function that allows to create combined parameters.
 
std::function< bool(ULong64_t)> accept
 The acceptance.
 
TH1F * hist = nullptr
 

Detailed Description

This is a s.

Definition at line 168 of file CommonUtils.h.

Member Function Documentation

◆ fill()

void SingleHandle::fill ( unsigned int entry)
inline

Fill the entry.

Parameters
entryis the current TTree entry to be processed

Definition at line 196 of file CommonUtils.h.

196 {
197 if (accept(entry)) {
198 // Access the value, error
199 float v = value(entry);
200 hist->Fill(v);
201 }
202 }
std::function< float(ULong64_t)> value
Value function that allows to create combined parameters.
std::function< bool(ULong64_t)> accept
The acceptance.

References accept, and value.

Member Data Documentation

◆ accept

std::function<bool(ULong64_t)> SingleHandle::accept

The acceptance.

Definition at line 189 of file CommonUtils.h.

Referenced by fill().

◆ bins

unsigned int SingleHandle::bins = 1

The number of bins for the booking.

Definition at line 179 of file CommonUtils.h.

◆ hist

TH1F* SingleHandle::hist = nullptr

Definition at line 191 of file CommonUtils.h.

◆ label

std::string SingleHandle::label = ""

A label name.

Definition at line 173 of file CommonUtils.h.

◆ range

std::array<float, 2> SingleHandle::range = {0., 0.}

The range array.

Definition at line 182 of file CommonUtils.h.

182{0., 0.};

◆ rangeDrawStr

std::string SingleHandle::rangeDrawStr = ""

Definition at line 176 of file CommonUtils.h.

◆ tag

std::string SingleHandle::tag = ""

A tag name.

Definition at line 170 of file CommonUtils.h.

◆ value

std::function<float(ULong64_t)> SingleHandle::value

Value function that allows to create combined parameters.

Definition at line 186 of file CommonUtils.h.

Referenced by fill().


The documentation for this struct was generated from the following file: