ATLAS Offline Software
Loading...
Searching...
No Matches
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< TreetopInfo > treetopinfo
SoSwitch * soswitch
bool muonchambers

Detailed Description

Definition at line 127 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 131 of file VP1GeometrySystem.cxx.

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

Member Function Documentation

◆ childrenRegExpNameCompatible()

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

Definition at line 199 of file VP1GeometrySystem.cxx.

199 {
200 return negatechildrenregexp!=geomodelchildrenregexp.exactMatch(volname.c_str());
201 }

◆ dump()

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

Definition at line 211 of file VP1GeometrySystem.cxx.

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

◆ grandchildrenRegExpNameCompatible()

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

Definition at line 203 of file VP1GeometrySystem.cxx.

203 {
204 if(VP1Msg::debug()){
205 std::cout << "volname: " << volname << " - regexpr: " << geomodelgrandchildrenregexp.pattern().toStdString() << std::endl;
206 std::cout << "negategrandchildrenregexp: " << negategrandchildrenregexp << std::endl;
207 }
208 return negategrandchildrenregexp!=geomodelgrandchildrenregexp.exactMatch(volname.c_str());
209 }
static bool debug()
Definition VP1Msg.h:32

◆ hasMuonChambers()

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

Definition at line 195 of file VP1GeometrySystem.cxx.

195 {
196 return muonchambers;
197 }

Member Data Documentation

◆ checkbox

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

Definition at line 158 of file VP1GeometrySystem.cxx.

◆ flag

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

Definition at line 178 of file VP1GeometrySystem.cxx.

◆ geomodelchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelchildrenregexp

Definition at line 170 of file VP1GeometrySystem.cxx.

◆ geomodelgrandchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelgrandchildrenregexp

Definition at line 171 of file VP1GeometrySystem.cxx.

◆ geomodeltreetopregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodeltreetopregexp

Definition at line 169 of file VP1GeometrySystem.cxx.

◆ isbuilt

bool VP1GeometrySystem::Imp::SubSystemInfo::isbuilt

Definition at line 156 of file VP1GeometrySystem.cxx.

◆ matname

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

Definition at line 177 of file VP1GeometrySystem.cxx.

◆ muonchambers

bool VP1GeometrySystem::Imp::SubSystemInfo::muonchambers

Definition at line 194 of file VP1GeometrySystem.cxx.

◆ negatechildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatechildrenregexp

Definition at line 173 of file VP1GeometrySystem.cxx.

◆ negategrandchildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negategrandchildrenregexp

Definition at line 174 of file VP1GeometrySystem.cxx.

◆ negatetreetopregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatetreetopregexp

Definition at line 172 of file VP1GeometrySystem.cxx.

◆ soswitch

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

Definition at line 191 of file VP1GeometrySystem.cxx.

◆ treetopinfo

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

Definition at line 188 of file VP1GeometrySystem.cxx.

◆ vollist

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

Definition at line 157 of file VP1GeometrySystem.cxx.


The documentation for this class was generated from the following file: