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 415 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 431 of file TPileupReweighting.h.

431 {
432 if(runNumber >= start && runNumber <= end) return true;
433 for(auto p : subPeriods) if(p->contains(runNumber)) return true;
434 return false;
435 };
std::vector< Period * > subPeriods

◆ print()

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

Definition at line 440 of file TPileupReweighting.h.

440 {
441 std::cout << prefix << id << "[" << start << "," << end << "] : ";
442 for(auto& hist : inputHists) std::cout << hist.first << " , ";
443 std::cout << std::endl;
444 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 436 of file TPileupReweighting.h.

436 {
438 for(auto p : subPeriods) p->SetDefaultChannel(channel);
439 };

Member Data Documentation

◆ defaultChannel

Int_t CP::TPileupReweighting::Period::defaultChannel

Definition at line 420 of file TPileupReweighting.h.

◆ end

UInt_t CP::TPileupReweighting::Period::end

Definition at line 419 of file TPileupReweighting.h.

◆ id

Int_t CP::TPileupReweighting::Period::id

Definition at line 417 of file TPileupReweighting.h.

◆ inputBinRedirect

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

Definition at line 421 of file TPileupReweighting.h.

◆ inputHists

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

Definition at line 425 of file TPileupReweighting.h.

◆ numberOfEntries

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

Definition at line 427 of file TPileupReweighting.h.

◆ primaryHists

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

Definition at line 428 of file TPileupReweighting.h.

◆ runNumbers

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

Definition at line 424 of file TPileupReweighting.h.

◆ secondaryHists

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

Definition at line 429 of file TPileupReweighting.h.

◆ start

UInt_t CP::TPileupReweighting::Period::start

Definition at line 418 of file TPileupReweighting.h.

◆ subPeriods

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

Definition at line 423 of file TPileupReweighting.h.

◆ sumOfWeights

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

Definition at line 426 of file TPileupReweighting.h.

◆ unrepData

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

Definition at line 422 of file TPileupReweighting.h.


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