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

Block with timing information. More...

#include <MuonInsideOutValidationNtuple.h>

Inheritance diagram for Muon::MuonValidationTimeBlock:
Collaboration diagram for Muon::MuonValidationTimeBlock:

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

 MuonValidationTimeBlock ()
 
void fill (int type_, unsigned int gasgapId_, float r_, float z_, float time_, float err_, float timeProp_=0., float avTimeProp_=0., float tof_=0., float avTof_=0., float timeCor_=0., int stage_=0)
 
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

MuonValidationIdBlock id
 
MuonValidationTrackBlock track
 
MuonValidationTruthBlock truth
 
std::vector< int > * type = nullptr
 
std::vector< int > * stage = nullptr
 
std::vector< unsigned int > * gasgapId = nullptr
 
std::vector< float > * r = nullptr
 
std::vector< float > * z = nullptr
 
std::vector< float > * d = nullptr
 
std::vector< float > * time = nullptr
 
std::vector< float > * err = nullptr
 
std::vector< float > * timeProp = nullptr
 
std::vector< float > * avTimeProp = nullptr
 
std::vector< float > * tof = nullptr
 
std::vector< float > * avTof = nullptr
 
std::vector< float > * timeCor = nullptr
 
std::vector< IntBlockintBlocks
 
std::vector< UnsignedIntBlockunsignedIntBlocks
 
std::vector< FloatBlockfloatBlocks
 
std::vector< SubBlocksubBlocks
 

Detailed Description

Block with timing information.

Definition at line 99 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

◆ MuonValidationTimeBlock()

Muon::MuonValidationTimeBlock::MuonValidationTimeBlock ( )

Definition at line 78 of file MuonInsideOutValidationNtuple.cxx.

78  {
79  addBlock(&id,"");
80  addBlock(&track,"");
81  addBlock(&truth,"");
82  addBlock(type,"type");
83  addBlock(stage,"stage");
84  addBlock(gasgapId,"gasgapId");
85  addBlock(r,"r");
86  addBlock(z,"z");
87  addBlock(d,"d");
88  addBlock(time,"time");
89  addBlock(err,"err");
90  addBlock(timeProp,"timeProp");
91  addBlock(avTimeProp,"avTimeProp");
92  addBlock(tof,"tof");
93  addBlock(avTof,"avTof");
94  addBlock(timeCor,"timeCor");
95  }

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::MuonValidationTimeBlock::fill ( int  type_,
unsigned int  gasgapId_,
float  r_,
float  z_,
float  time_,
float  err_,
float  timeProp_ = 0.,
float  avTimeProp_ = 0.,
float  tof_ = 0.,
float  avTof_ = 0.,
float  timeCor_ = 0.,
int  stage_ = 0 
)
inline

Definition at line 120 of file MuonInsideOutValidationNtuple.h.

121  {
122  type->push_back(type_); gasgapId->push_back(gasgapId_); r->push_back(r_); z->push_back(z_); d->push_back(sqrt(r_*r_+z_*z_)); time->push_back(time_);
123  err->push_back(err_); timeProp->push_back(timeProp_); avTimeProp->push_back(avTimeProp_); tof->push_back(tof_);
124  avTof->push_back(avTof_); timeCor->push_back(timeCor_); stage->push_back(stage_);
125  }

◆ 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

◆ avTimeProp

std::vector<float>* Muon::MuonValidationTimeBlock::avTimeProp = nullptr

Definition at line 115 of file MuonInsideOutValidationNtuple.h.

◆ avTof

std::vector<float>* Muon::MuonValidationTimeBlock::avTof = nullptr

Definition at line 117 of file MuonInsideOutValidationNtuple.h.

◆ d

std::vector<float>* Muon::MuonValidationTimeBlock::d = nullptr

Definition at line 111 of file MuonInsideOutValidationNtuple.h.

◆ err

std::vector<float>* Muon::MuonValidationTimeBlock::err = nullptr

Definition at line 113 of file MuonInsideOutValidationNtuple.h.

◆ floatBlocks

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

Definition at line 45 of file MuonInsideOutValidationNtuple.h.

◆ gasgapId

std::vector<unsigned int>* Muon::MuonValidationTimeBlock::gasgapId = nullptr

Definition at line 108 of file MuonInsideOutValidationNtuple.h.

◆ id

MuonValidationIdBlock Muon::MuonValidationTimeBlock::id

Definition at line 102 of file MuonInsideOutValidationNtuple.h.

◆ intBlocks

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

Definition at line 43 of file MuonInsideOutValidationNtuple.h.

◆ r

std::vector<float>* Muon::MuonValidationTimeBlock::r = nullptr

Definition at line 109 of file MuonInsideOutValidationNtuple.h.

◆ stage

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

Definition at line 107 of file MuonInsideOutValidationNtuple.h.

◆ subBlocks

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

Definition at line 46 of file MuonInsideOutValidationNtuple.h.

◆ time

std::vector<float>* Muon::MuonValidationTimeBlock::time = nullptr

Definition at line 112 of file MuonInsideOutValidationNtuple.h.

◆ timeCor

std::vector<float>* Muon::MuonValidationTimeBlock::timeCor = nullptr

Definition at line 118 of file MuonInsideOutValidationNtuple.h.

◆ timeProp

std::vector<float>* Muon::MuonValidationTimeBlock::timeProp = nullptr

Definition at line 114 of file MuonInsideOutValidationNtuple.h.

◆ tof

std::vector<float>* Muon::MuonValidationTimeBlock::tof = nullptr

Definition at line 116 of file MuonInsideOutValidationNtuple.h.

◆ track

MuonValidationTrackBlock Muon::MuonValidationTimeBlock::track

Definition at line 103 of file MuonInsideOutValidationNtuple.h.

◆ truth

MuonValidationTruthBlock Muon::MuonValidationTimeBlock::truth

Definition at line 104 of file MuonInsideOutValidationNtuple.h.

◆ type

std::vector<int>* Muon::MuonValidationTimeBlock::type = nullptr

Definition at line 106 of file MuonInsideOutValidationNtuple.h.

◆ unsignedIntBlocks

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

Definition at line 44 of file MuonInsideOutValidationNtuple.h.

◆ z

std::vector<float>* Muon::MuonValidationTimeBlock::z = nullptr

Definition at line 110 of file MuonInsideOutValidationNtuple.h.


The documentation for this struct was generated from the following files:
Muon::MuonValidationTimeBlock::stage
std::vector< int > * stage
Definition: MuonInsideOutValidationNtuple.h:107
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::MuonValidationTimeBlock::d
std::vector< float > * d
Definition: MuonInsideOutValidationNtuple.h:111
Muon::MuonValidationTimeBlock::z
std::vector< float > * z
Definition: MuonInsideOutValidationNtuple.h:110
Muon::MuonValidationTimeBlock::timeCor
std::vector< float > * timeCor
Definition: MuonInsideOutValidationNtuple.h:118
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::MuonValidationTimeBlock::time
std::vector< float > * time
Definition: MuonInsideOutValidationNtuple.h:112
Muon::MuonValidationTimeBlock::type
std::vector< int > * type
Definition: MuonInsideOutValidationNtuple.h:106
Muon::MuonValidationBlockBase::unsignedIntBlocks
std::vector< UnsignedIntBlock > unsignedIntBlocks
Definition: MuonInsideOutValidationNtuple.h:44
Muon::MuonValidationTimeBlock::err
std::vector< float > * err
Definition: MuonInsideOutValidationNtuple.h:113
Muon::MuonValidationBlockBase::subBlocks
std::vector< SubBlock > subBlocks
Definition: MuonInsideOutValidationNtuple.h:46
Muon::MuonValidationTimeBlock::timeProp
std::vector< float > * timeProp
Definition: MuonInsideOutValidationNtuple.h:114
Muon::MuonValidationBlockBase::FloatBlock
std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock
Definition: MuonInsideOutValidationNtuple.h:30
Muon::MuonValidationTimeBlock::tof
std::vector< float > * tof
Definition: MuonInsideOutValidationNtuple.h:116
Muon::MuonValidationTimeBlock::r
std::vector< float > * r
Definition: MuonInsideOutValidationNtuple.h:109
python.ByteStreamConfig.write
def write
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:247
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Muon::MuonValidationTimeBlock::avTof
std::vector< float > * avTof
Definition: MuonInsideOutValidationNtuple.h:117
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
Muon::MuonValidationTimeBlock::avTimeProp
std::vector< float > * avTimeProp
Definition: MuonInsideOutValidationNtuple.h:115
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Muon::MuonValidationBlockBase::addBlock
void addBlock(std::vector< int > *&block, std::string name)
Definition: MuonInsideOutValidationNtuple.h:37
Muon::MuonValidationTimeBlock::gasgapId
std::vector< unsigned int > * gasgapId
Definition: MuonInsideOutValidationNtuple.h:108
Muon::MuonValidationTimeBlock::truth
MuonValidationTruthBlock truth
Definition: MuonInsideOutValidationNtuple.h:104
Muon::MuonValidationTimeBlock::track
MuonValidationTrackBlock track
Definition: MuonInsideOutValidationNtuple.h:103