ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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

Definition at line 409 of file TPileupReweighting.h.

409 : id(_id),start(_start),end(_end),defaultChannel(_defaultChannel) {};

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  };

◆ 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()); };

◆ 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:
CP::TPileupReweighting::Period::subPeriods
std::vector< Period * > subPeriods
Definition: TPileupReweighting.h:416
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
Data
@ Data
Definition: BaseObject.h:11
plotmaker.hist
hist
Definition: plotmaker.py:148
StateLessPT_NewConfig.Format
Format
Definition: StateLessPT_NewConfig.py:146
CP::TPileupReweighting::Period::defaultChannel
Int_t defaultChannel
Definition: TPileupReweighting.h:413
CP::TPileupReweighting::Period::id
Int_t id
Definition: TPileupReweighting.h:409
CP::TPileupReweighting::Period::end
UInt_t end
Definition: TPileupReweighting.h:412
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
CP::TPileupReweighting::Period::start
UInt_t start
Definition: TPileupReweighting.h:411
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
CP::TPileupReweighting::Period::inputHists
std::map< Int_t, std::unique_ptr< TH1 > > inputHists
Definition: TPileupReweighting.h:418