ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | List of all members
VP1GeometrySystem::Imp::SubSystemInfo Class Reference
Collaboration diagram for VP1GeometrySystem::Imp::SubSystemInfo:

Classes

class  TreetopInfo
 

Public Member Functions

 SubSystemInfo (QCheckBox *cb, const QRegExp &the_geomodeltreetopregexp, bool the_negatetreetopregexp, const QRegExp &the_geomodelchildrenregexp, bool the_negatechildrenregexp, VP1GeoFlags::SubSystemFlag the_flag, const std::string &the_matname, const QRegExp &the_geomodelgrandchildrenregexp, bool the_negategrandchildrenregexp=false)
 
bool hasMuonChambers () const
 
bool childrenRegExpNameCompatible (const std::string &volname) const
 
bool grandchildrenRegExpNameCompatible (const std::string &volname) const
 
void dump () const
 

Public Attributes

bool isbuilt
 
VolumeHandle::VolumeHandleList vollist
 
QCheckBox * checkbox
 
QRegExp geomodeltreetopregexp
 
QRegExp geomodelchildrenregexp
 
QRegExp geomodelgrandchildrenregexp
 
bool negatetreetopregexp
 
bool negatechildrenregexp
 
bool negategrandchildrenregexp
 
std::string matname
 
VP1GeoFlags::SubSystemFlag flag
 
std::vector< TreetopInfotreetopinfo
 
SoSwitch * soswitch
 
bool muonchambers
 

Detailed Description

Definition at line 125 of file VP1GeometrySystem.cxx.

Constructor & Destructor Documentation

◆ SubSystemInfo()

VP1GeometrySystem::Imp::SubSystemInfo::SubSystemInfo ( QCheckBox *  cb,
const QRegExp &  the_geomodeltreetopregexp,
bool  the_negatetreetopregexp,
const QRegExp &  the_geomodelchildrenregexp,
bool  the_negatechildrenregexp,
VP1GeoFlags::SubSystemFlag  the_flag,
const std::string &  the_matname,
const QRegExp &  the_geomodelgrandchildrenregexp,
bool  the_negategrandchildrenregexp = false 
)
inline

Definition at line 129 of file VP1GeometrySystem.cxx.

133  : isbuilt(false), checkbox(cb),
134  geomodeltreetopregexp(the_geomodeltreetopregexp),
135  geomodelchildrenregexp(the_geomodelchildrenregexp),
136  geomodelgrandchildrenregexp(the_geomodelgrandchildrenregexp),
137  negatetreetopregexp(the_negatetreetopregexp),
138  negatechildrenregexp(the_negatechildrenregexp),
139  negategrandchildrenregexp(the_negategrandchildrenregexp),
140  matname(the_matname), flag(the_flag), soswitch(0)
141  {
142 
143  muonchambers=false;
144 
145  // we set to True if the name contains any of the Muon flags here below
146  if (geomodeltreetopregexp.pattern()=="Muon") {
147  muonchambers = ( matname=="CSC"||matname=="TGC"||matname=="EndcapMdt"||matname=="MM"||matname=="sTGC"
148  ||matname=="BarrelInner"||matname=="BarrelMiddle"||matname=="BarrelOuter" );
149  }
150 
151  }

Member Function Documentation

◆ childrenRegExpNameCompatible()

bool VP1GeometrySystem::Imp::SubSystemInfo::childrenRegExpNameCompatible ( const std::string &  volname) const
inline

Definition at line 197 of file VP1GeometrySystem.cxx.

197  {
198  return negatechildrenregexp!=geomodelchildrenregexp.exactMatch(volname.c_str());
199  }

◆ dump()

void VP1GeometrySystem::Imp::SubSystemInfo::dump ( ) const
inline

Definition at line 209 of file VP1GeometrySystem.cxx.

209  {
210  std::cout<<" SubSystemInfo @ "<<this<<"\n"
211  <<(isbuilt?"Is built.\n":"Is not built.\n")
212  <<(muonchambers?"Has muon chambers.\n":"No muon chambers.\n");
213  std::cout<<"Contains following volhandles: [";
214  for (auto vol : vollist) std::cout<<&vol<<",";
215  std::cout<<"]"<<std::endl;
216  std::cout<<"Matname = "<<matname<<std::endl;
217  std::cout<<"Contains following TreetopInfo: [";
218  for (const auto& tt : treetopinfo) std::cout<<tt.volname<<",";
219  std::cout<<"]"<<std::endl;
220 
221  }

◆ grandchildrenRegExpNameCompatible()

bool VP1GeometrySystem::Imp::SubSystemInfo::grandchildrenRegExpNameCompatible ( const std::string &  volname) const
inline

Definition at line 201 of file VP1GeometrySystem.cxx.

201  {
202  if(VP1Msg::debug()){
203  std::cout << "volname: " << volname << " - regexpr: " << geomodelgrandchildrenregexp.pattern().toStdString() << std::endl;
204  std::cout << "negategrandchildrenregexp: " << negategrandchildrenregexp << std::endl;
205  }
206  return negategrandchildrenregexp!=geomodelgrandchildrenregexp.exactMatch(volname.c_str());
207  }

◆ hasMuonChambers()

bool VP1GeometrySystem::Imp::SubSystemInfo::hasMuonChambers ( ) const
inline

Definition at line 193 of file VP1GeometrySystem.cxx.

193  {
194  return muonchambers;
195  }

Member Data Documentation

◆ checkbox

QCheckBox* VP1GeometrySystem::Imp::SubSystemInfo::checkbox

Definition at line 156 of file VP1GeometrySystem.cxx.

◆ flag

VP1GeoFlags::SubSystemFlag VP1GeometrySystem::Imp::SubSystemInfo::flag

Definition at line 176 of file VP1GeometrySystem.cxx.

◆ geomodelchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelchildrenregexp

Definition at line 168 of file VP1GeometrySystem.cxx.

◆ geomodelgrandchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelgrandchildrenregexp

Definition at line 169 of file VP1GeometrySystem.cxx.

◆ geomodeltreetopregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodeltreetopregexp

Definition at line 167 of file VP1GeometrySystem.cxx.

◆ isbuilt

bool VP1GeometrySystem::Imp::SubSystemInfo::isbuilt

Definition at line 154 of file VP1GeometrySystem.cxx.

◆ matname

std::string VP1GeometrySystem::Imp::SubSystemInfo::matname

Definition at line 175 of file VP1GeometrySystem.cxx.

◆ muonchambers

bool VP1GeometrySystem::Imp::SubSystemInfo::muonchambers

Definition at line 192 of file VP1GeometrySystem.cxx.

◆ negatechildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatechildrenregexp

Definition at line 171 of file VP1GeometrySystem.cxx.

◆ negategrandchildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negategrandchildrenregexp

Definition at line 172 of file VP1GeometrySystem.cxx.

◆ negatetreetopregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatetreetopregexp

Definition at line 170 of file VP1GeometrySystem.cxx.

◆ soswitch

SoSwitch* VP1GeometrySystem::Imp::SubSystemInfo::soswitch

Definition at line 189 of file VP1GeometrySystem.cxx.

◆ treetopinfo

std::vector<TreetopInfo> VP1GeometrySystem::Imp::SubSystemInfo::treetopinfo

Definition at line 186 of file VP1GeometrySystem.cxx.

◆ vollist

VolumeHandle::VolumeHandleList VP1GeometrySystem::Imp::SubSystemInfo::vollist

Definition at line 155 of file VP1GeometrySystem.cxx.


The documentation for this class was generated from the following file:
VP1GeometrySystem::Imp::SubSystemInfo::matname
std::string matname
Definition: VP1GeometrySystem.cxx:175
VP1GeometrySystem::Imp::SubSystemInfo::geomodelgrandchildrenregexp
QRegExp geomodelgrandchildrenregexp
Definition: VP1GeometrySystem.cxx:169
VP1GeometrySystem::Imp::SubSystemInfo::negatetreetopregexp
bool negatetreetopregexp
Definition: VP1GeometrySystem.cxx:170
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
VP1GeometrySystem::Imp::SubSystemInfo::geomodeltreetopregexp
QRegExp geomodeltreetopregexp
Definition: VP1GeometrySystem.cxx:167
VP1GeometrySystem::Imp::SubSystemInfo::treetopinfo
std::vector< TreetopInfo > treetopinfo
Definition: VP1GeometrySystem.cxx:186
VP1GeometrySystem::Imp::SubSystemInfo::negategrandchildrenregexp
bool negategrandchildrenregexp
Definition: VP1GeometrySystem.cxx:172
VP1GeometrySystem::Imp::SubSystemInfo::geomodelchildrenregexp
QRegExp geomodelchildrenregexp
Definition: VP1GeometrySystem.cxx:168
VP1GeometrySystem::Imp::SubSystemInfo::muonchambers
bool muonchambers
Definition: VP1GeometrySystem.cxx:192
VP1GeometrySystem::Imp::SubSystemInfo::negatechildrenregexp
bool negatechildrenregexp
Definition: VP1GeometrySystem.cxx:171
VP1GeometrySystem::Imp::SubSystemInfo::vollist
VolumeHandle::VolumeHandleList vollist
Definition: VP1GeometrySystem.cxx:155
VP1GeometrySystem::Imp::SubSystemInfo::isbuilt
bool isbuilt
Definition: VP1GeometrySystem.cxx:154
TileDCSDataPlotter.tt
tt
Definition: TileDCSDataPlotter.py:874
VP1GeometrySystem::Imp::SubSystemInfo::soswitch
SoSwitch * soswitch
Definition: VP1GeometrySystem.cxx:189
VP1GeometrySystem::Imp::SubSystemInfo::checkbox
QCheckBox * checkbox
Definition: VP1GeometrySystem.cxx:156
VP1GeometrySystem::Imp::SubSystemInfo::flag
VP1GeoFlags::SubSystemFlag flag
Definition: VP1GeometrySystem.cxx:176