ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | List of all members
Muon::MuonValidationCandidateBlock Struct Reference

#include <MuonInsideOutValidationNtuple.h>

Inheritance diagram for Muon::MuonValidationCandidateBlock:
Collaboration diagram for Muon::MuonValidationCandidateBlock:

Public Types

typedef std::pair< std::reference_wrapper< std::vector< int > * >, std::string > IntBlock
 
typedef std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > UnsignedIntBlock
 
typedef std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock
 
typedef std::pair< MuonValidationBlockBase *, std::string > SubBlock
 

Public Member Functions

 MuonValidationCandidateBlock ()
 
void fill (int ntimes_, float beta_, float chi2ndof_, int nseg_, int nprec_, int ntrigPhi_, int ntrigEta_, int stage_)
 
void addBlock (std::vector< int > *&block, std::string name)
 
void addBlock (std::vector< unsigned int > *&block, std::string name)
 
void addBlock (std::vector< float > *&block, std::string name)
 
void addBlock (MuonValidationBlockBase *block, std::string name)
 
void init (const std::string &prefix, TTree *, bool write=true)
 
void clear ()
 

Public Attributes

std::vector< int > * ntimes = nullptr
 
std::vector< float > * beta = nullptr
 
std::vector< float > * chi2ndof = nullptr
 
std::vector< int > * nseg = nullptr
 
std::vector< int > * nprec = nullptr
 
std::vector< int > * ntrigPhi = nullptr
 
std::vector< int > * ntrigEta = nullptr
 
std::vector< int > * stage = nullptr
 
MuonValidationTrackBlock track
 
std::vector< IntBlockintBlocks
 
std::vector< UnsignedIntBlockunsignedIntBlocks
 
std::vector< FloatBlockfloatBlocks
 
std::vector< SubBlocksubBlocks
 

Detailed Description

Definition at line 254 of file MuonInsideOutValidationNtuple.h.

Member Typedef Documentation

◆ FloatBlock

typedef std::pair<std::reference_wrapper<std::vector<float>*>,std::string> Muon::MuonValidationBlockBase::FloatBlock
inherited

Definition at line 30 of file MuonInsideOutValidationNtuple.h.

◆ IntBlock

typedef std::pair<std::reference_wrapper<std::vector<int>*>,std::string> Muon::MuonValidationBlockBase::IntBlock
inherited

Definition at line 28 of file MuonInsideOutValidationNtuple.h.

◆ SubBlock

typedef std::pair< MuonValidationBlockBase*, std::string > Muon::MuonValidationBlockBase::SubBlock
inherited

Definition at line 31 of file MuonInsideOutValidationNtuple.h.

◆ UnsignedIntBlock

typedef std::pair<std::reference_wrapper<std::vector<unsigned int>*>,std::string> Muon::MuonValidationBlockBase::UnsignedIntBlock
inherited

Definition at line 29 of file MuonInsideOutValidationNtuple.h.

Constructor & Destructor Documentation

◆ MuonValidationCandidateBlock()

Muon::MuonValidationCandidateBlock::MuonValidationCandidateBlock ( )

Definition at line 161 of file MuonInsideOutValidationNtuple.cxx.

161  {
162  addBlock(ntimes,"ntimes");
163  addBlock(chi2ndof,"chi2ndof");
164  addBlock(beta,"beta");
165  addBlock(nseg,"nseg");
166  addBlock(nprec,"nprec");
167  addBlock(ntrigPhi,"ntrigPhi");
168  addBlock(ntrigEta,"ntrigEta");
169  addBlock(stage,"stage");
170  addBlock(&track,"");
171  }

Member Function Documentation

◆ addBlock() [1/4]

void Muon::MuonValidationBlockBase::addBlock ( MuonValidationBlockBase block,
std::string  name 
)
inlineinherited

Definition at line 40 of file MuonInsideOutValidationNtuple.h.

40 { subBlocks.push_back( SubBlock(block,name) ); }

◆ addBlock() [2/4]

void Muon::MuonValidationBlockBase::addBlock ( std::vector< float > *&  block,
std::string  name 
)
inlineinherited

Definition at line 39 of file MuonInsideOutValidationNtuple.h.

39 { block=nullptr; floatBlocks.push_back( FloatBlock(block,name) ); }

◆ addBlock() [3/4]

void Muon::MuonValidationBlockBase::addBlock ( std::vector< int > *&  block,
std::string  name 
)
inlineinherited

Definition at line 37 of file MuonInsideOutValidationNtuple.h.

37 { block=nullptr; intBlocks.push_back( IntBlock(block,name) ); }

◆ addBlock() [4/4]

void Muon::MuonValidationBlockBase::addBlock ( std::vector< unsigned int > *&  block,
std::string  name 
)
inlineinherited

Definition at line 38 of file MuonInsideOutValidationNtuple.h.

38 { block=nullptr; unsignedIntBlocks.push_back( UnsignedIntBlock(block,name) ); }

◆ clear()

void Muon::MuonValidationBlockBase::clear ( )
inherited

Definition at line 10 of file MuonInsideOutValidationNtuple.cxx.

10  {
11 
12  // clear entries
13  for( const auto& entry : intBlocks ) entry.first.get()->clear();
14  for( const auto& entry : unsignedIntBlocks ) entry.first.get()->clear();
15  for( const auto& entry : floatBlocks ) entry.first.get()->clear();
16  for( auto entry : subBlocks ) entry.first->clear();
17 
18  }

◆ fill()

void Muon::MuonValidationCandidateBlock::fill ( int  ntimes_,
float  beta_,
float  chi2ndof_,
int  nseg_,
int  nprec_,
int  ntrigPhi_,
int  ntrigEta_,
int  stage_ 
)
inline

Definition at line 268 of file MuonInsideOutValidationNtuple.h.

268  {
269  ntimes->push_back(ntimes_);
270  beta->push_back(beta_);
271  chi2ndof->push_back(chi2ndof_);
272  nseg->push_back(nseg_);
273  nprec->push_back(nprec_);
274  ntrigPhi->push_back(ntrigPhi_);
275  ntrigEta->push_back(ntrigEta_);
276  stage->push_back(stage_);
277  }

◆ init()

void Muon::MuonValidationBlockBase::init ( const std::string &  prefix,
TTree *  tree,
bool  write = true 
)
inherited

Definition at line 28 of file MuonInsideOutValidationNtuple.cxx.

28  {
29 
30 
31  for( const auto& entry : intBlocks ) {
32  if( tree ){
33  if( write ){
34  entry.first.get() = new std::vector<int>();
35  tree->Branch( (prefix + entry.second).c_str(), entry.first.get());
36  }else{
37  tree->SetBranchAddress( (prefix + entry.second).c_str(), &entry.first.get());
38  }
39  }
40  }
41 
42  for( const auto& entry : unsignedIntBlocks ) {
43  if( tree ){
44  if( write ){
45  entry.first.get() = new std::vector<unsigned int>();
46  tree->Branch( (prefix + entry.second).c_str(), entry.first.get());
47  }else{
48  tree->SetBranchAddress( (prefix + entry.second).c_str(), &entry.first.get());
49  }
50  }
51  }
52 
53  for( const auto& entry : floatBlocks ) {
54  if( tree ){
55  if( write ){
56  entry.first.get() = new std::vector<float>();
57  tree->Branch( (prefix + entry.second).c_str(), entry.first.get());
58  }else{
59  tree->SetBranchAddress( (prefix + entry.second).c_str(), &entry.first.get());
60  }
61  }
62  }
63 
64  for( auto entry : subBlocks ) {
65  entry.first->init(prefix + entry.second, tree, write );
66  }
67 
68  }

Member Data Documentation

◆ beta

std::vector<float>* Muon::MuonValidationCandidateBlock::beta = nullptr

Definition at line 258 of file MuonInsideOutValidationNtuple.h.

◆ chi2ndof

std::vector<float>* Muon::MuonValidationCandidateBlock::chi2ndof = nullptr

Definition at line 259 of file MuonInsideOutValidationNtuple.h.

◆ floatBlocks

std::vector< FloatBlock > Muon::MuonValidationBlockBase::floatBlocks
inherited

Definition at line 45 of file MuonInsideOutValidationNtuple.h.

◆ intBlocks

std::vector< IntBlock > Muon::MuonValidationBlockBase::intBlocks
inherited

Definition at line 43 of file MuonInsideOutValidationNtuple.h.

◆ nprec

std::vector<int>* Muon::MuonValidationCandidateBlock::nprec = nullptr

Definition at line 261 of file MuonInsideOutValidationNtuple.h.

◆ nseg

std::vector<int>* Muon::MuonValidationCandidateBlock::nseg = nullptr

Definition at line 260 of file MuonInsideOutValidationNtuple.h.

◆ ntimes

std::vector<int>* Muon::MuonValidationCandidateBlock::ntimes = nullptr

Definition at line 257 of file MuonInsideOutValidationNtuple.h.

◆ ntrigEta

std::vector<int>* Muon::MuonValidationCandidateBlock::ntrigEta = nullptr

Definition at line 263 of file MuonInsideOutValidationNtuple.h.

◆ ntrigPhi

std::vector<int>* Muon::MuonValidationCandidateBlock::ntrigPhi = nullptr

Definition at line 262 of file MuonInsideOutValidationNtuple.h.

◆ stage

std::vector<int>* Muon::MuonValidationCandidateBlock::stage = nullptr

Definition at line 264 of file MuonInsideOutValidationNtuple.h.

◆ subBlocks

std::vector< SubBlock > Muon::MuonValidationBlockBase::subBlocks
inherited

Definition at line 46 of file MuonInsideOutValidationNtuple.h.

◆ track

MuonValidationTrackBlock Muon::MuonValidationCandidateBlock::track

Definition at line 266 of file MuonInsideOutValidationNtuple.h.

◆ unsignedIntBlocks

std::vector< UnsignedIntBlock > Muon::MuonValidationBlockBase::unsignedIntBlocks
inherited

Definition at line 44 of file MuonInsideOutValidationNtuple.h.


The documentation for this struct was generated from the following files:
Muon::MuonValidationBlockBase::floatBlocks
std::vector< FloatBlock > floatBlocks
Definition: MuonInsideOutValidationNtuple.h:45
Muon::MuonValidationBlockBase::UnsignedIntBlock
std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > UnsignedIntBlock
Definition: MuonInsideOutValidationNtuple.h:29
Muon::MuonValidationCandidateBlock::chi2ndof
std::vector< float > * chi2ndof
Definition: MuonInsideOutValidationNtuple.h:259
tree
TChain * tree
Definition: tile_monitor.h:30
Muon::MuonValidationBlockBase::intBlocks
std::vector< IntBlock > intBlocks
Definition: MuonInsideOutValidationNtuple.h:43
Muon::MuonValidationBlockBase::IntBlock
std::pair< std::reference_wrapper< std::vector< int > * >, std::string > IntBlock
Definition: MuonInsideOutValidationNtuple.h:28
Muon::MuonValidationBlockBase::SubBlock
std::pair< MuonValidationBlockBase *, std::string > SubBlock
Definition: MuonInsideOutValidationNtuple.h:31
Muon::MuonValidationBlockBase::unsignedIntBlocks
std::vector< UnsignedIntBlock > unsignedIntBlocks
Definition: MuonInsideOutValidationNtuple.h:44
Muon::MuonValidationBlockBase::subBlocks
std::vector< SubBlock > subBlocks
Definition: MuonInsideOutValidationNtuple.h:46
Muon::MuonValidationBlockBase::FloatBlock
std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock
Definition: MuonInsideOutValidationNtuple.h:30
Muon::MuonValidationCandidateBlock::track
MuonValidationTrackBlock track
Definition: MuonInsideOutValidationNtuple.h:266
Muon::MuonValidationCandidateBlock::beta
std::vector< float > * beta
Definition: MuonInsideOutValidationNtuple.h:258
python.ByteStreamConfig.write
def write
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:248
Muon::MuonValidationCandidateBlock::ntrigPhi
std::vector< int > * ntrigPhi
Definition: MuonInsideOutValidationNtuple.h:262
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Muon::MuonValidationCandidateBlock::nseg
std::vector< int > * nseg
Definition: MuonInsideOutValidationNtuple.h:260
Muon::MuonValidationCandidateBlock::ntrigEta
std::vector< int > * ntrigEta
Definition: MuonInsideOutValidationNtuple.h:263
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
Muon::MuonValidationCandidateBlock::ntimes
std::vector< int > * ntimes
Definition: MuonInsideOutValidationNtuple.h:257
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Muon::MuonValidationCandidateBlock::nprec
std::vector< int > * nprec
Definition: MuonInsideOutValidationNtuple.h:261
Muon::MuonValidationBlockBase::addBlock
void addBlock(std::vector< int > *&block, std::string name)
Definition: MuonInsideOutValidationNtuple.h:37
Muon::MuonValidationCandidateBlock::stage
std::vector< int > * stage
Definition: MuonInsideOutValidationNtuple.h:264