ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::MuonValidationSegmentBlock Struct Reference

Block with segment information. More...

#include <MuonInsideOutValidationNtuple.h>

Inheritance diagram for Muon::MuonValidationSegmentBlock:
Collaboration diagram for Muon::MuonValidationSegmentBlock:

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

 MuonValidationSegmentBlock ()
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 > * stage = nullptr
std::vector< int > * quality = nullptr
std::vector< int > * nmdtHits = nullptr
std::vector< int > * ntrigEtaHits = nullptr
std::vector< int > * ntrigPhiHits = nullptr
std::vector< float > * r = nullptr
std::vector< float > * z = nullptr
std::vector< float > * t0 = nullptr
std::vector< float > * t0Error = nullptr
std::vector< float > * t0Trig = nullptr
std::vector< float > * t0TrigError = nullptr
MuonValidationIdBlock id
MuonValidationTrackBlock track
MuonValidationTruthBlock truth
MuonValidationResidualBlock xresiduals
MuonValidationResidualBlock yresiduals
MuonValidationResidualBlock angleXZ
MuonValidationResidualBlock angleYZ
MuonValidationResidualBlock combinedYZ
std::vector< IntBlockintBlocks
std::vector< UnsignedIntBlockunsignedIntBlocks
std::vector< FloatBlockfloatBlocks
std::vector< SubBlocksubBlocks

Detailed Description

Block with segment information.

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

◆ MuonValidationSegmentBlock()

Muon::MuonValidationSegmentBlock::MuonValidationSegmentBlock ( )

Definition at line 123 of file MuonInsideOutValidationNtuple.cxx.

123 {
124 addBlock(stage,"stage");
125 addBlock(quality,"quality");
126 addBlock(nmdtHits,"nmdtHits");
127 addBlock(ntrigEtaHits,"ntrigEtaHits");
128 addBlock(ntrigPhiHits,"ntrigPhiHits");
129 addBlock(r,"r");
130 addBlock(z,"z");
131 addBlock(t0,"t0");
132 addBlock(t0Error,"t0Error");
133 addBlock(t0Trig,"t0Trig");
134 addBlock(t0TrigError,"t0TrigError");
135 addBlock(&id,"");
136 addBlock(&track,"");
137 addBlock(&truth,"");
138 addBlock(&xresiduals,"x");
139 addBlock(&yresiduals,"y");
140 addBlock(&angleXZ,"angleXZ");
141 addBlock(&angleYZ,"angleYZ");
142 addBlock(&combinedYZ,"combYZ");
143 }
void addBlock(std::vector< int > *&block, std::string name)

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) ); }
std::pair< MuonValidationBlockBase *, std::string > SubBlock

◆ 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) ); }
std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock

◆ 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) ); }
std::pair< std::reference_wrapper< std::vector< int > * >, std::string > IntBlock

◆ 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) ); }
std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > UnsignedIntBlock
std::vector< UnsignedIntBlock > unsignedIntBlocks

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

◆ 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 }
TChain * tree

Member Data Documentation

◆ angleXZ

MuonValidationResidualBlock Muon::MuonValidationSegmentBlock::angleXZ

Definition at line 225 of file MuonInsideOutValidationNtuple.h.

◆ angleYZ

MuonValidationResidualBlock Muon::MuonValidationSegmentBlock::angleYZ

Definition at line 226 of file MuonInsideOutValidationNtuple.h.

◆ combinedYZ

MuonValidationResidualBlock Muon::MuonValidationSegmentBlock::combinedYZ

Definition at line 227 of file MuonInsideOutValidationNtuple.h.

◆ floatBlocks

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

Definition at line 45 of file MuonInsideOutValidationNtuple.h.

◆ id

MuonValidationIdBlock Muon::MuonValidationSegmentBlock::id

Definition at line 220 of file MuonInsideOutValidationNtuple.h.

◆ intBlocks

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

Definition at line 43 of file MuonInsideOutValidationNtuple.h.

◆ nmdtHits

std::vector<int>* Muon::MuonValidationSegmentBlock::nmdtHits = nullptr

Definition at line 211 of file MuonInsideOutValidationNtuple.h.

◆ ntrigEtaHits

std::vector<int>* Muon::MuonValidationSegmentBlock::ntrigEtaHits = nullptr

Definition at line 212 of file MuonInsideOutValidationNtuple.h.

◆ ntrigPhiHits

std::vector<int>* Muon::MuonValidationSegmentBlock::ntrigPhiHits = nullptr

Definition at line 213 of file MuonInsideOutValidationNtuple.h.

◆ quality

std::vector<int>* Muon::MuonValidationSegmentBlock::quality = nullptr

Definition at line 210 of file MuonInsideOutValidationNtuple.h.

◆ r

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

Definition at line 214 of file MuonInsideOutValidationNtuple.h.

◆ stage

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

Definition at line 209 of file MuonInsideOutValidationNtuple.h.

◆ subBlocks

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

Definition at line 46 of file MuonInsideOutValidationNtuple.h.

◆ t0

std::vector<float>* Muon::MuonValidationSegmentBlock::t0 = nullptr

Definition at line 216 of file MuonInsideOutValidationNtuple.h.

◆ t0Error

std::vector<float>* Muon::MuonValidationSegmentBlock::t0Error = nullptr

Definition at line 217 of file MuonInsideOutValidationNtuple.h.

◆ t0Trig

std::vector<float>* Muon::MuonValidationSegmentBlock::t0Trig = nullptr

Definition at line 218 of file MuonInsideOutValidationNtuple.h.

◆ t0TrigError

std::vector<float>* Muon::MuonValidationSegmentBlock::t0TrigError = nullptr

Definition at line 219 of file MuonInsideOutValidationNtuple.h.

◆ track

MuonValidationTrackBlock Muon::MuonValidationSegmentBlock::track

Definition at line 221 of file MuonInsideOutValidationNtuple.h.

◆ truth

MuonValidationTruthBlock Muon::MuonValidationSegmentBlock::truth

Definition at line 222 of file MuonInsideOutValidationNtuple.h.

◆ unsignedIntBlocks

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

Definition at line 44 of file MuonInsideOutValidationNtuple.h.

◆ xresiduals

MuonValidationResidualBlock Muon::MuonValidationSegmentBlock::xresiduals

Definition at line 223 of file MuonInsideOutValidationNtuple.h.

◆ yresiduals

MuonValidationResidualBlock Muon::MuonValidationSegmentBlock::yresiduals

Definition at line 224 of file MuonInsideOutValidationNtuple.h.

◆ z

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

Definition at line 215 of file MuonInsideOutValidationNtuple.h.


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