Skip to content

Commit

Permalink
removal of deprecated lines
Browse files Browse the repository at this point in the history
  • Loading branch information
alesaggio committed Jun 22, 2017
1 parent f405f75 commit 1477742
Showing 1 changed file with 0 additions and 62 deletions.
62 changes: 0 additions & 62 deletions DQM/SiStripCommon/src/SiStripFolderOrganizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -498,65 +498,3 @@ std::pair<const std::string, const char *> SiStripFolderOrganizer::getSubDetFold

return std::pair<const std::string, const char *>(folder, tag);
}


// This is the deprecated version, still needed for now.
#include "DataFormats/SiStripDetId/interface/TIBDetId.h"
#include "DataFormats/SiStripDetId/interface/TOBDetId.h"
#include "DataFormats/SiStripDetId/interface/TIDDetId.h"
#include "DataFormats/SiStripDetId/interface/TECDetId.h"

void SiStripFolderOrganizer::getFolderName(int32_t rawdetid, std::string& lokal_folder){
lokal_folder = "";
if(rawdetid == 0 ){ // just top MechanicalFolder if rawdetid==0;
return;
}
std::stringstream rest;
SiStripDetId stripdet = SiStripDetId(rawdetid);

if (stripdet.subDetector() == SiStripDetId::TIB){
// --------------------------- TIB --------------------------- //
TIBDetId tib = TIBDetId(rawdetid);
getSubDetLayerFolderName(rest,stripdet.subDetector(),tib.layerNumber());
if (tib.isZMinusSide()) rest << "backward_strings" << SEP;
else rest << "forward_strings" << SEP;
if (tib.isExternalString()) rest << "external_strings" << SEP;
else rest << "internal_strings" << SEP;
rest << "string_" << tib.stringNumber() << SEP << "module_" << rawdetid;
} else if(stripdet.subDetector() == SiStripDetId::TID){
// --------------------------- TID --------------------------- //
TIDDetId tid = TIDDetId(rawdetid);
getSubDetLayerFolderName(rest,stripdet.subDetector(),tid.wheel(),tid.side());
rest<< "ring_" << tid.ring() << SEP;

if (tid.isStereo()) rest << "stereo_modules" << SEP;
else rest << "mono_modules" << SEP;
rest << "module_" << rawdetid;
} else if( stripdet.subDetector() == SiStripDetId::TOB){
// --------------------------- TOB --------------------------- //
TOBDetId tob = TOBDetId(rawdetid);
getSubDetLayerFolderName(rest,stripdet.subDetector(),tob.layerNumber());
if (tob.isZMinusSide()) rest << "backward_rods" << SEP;
else rest << "forward_rods" << SEP;
rest << "rod_" << tob.rodNumber() << SEP<< "module_" << rawdetid;
}else if(stripdet.subDetector() == SiStripDetId::TEC){
// --------------------------- TEC --------------------------- //
TECDetId tec = TECDetId(rawdetid);
getSubDetLayerFolderName(rest,stripdet.subDetector(),tec.wheel(),tec.side());
if (tec.isBackPetal()) rest << "backward_petals" << SEP;
else rest << "forward_petals" << SEP;

rest << "petal_" << tec.petalNumber() << SEP
<< "ring_"<< tec.ringNumber() << SEP;

if (tec.isStereo()) rest << "stereo_modules" << SEP;
else rest << "mono_modules" << SEP;

rest << "module_" << rawdetid;
}else{
// --------------------------- ??? --------------------------- //
edm::LogWarning("SiStripTkDQM|WrongInput")<<"no such subdetector type :"<<stripdet.subDetector() <<" no folder set!"<<std::endl;
return;
}
lokal_folder += rest.str();
}

0 comments on commit 1477742

Please sign in to comment.