Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:37

0001 #include "Alignment/CommonAlignment/interface/AlignableObjectId.h"
0002 #include <cassert>
0003 #include <cstring>
0004 
0005 int main(int argc, char** argv) {
0006   using namespace align;
0007 
0008   AlignableObjectId alignableObjectId{AlignableObjectId::Geometry::General};
0009 
0010   assert(align::invalid == alignableObjectId.stringToId("invalid"));
0011   assert(align::AlignableDetUnit == alignableObjectId.stringToId("DetUnit"));
0012   assert(align::AlignableDet == alignableObjectId.stringToId("Det"));
0013 
0014   assert(align::TPBModule == alignableObjectId.stringToId("TPBModule"));
0015   assert(align::TPBLadder == alignableObjectId.stringToId("TPBLadder"));
0016   assert(align::TPBLayer == alignableObjectId.stringToId("TPBLayer"));
0017   assert(align::TPBHalfBarrel == alignableObjectId.stringToId("TPBHalfBarrel"));
0018   assert(align::TPBBarrel == alignableObjectId.stringToId("TPBBarrel"));
0019 
0020   assert(align::TPEModule == alignableObjectId.stringToId("TPEModule"));
0021   assert(align::TPEPanel == alignableObjectId.stringToId("TPEPanel"));
0022   assert(align::TPEBlade == alignableObjectId.stringToId("TPEBlade"));
0023   assert(align::TPEHalfDisk == alignableObjectId.stringToId("TPEHalfDisk"));
0024   assert(align::TPEHalfCylinder == alignableObjectId.stringToId("TPEHalfCylinder"));
0025   assert(align::TPEEndcap == alignableObjectId.stringToId("TPEEndcap"));
0026 
0027   assert(align::TIBModule == alignableObjectId.stringToId("TIBModule"));
0028   assert(align::TIBString == alignableObjectId.stringToId("TIBString"));
0029   assert(align::TIBSurface == alignableObjectId.stringToId("TIBSurface"));
0030   assert(align::TIBHalfShell == alignableObjectId.stringToId("TIBHalfShell"));
0031   assert(align::TIBLayer == alignableObjectId.stringToId("TIBLayer"));
0032   assert(align::TIBHalfBarrel == alignableObjectId.stringToId("TIBHalfBarrel"));
0033   assert(align::TIBBarrel == alignableObjectId.stringToId("TIBBarrel"));
0034 
0035   assert(align::TIDModule == alignableObjectId.stringToId("TIDModule"));
0036   assert(align::TIDSide == alignableObjectId.stringToId("TIDSide"));
0037   assert(align::TIDRing == alignableObjectId.stringToId("TIDRing"));
0038   assert(align::TIDDisk == alignableObjectId.stringToId("TIDDisk"));
0039   assert(align::TIDEndcap == alignableObjectId.stringToId("TIDEndcap"));
0040 
0041   assert(align::TOBModule == alignableObjectId.stringToId("TOBModule"));
0042   assert(align::TOBRod == alignableObjectId.stringToId("TOBRod"));
0043   assert(align::TOBLayer == alignableObjectId.stringToId("TOBLayer"));
0044   assert(align::TOBHalfBarrel == alignableObjectId.stringToId("TOBHalfBarrel"));
0045   assert(align::TOBBarrel == alignableObjectId.stringToId("TOBBarrel"));
0046 
0047   assert(align::TECModule == alignableObjectId.stringToId("TECModule"));
0048   assert(align::TECRing == alignableObjectId.stringToId("TECRing"));
0049   assert(align::TECPetal == alignableObjectId.stringToId("TECPetal"));
0050   assert(align::TECSide == alignableObjectId.stringToId("TECSide"));
0051   assert(align::TECDisk == alignableObjectId.stringToId("TECDisk"));
0052   assert(align::TECEndcap == alignableObjectId.stringToId("TECEndcap"));
0053 
0054   assert(align::Pixel == alignableObjectId.stringToId("Pixel"));
0055   assert(align::Strip == alignableObjectId.stringToId("Strip"));
0056   assert(align::Tracker == alignableObjectId.stringToId("Tracker"));
0057 
0058   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTBarrel), "DTBarrel"));
0059   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTWheel), "DTWheel"));
0060   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTStation), "DTStation"));
0061   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTChamber), "DTChamber"));
0062   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTSuperLayer), "DTSuperLayer"));
0063   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTLayer), "DTLayer"));
0064   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCEndcap), "CSCEndcap"));
0065   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCStation), "CSCStation"));
0066   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCRing), "CSCRing"));
0067   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCChamber), "CSCChamber"));
0068   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCLayer), "CSCLayer"));
0069   assert(!strcmp(alignableObjectId.idToString(align::AlignableMuon), "Muon"));
0070   assert(!strcmp(alignableObjectId.idToString(align::BeamSpot), "BeamSpot"));
0071 
0072   assert(!strcmp(alignableObjectId.idToString(align::invalid), "invalid"));
0073   assert(!strcmp(alignableObjectId.idToString(align::AlignableDetUnit), "DetUnit"));
0074   assert(!strcmp(alignableObjectId.idToString(align::AlignableDet), "Det"));
0075   assert(!strcmp(alignableObjectId.idToString(align::TPBModule), "TPBModule"));
0076   assert(!strcmp(alignableObjectId.idToString(align::TPBLadder), "TPBLadder"));
0077   assert(!strcmp(alignableObjectId.idToString(align::TPBLayer), "TPBLayer"));
0078   assert(!strcmp(alignableObjectId.idToString(align::TPBHalfBarrel), "TPBHalfBarrel"));
0079   assert(!strcmp(alignableObjectId.idToString(align::TPBBarrel), "TPBBarrel"));
0080   assert(!strcmp(alignableObjectId.idToString(align::TPEModule), "TPEModule"));
0081   assert(!strcmp(alignableObjectId.idToString(align::TPEPanel), "TPEPanel"));
0082   assert(!strcmp(alignableObjectId.idToString(align::TPEBlade), "TPEBlade"));
0083   assert(!strcmp(alignableObjectId.idToString(align::TPEHalfDisk), "TPEHalfDisk"));
0084   assert(!strcmp(alignableObjectId.idToString(align::TPEHalfCylinder), "TPEHalfCylinder"));
0085   assert(!strcmp(alignableObjectId.idToString(align::TPEEndcap), "TPEEndcap"));
0086   assert(!strcmp(alignableObjectId.idToString(align::TIBModule), "TIBModule"));
0087   assert(!strcmp(alignableObjectId.idToString(align::TIBString), "TIBString"));
0088   assert(!strcmp(alignableObjectId.idToString(align::TIBSurface), "TIBSurface"));
0089   assert(!strcmp(alignableObjectId.idToString(align::TIBHalfShell), "TIBHalfShell"));
0090   assert(!strcmp(alignableObjectId.idToString(align::TIBLayer), "TIBLayer"));
0091   assert(!strcmp(alignableObjectId.idToString(align::TIBHalfBarrel), "TIBHalfBarrel"));
0092   assert(!strcmp(alignableObjectId.idToString(align::TIBBarrel), "TIBBarrel"));
0093   assert(!strcmp(alignableObjectId.idToString(align::TIDModule), "TIDModule"));
0094   assert(!strcmp(alignableObjectId.idToString(align::TIDSide), "TIDSide"));
0095   assert(!strcmp(alignableObjectId.idToString(align::TIDRing), "TIDRing"));
0096   assert(!strcmp(alignableObjectId.idToString(align::TIDDisk), "TIDDisk"));
0097   assert(!strcmp(alignableObjectId.idToString(align::TIDEndcap), "TIDEndcap"));
0098   assert(!strcmp(alignableObjectId.idToString(align::TOBModule), "TOBModule"));
0099   assert(!strcmp(alignableObjectId.idToString(align::TOBRod), "TOBRod"));
0100   assert(!strcmp(alignableObjectId.idToString(align::TOBLayer), "TOBLayer"));
0101   assert(!strcmp(alignableObjectId.idToString(align::TOBHalfBarrel), "TOBHalfBarrel"));
0102   assert(!strcmp(alignableObjectId.idToString(align::TOBBarrel), "TOBBarrel"));
0103   assert(!strcmp(alignableObjectId.idToString(align::TECModule), "TECModule"));
0104   assert(!strcmp(alignableObjectId.idToString(align::TECRing), "TECRing"));
0105   assert(!strcmp(alignableObjectId.idToString(align::TECPetal), "TECPetal"));
0106   assert(!strcmp(alignableObjectId.idToString(align::TECSide), "TECSide"));
0107   assert(!strcmp(alignableObjectId.idToString(align::TECDisk), "TECDisk"));
0108   assert(!strcmp(alignableObjectId.idToString(align::TECEndcap), "TECEndcap"));
0109   assert(!strcmp(alignableObjectId.idToString(align::Pixel), "Pixel"));
0110   assert(!strcmp(alignableObjectId.idToString(align::Strip), "Strip"));
0111   assert(!strcmp(alignableObjectId.idToString(align::Tracker), "Tracker"));
0112   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTBarrel), "DTBarrel"));
0113   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTWheel), "DTWheel"));
0114   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTStation), "DTStation"));
0115   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTChamber), "DTChamber"));
0116   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTSuperLayer), "DTSuperLayer"));
0117   assert(!strcmp(alignableObjectId.idToString(align::AlignableDTLayer), "DTLayer"));
0118   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCEndcap), "CSCEndcap"));
0119   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCStation), "CSCStation"));
0120   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCRing), "CSCRing"));
0121   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCChamber), "CSCChamber"));
0122   assert(!strcmp(alignableObjectId.idToString(align::AlignableCSCLayer), "CSCLayer"));
0123   assert(!strcmp(alignableObjectId.idToString(align::AlignableMuon), "Muon"));
0124   assert(!strcmp(alignableObjectId.idToString(align::BeamSpot), "BeamSpot"));
0125   // assert(notfound== alignableObjectId.stringToId(0));
0126 }