ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CP::TPileupReweighting::CompositeTrigger Struct Reference

#include <TPileupReweighting.h>

Collaboration diagram for CP::TPileupReweighting::CompositeTrigger:

Public Member Functions

 CompositeTrigger ()
 
double eval (std::map< TString, std::map< Int_t, std::map< Int_t, Float_t > > > &m, int run, int lbn, const TPileupReweighting *tool)
 
void getTriggers (std::vector< TString > &s)
 
long getBits (const TPileupReweighting *tool)
 

Public Attributes

int op
 
std::unique_ptr< CompositeTriggertrig1
 
std::unique_ptr< CompositeTriggertrig2
 
TString val
 
std::vector< TString > subTriggers
 
std::map< int, std::map< long, std::unique_ptr< TH1 > > > triggerHists
 

Detailed Description

Definition at line 366 of file TPileupReweighting.h.

Constructor & Destructor Documentation

◆ CompositeTrigger()

CP::TPileupReweighting::CompositeTrigger::CompositeTrigger ( )
inline

Definition at line 372 of file TPileupReweighting.h.

372 : op(0),trig1(),trig2(),val("") { }

Member Function Documentation

◆ eval()

double CP::TPileupReweighting::CompositeTrigger::eval ( std::map< TString, std::map< Int_t, std::map< Int_t, Float_t > > > &  m,
int  run,
int  lbn,
const TPileupReweighting tool 
)
inline

Definition at line 373 of file TPileupReweighting.h.

373  {
374  switch(op) {
375  case 0: if(m[val][run].find(lbn)==m[val][run].end() || !m[val][run][lbn] || !tool->passTriggerBeforePrescale(val)) return 0; /*trigger/failed disabled, so cannot contribute*/
376  return 1./m[val][run][lbn];
377  case 1: return 1. - (1. - trig1->eval(m,run,lbn,tool))*(1.-trig2->eval(m,run,lbn,tool)); //OR
378  case 2: return trig1->eval(m,run,lbn,tool)*trig2->eval(m,run,lbn,tool);
379  default: return 1;
380  }
381  }

◆ getBits()

long CP::TPileupReweighting::CompositeTrigger::getBits ( const TPileupReweighting tool)
inline

Definition at line 387 of file TPileupReweighting.h.

387  {
388  long out(0);
389  for(uint i=0;i<subTriggers.size();i++) out += (tool->passTriggerBeforePrescale(subTriggers[i]) << i);
390  return out;
391  }

◆ getTriggers()

void CP::TPileupReweighting::CompositeTrigger::getTriggers ( std::vector< TString > &  s)
inline

Definition at line 382 of file TPileupReweighting.h.

382  {
383  if(trig1==0&&trig2==0&&val.Length()>0) s.push_back(val);
384  else { trig1->getTriggers(s); trig2->getTriggers(s); }
385  }

Member Data Documentation

◆ op

int CP::TPileupReweighting::CompositeTrigger::op

Definition at line 367 of file TPileupReweighting.h.

◆ subTriggers

std::vector<TString> CP::TPileupReweighting::CompositeTrigger::subTriggers

Definition at line 371 of file TPileupReweighting.h.

◆ trig1

std::unique_ptr< CompositeTrigger > CP::TPileupReweighting::CompositeTrigger::trig1

Definition at line 368 of file TPileupReweighting.h.

◆ trig2

std::unique_ptr< CompositeTrigger > CP::TPileupReweighting::CompositeTrigger::trig2

Definition at line 369 of file TPileupReweighting.h.

◆ triggerHists

std::map<int, std::map<long, std::unique_ptr< TH1 > > > CP::TPileupReweighting::CompositeTrigger::triggerHists

Definition at line 396 of file TPileupReweighting.h.

◆ val

TString CP::TPileupReweighting::CompositeTrigger::val

Definition at line 370 of file TPileupReweighting.h.


The documentation for this struct was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
CP::TPileupReweighting::CompositeTrigger::trig2
std::unique_ptr< CompositeTrigger > trig2
Definition: TPileupReweighting.h:369
CP::TPileupReweighting::CompositeTrigger::trig1
std::unique_ptr< CompositeTrigger > trig1
Definition: TPileupReweighting.h:368
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
lumiFormat.i
int i
Definition: lumiFormat.py:85
CP::TPileupReweighting::CompositeTrigger::subTriggers
std::vector< TString > subTriggers
Definition: TPileupReweighting.h:371
run
Definition: run.py:1
CP::TPileupReweighting::CompositeTrigger::val
TString val
Definition: TPileupReweighting.h:370
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
CP::TPileupReweighting::CompositeTrigger::op
int op
Definition: TPileupReweighting.h:367
LB_AnalMapSplitter.lbn
lbn
Definition: LB_AnalMapSplitter.py:28