#include <VisReco/VisCustomTracker/interface/VisCuTkSubLayer.h>
Public Member Functions | |
int | getId () |
VisCuTkLayer * | getOwner () |
bool | isStereo () |
bool | isVisible () |
void | setVisible (bool vis) |
void | setVisible () |
VisCuTkSubLayer (int idc, VisCuTkLayer *layer) | |
virtual | ~VisCuTkSubLayer () |
Private Attributes | |
int | idSubLayer |
VisCuTkLayer * | Layer |
bool | stereo |
bool | visible |
Definition at line 10 of file VisCuTkSubLayer.h.
VisCuTkSubLayer::VisCuTkSubLayer | ( | int | idc, | |
VisCuTkLayer * | layer | |||
) |
Definition at line 10 of file VisCuTkSubLayer.cc.
References VisCuTkCompositeDetector< VisCuTkModule >::addComponent(), VisCuTkPartDetector::getId(), VisCuTkSubDetector::getId(), VisCuTkLayer::getId(), VisCuTkPartDetector::getOwner(), VisCuTkLayer::getOwner(), i, idSubLayer, Layer, stereo, and visible.
00010 { 00011 idSubLayer = idc; 00012 Layer = layer; 00013 int ncomponent = 0; 00014 visible = false; 00015 stereo = false; 00016 00017 int spicchif[] ={24,24,40,56,40,56,80}; 00018 int spicchib[] ={20,32,44,30,38,46,56,42,48,54,60,66,74}; 00019 00020 int numero_layer = 0; 00021 00022 if(Layer->getOwner()->getId()== 2){ //barrel 00023 numero_layer = layer->getId()-1; 00024 if(Layer->getOwner()->getOwner()->getId()== 2){ //inner 00025 numero_layer = numero_layer+3; 00026 } 00027 if(Layer->getOwner()->getOwner()->getId()== 3){ //outer 00028 numero_layer = numero_layer+7; 00029 } 00030 ncomponent = spicchib[numero_layer]; 00031 /*if(Layer->getOwner()->getOwner()->getId()== 2){ //inner 00032 if(Layer->getId()==1&& (idc%2)==0)ncomponent=ncomponent-4; 00033 if(Layer->getId()==2&& (idc%2)!=0)ncomponent=ncomponent-4; 00034 if(Layer->getId()==3&& (idc%2)==0)ncomponent=ncomponent-2; 00035 if(Layer->getId()==4&& (idc%2)!=0)ncomponent=ncomponent-4; 00036 }*/ 00037 } 00038 if(Layer->getOwner()->getId()!= 2){ //endcap 00039 00040 if(Layer->getOwner()->getOwner()->getId()== 1)ncomponent=24;//pixel 00041 else 00042 ncomponent = spicchif[idc-1]; 00043 } 00044 00045 00046 //cout << "FowBarModS= "<<Layer->getOwner()->getId()<<"Layer= "<<layer->getId() << "nanello= " <<idc<<" ncomponent= "<<ncomponent<<endl; 00047 00048 for(int i=1; i<(ncomponent+1); i++){ 00049 addComponent(i,new VisCuTkModule(i,this)); 00050 } 00051 if((Layer->getOwner()->getId()== 2 && Layer->getOwner()->getOwner()->getId()!= 1 && layer->getId()<3) || (Layer->getOwner()->getId()!= 2 && Layer->getOwner()->getOwner()->getId()!= 1 && (idc == 1 || idc == 2 || idc == 5))){ 00052 00053 //cout << "FowBar= "<<Layer->getOwner()->getId()<<"Layer= "<<layer->getId() << "nanello= " <<idc<<" ncomponent= "<<ncomponent<<endl; 00054 stereo=true; 00055 for(int i=1; i<(ncomponent+1); i++){ 00056 addComponent((i+ncomponent),new VisCuTkModule(i+100,this)); 00057 } 00058 } 00059 //cout << "Size= " <<components()<<endl; 00060 }
VisCuTkSubLayer::~VisCuTkSubLayer | ( | ) | [virtual] |
int VisCuTkSubLayer::getId | ( | ) | [inline, virtual] |
Implements VisCuTkState.
Definition at line 16 of file VisCuTkSubLayer.h.
References idSubLayer.
Referenced by VisCuTkMap2D::computemodule(), VisCuTrackerCluster::drawcluster(), VisCuTrackerDigi::drawdigi(), VisCuTkMap2D::drawmodule(), VisCuTkLayerSelection::drawmodule(), VisCuTkSlWindow::drawpart(), VisCuTrackerRecHit::drawrechit(), VisCuTkSelectionBar::drawSelectionBars(), VisCuTrackerSimHit::drawsimhit(), and VisCuTkSelectionBar::mousePressEvent().
00016 {return idSubLayer; }
VisCuTkLayer* VisCuTkSubLayer::getOwner | ( | ) | [inline] |
Definition at line 15 of file VisCuTkSubLayer.h.
References Layer.
Referenced by VisCuTkSlWindow::drawpart(), and VisCuTkSelectionBar::mousePressEvent().
00015 {return Layer; }
bool VisCuTkSubLayer::isStereo | ( | ) | [inline] |
Definition at line 18 of file VisCuTkSubLayer.h.
References stereo.
Referenced by VisCuTkMap2D::computemodule(), VisCuTrackerCluster::drawcluster(), VisCuTrackerDigi::drawdigi(), VisCuTkMap2D::drawmodule(), VisCuTkLayerSelection::drawmodule(), VisCuTrackerRecHit::drawrechit(), VisCuTrackerSimHit::drawsimhit(), and VisCuTkSelectionBar::paintEvent().
00018 {return stereo;}
bool VisCuTkSubLayer::isVisible | ( | ) | [inline, virtual] |
Implements VisCuTkState.
Definition at line 17 of file VisCuTkSubLayer.h.
References visible.
00017 {return visible;}
Implements VisCuTkState.
Definition at line 20 of file VisCuTkSubLayer.h.
References visible.
00020 {visible=vis;}
void VisCuTkSubLayer::setVisible | ( | ) | [inline, virtual] |
Implements VisCuTkState.
Definition at line 19 of file VisCuTkSubLayer.h.
References visible.
Referenced by VisCuTkSlWindow::drawall(), VisCuTkSlWindow::drawpart(), VisCuTkSlWindow::notifyEvent(), VisCuTkSlWindow::pxbp(), VisCuTkSlWindow::pxep(), VisCuTkSlWindow::tecp(), VisCuTkSlWindow::tibp(), VisCuTkSlWindow::tidp(), and VisCuTkSlWindow::tobp().
int VisCuTkSubLayer::idSubLayer [private] |
VisCuTkLayer* VisCuTkSubLayer::Layer [private] |
bool VisCuTkSubLayer::stereo [private] |
bool VisCuTkSubLayer::visible [private] |
Definition at line 24 of file VisCuTkSubLayer.h.
Referenced by isVisible(), setVisible(), and VisCuTkSubLayer().