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< TreetopInfotreetopinfo
SoSwitch * soswitch
bool muonchambers

Detailed Description

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

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

Member Function Documentation

◆ childrenRegExpNameCompatible()

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

Definition at line 198 of file VP1GeometrySystem.cxx.

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

◆ dump()

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

Definition at line 210 of file VP1GeometrySystem.cxx.

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

◆ grandchildrenRegExpNameCompatible()

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

Definition at line 202 of file VP1GeometrySystem.cxx.

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

◆ hasMuonChambers()

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

Definition at line 194 of file VP1GeometrySystem.cxx.

194 {
195 return muonchambers;
196 }

Member Data Documentation

◆ checkbox

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

Definition at line 157 of file VP1GeometrySystem.cxx.

◆ flag

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

Definition at line 177 of file VP1GeometrySystem.cxx.

◆ geomodelchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelchildrenregexp

Definition at line 169 of file VP1GeometrySystem.cxx.

◆ geomodelgrandchildrenregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodelgrandchildrenregexp

Definition at line 170 of file VP1GeometrySystem.cxx.

◆ geomodeltreetopregexp

QRegExp VP1GeometrySystem::Imp::SubSystemInfo::geomodeltreetopregexp

Definition at line 168 of file VP1GeometrySystem.cxx.

◆ isbuilt

bool VP1GeometrySystem::Imp::SubSystemInfo::isbuilt

Definition at line 155 of file VP1GeometrySystem.cxx.

◆ matname

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

Definition at line 176 of file VP1GeometrySystem.cxx.

◆ muonchambers

bool VP1GeometrySystem::Imp::SubSystemInfo::muonchambers

Definition at line 193 of file VP1GeometrySystem.cxx.

◆ negatechildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatechildrenregexp

Definition at line 172 of file VP1GeometrySystem.cxx.

◆ negategrandchildrenregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negategrandchildrenregexp

Definition at line 173 of file VP1GeometrySystem.cxx.

◆ negatetreetopregexp

bool VP1GeometrySystem::Imp::SubSystemInfo::negatetreetopregexp

Definition at line 171 of file VP1GeometrySystem.cxx.

◆ soswitch

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

Definition at line 190 of file VP1GeometrySystem.cxx.

◆ treetopinfo

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

Definition at line 187 of file VP1GeometrySystem.cxx.

◆ vollist

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

Definition at line 156 of file VP1GeometrySystem.cxx.


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