ATLAS Offline Software
Loading...
Searching...
No Matches
CP::TPileupReweighting::Period Struct Reference

#include <TPileupReweighting.h>

Collaboration diagram for CP::TPileupReweighting::Period:

Public Member Functions

 Period (Int_t _id, UInt_t _start, UInt_t _end, Int_t _defaultChannel)
bool contains (unsigned int runNumber)
void SetDefaultChannel (Int_t channel)
void print (const char *prefix)

Public Attributes

Int_t id
UInt_t start
UInt_t end
Int_t defaultChannel
std::map< Int_t, Int_t > inputBinRedirect
std::map< Int_t, Double_t > unrepData
std::vector< Period * > subPeriods
std::vector< UInt_t > runNumbers
std::map< Int_t, std::unique_ptr< TH1 > > inputHists
std::map< Int_t, Double_t > sumOfWeights
std::map< Int_t, Int_t > numberOfEntries
std::map< Int_t, std::unique_ptr< TH1 > > primaryHists
std::map< Int_t, std::unique_ptr< TH2 > > secondaryHists

Detailed Description

Definition at line 408 of file TPileupReweighting.h.

Constructor & Destructor Documentation

◆ Period()

CP::TPileupReweighting::Period::Period ( Int_t _id,
UInt_t _start,
UInt_t _end,
Int_t _defaultChannel )
inline

Member Function Documentation

◆ contains()

bool CP::TPileupReweighting::Period::contains ( unsigned int runNumber)
inline

Definition at line 424 of file TPileupReweighting.h.

424 {
425 if(runNumber >= start && runNumber <= end) return true;
426 for(auto p : subPeriods) if(p->contains(runNumber)) return true;
427 return false;
428 };
std::vector< Period * > subPeriods

◆ print()

void CP::TPileupReweighting::Period::print ( const char * prefix)
inline

Definition at line 433 of file TPileupReweighting.h.

433 {
434 std::cout << prefix << id << "[" << start << "," << end << "] : ";
435 for(auto& hist : inputHists) std::cout << hist.first << " , ";
436 std::cout << std::endl;
437 for(auto p : subPeriods) p->print(TString::Format(" %s",prefix).Data()); };
@ Data
Definition BaseObject.h:11
std::map< Int_t, std::unique_ptr< TH1 > > inputHists

◆ SetDefaultChannel()

void CP::TPileupReweighting::Period::SetDefaultChannel ( Int_t channel)
inline

Definition at line 429 of file TPileupReweighting.h.

429 {
431 for(auto p : subPeriods) p->SetDefaultChannel(channel);
432 };

Member Data Documentation

◆ defaultChannel

Int_t CP::TPileupReweighting::Period::defaultChannel

Definition at line 413 of file TPileupReweighting.h.

◆ end

UInt_t CP::TPileupReweighting::Period::end

Definition at line 412 of file TPileupReweighting.h.

◆ id

Int_t CP::TPileupReweighting::Period::id

Definition at line 410 of file TPileupReweighting.h.

◆ inputBinRedirect

std::map<Int_t, Int_t> CP::TPileupReweighting::Period::inputBinRedirect

Definition at line 414 of file TPileupReweighting.h.

◆ inputHists

std::map<Int_t, std::unique_ptr< TH1 > > CP::TPileupReweighting::Period::inputHists

Definition at line 418 of file TPileupReweighting.h.

◆ numberOfEntries

std::map<Int_t, Int_t> CP::TPileupReweighting::Period::numberOfEntries

Definition at line 420 of file TPileupReweighting.h.

◆ primaryHists

std::map<Int_t, std::unique_ptr< TH1 > > CP::TPileupReweighting::Period::primaryHists

Definition at line 421 of file TPileupReweighting.h.

◆ runNumbers

std::vector<UInt_t> CP::TPileupReweighting::Period::runNumbers

Definition at line 417 of file TPileupReweighting.h.

◆ secondaryHists

std::map<Int_t, std::unique_ptr< TH2 > > CP::TPileupReweighting::Period::secondaryHists

Definition at line 422 of file TPileupReweighting.h.

◆ start

UInt_t CP::TPileupReweighting::Period::start

Definition at line 411 of file TPileupReweighting.h.

◆ subPeriods

std::vector<Period*> CP::TPileupReweighting::Period::subPeriods

Definition at line 416 of file TPileupReweighting.h.

◆ sumOfWeights

std::map<Int_t, Double_t> CP::TPileupReweighting::Period::sumOfWeights

Definition at line 419 of file TPileupReweighting.h.

◆ unrepData

std::map<Int_t, Double_t> CP::TPileupReweighting::Period::unrepData

Definition at line 415 of file TPileupReweighting.h.


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