Home
The ATLAS Barrel Alignment Readout System Reference
Contents
1. Modify Sequence Edit Channels Sequence Status Database ConfDb CondDb Figure 2 16 Configuration panel 2 lala Rasdim ConfDb Panel Server 4 Dbase ATONR_CONF User ATLAS CONF MDT VW Pwd o AdmxADSIYUO Number of channels in ConfDb Channels O PVS5S gt ConfDb ConfDb gt PVSS Close Figure 2 17 ConfDb panel 17 Press the button Number of channels in ConfDb It will determine how many channels exist for server 4 After a couple of seconds the number 759 will appear and also the two buttons PVSS gt ConfDb and ConfDb gt PVSS are enabled Press the ConfDb gt PVSS button be careful not the other one in order to get the channels including their parameters into PVSS as datapoints During this process the number of channels will increase When finished close this panel and also the Configuration parent panel 24 ATLAS Barrel Alignment vl l Apr 2011 18 Stop the project and set the start mode of the following managers to always e PVSS00dim dim dp config Rasdim e Control Manager num 20 RDSequence ctl e Control Manager num 21 RDStore2ConfDb ctl 19 At this stage the PVSS project is ready to perform its task However before PVSS can be started the Rasdim server has to run first There should be a shortcut on the desktop but before executing adjust the corresponding initialization file first It resides in the same folder as Rasdim itself which is depending on the version o
2. 1 8 End of sequence Number of errors Refer to Table 1 6 for the description of these variables Table 1 7 ALIGN_STAT table Each channel has a DPE datapoint element called counter indicating the number of successive analysis s within the sequence The counter is limited to 10 times but currently not used It is set to 1 which is also the default If set to zero the channel is rejected and added to the number of rejected channels In this way channels which are definitely not working are put out of the sequence 10 ATLAS Barrel Alignment v1 1 Apr 2011 1 3 2 ConfDb The ConfDb has the following attributes e Database atonr_conf e User ATLAS CONF MDT_W e Password classified There is also a read only account ATLAS MDT DCS R for this database The table used inside is hidden Access is only possible by means of built in functions in order to protect the data and history If needed the PVSS projects ATLMDTBAL 1 8 use the read only account to setup their datapoints from scratch The super visor ATLMDTBAL9 however PC9 uses the read write account to synchronize the contents of the ConfDb with that of the datapoints For this purpose a dedicated control manager takes care that for each channel the parameters are equalized Hence any difference is copied from the DPE and written to the ConfDb It runs every night Items which are maintained are the addresses of camera and light source the electronic settings of t
3. 30 Info Started Cmds Mar 17 2010 11 36 3424612 BOS5AD6_HY 3825 RO 3847 BOS5A08_HVY 3869 BOS5A08_RO 3891 BIL1A05_H 5156 BIL1A05_RO 5157 RO 5158 BIL2A05_H 5165 BIL2A05_RO 5166 Figure 2 1 Rasdim server 29184 2 29184 2 29184 2 29184 2 29184 2 29184 2 29184 2 29184 2 29184 2 9010471 ra The super visor PC PCATLMDTBALY has also two major components 1 DNS the DIM name server enables communication between the Rasdim servers and their clients i e PVSS 2 PVSS holding the FSM part of the readout system The following remarks are valid for the super visor PC e PVSS and DNS are both started as service hence they run under user SYSTEM YRRPMRPR Aan eer I lt e All PVSS GUIs PVSS00u1 are set to manual hence no panel will appear at startup More details of the PVSS project on PC9 can be found in the implementation report e Logging on and off using your NICE account on PC9 is allowed Always log off when you are finished e No visible applications are running at logon except for the OL WatchGui program It takes care of a daily summary for statistical purposes To be ignored e To manipulate the parameters of a particular channel PC9 provide all means doing so Chapter 2 4 describes this is more detail 2 3 DIM The Distributed Information Management DIM system is used for client server communication
4. For that purpose it is located in the middle of the rack so each cable is able to reach PC10 The PCs are rack mountable and 1U high The TopMuxes are mounted by pairs of two in a 6U high panel Beneath each TopMux a gap of 1U high is maintained in order to connect the cables to the MasterMuxes in the cavern Other hardware mounted in the rack in top an Ethernet switch in the middle a 1U high retractable LCD screen with keyboard and trackball a drawer and in top at the back a KVM switch to which all PCs are connected Rack Y 28 19A1 is powered by UPS and 1s horizontally cooled by means of big fans mounted in the rear door ATLAS Barrel Alignment v1 1 Apr 2011 TopMux7 TopMux8 tee Hines j 18 A endal A i a S ll de amarar nm PEERS Me Ww TopMux5 TopMux6 System Properties System Restore Automatic Updates General Computer Name Hardware System Microsoft Windows XP Professional TopMux3 TopMux4 Version 2002 Service Pack 2 Registered to CERN 55274 640 1309071 23739 Computer Intel R Pentium R 4 CPU 3 20GHz 3 20 GHz 1 00 GB of RAM TopMux1 TopMux2 Figure 1 2 Front view rack and System Properties The manufacturer of the alignment PCs is DELL type PE750 running Windows XP 3 2 GHz 1 GB of RAM 80 GB hard disk rack mountable 1U high It does not support IPMI The system properties are shown in the lower right corner of Figure 1 2 It has one PCI slot 5 Volt
5. Its protocol requires a name server DNS running somewhere The super visor PC is used to hold the DNS In order to make communication between Rasdim and PVSS possible the following environment system variable has to be set on all PCs DIM _DNS_NODE pcatlmdtbal9 cern ch 13 ATLAS Barrel Alignment v1 1 Apr 2011 DIM provides a tool called DID to check the existence of DNS and running applications Executed on an arbitrary alignment PC a typical output is shown in Figure 2 2 DIM Diagnostics Tool v1 0 ig ES DIM Edit Data Access Windos Misc E EA E DIS _DNS SERVER_LIST Seles DIS DN 5tapecatlmdtbal9 cem ch Razsdimatapcatmdtbal3 cern ch Rasdimbiapcatmdtbalb cem ch RasdimbalpcatlmdtbalS cern ch Py5551297Mma01 D01Mm Handler pcatlmdtbal cem ch PYSS SysS3M a01 D01Mm Handler pcatlmdtbal3 cern ch P455512392 Mm a01 D01Mm Handlertapcatlmdtbal cern ch Rasdimbiapcatmdtbal8 cern ch PY SS Sysd6M antl DIMH andlertapoatmdtbals cerr ch PY SSSysd4h an DIMH andlertapoatmdtbald cern ch FRasdin pcathndtbal cern ch Rasdimdpcatmdtbald cem ch Razdimltapcatmdtball cern ch PY SSSys91 Man1 01MH andleraipeatimdtball cern ch PY SS Sys96M a017 01MH andleraipeatmdtbal8 cern ch RasdimApcatmdtbal2 cem ch 10 56 55 4M 710 byter 17 itembs ZA DIS_DNS AA Figure 2 2 DID output Inside the DIS DNS SERVER LIST the following items should be present DIS DNS pcatlmdtbal9 cern ch DNS the DIM name server RasdimX
6. 1 6 shows the control flow of the three components A typical select analyze channel command triggers the Rasdim application to perform the following steps D ae Switch the desired led and camera on Optionally any I C setting is set as well If the previous step was unsuccessful return the status to the client otherwise continue Issue the grab image command Grab the image Submit the image to the appropriate analysis module Fetch the result and send it back to the client ATLAS Barrel Alignment vl l Apr 2011 The result sent back contains the four major identifiers including their error margins Translation x with respect to the optical axis z Translation y with respect to the optical axis z Magnification of the optical system or z Rotation angle 6 between mask and optical sensor eae ae a a There are eight groups of channels eight PCs eight Rasdim servers eight PVSS projects and all of them have a one to one correspondence Table 1 4 shows these interrelations including the number of channels per group the name of the PVSS project and its PVSS distribution number 6 Rasdim6 751 ATLMDTBALO 96 8 Rasdim8 704 ATLMDTBAL8 98 9 mn f ATLMDTBAL9 9 o A _ gt Table 1 4 Server and PVSS attributes The PVSS distribution numbers are unique within the ATLAS DCS environment They are allocated by the central DCS group The system name is also unique and by its name it is possible to look a
7. E strCADPath ForceAutoLogon 0 WScript Quit 0 Script 3 1 setBALAutologon vbs 2i ATLAS Barrel Alignment vl l Apr 2011 In order to start the Rasdim server automatically the executable has to be added to the startup menu of the balign user The Visual Basic script shown in Script 3 2 takes care of this Beware of the version number of Rasdim Set oFSO WScript CreateObject Scripting FileSystemObject if oFSO FolderExists C Documents and Settings balign Start Menu Programs Startup true then if oOFSO FileExists C Documents and Settings balign Start Menu Programs Startup Rasdim64 Ink false then if oOFSO FileExists C Balign bin Rasdim64 Rasdim64 exe true then set objShell Wscript CreateObject WScript Shell set objShortcut objShell CreateShortcut C Documents and Settings balign StartWenu Programs Startup Rasdim64 Ink with objShortcut TargetPath C Balign bin Rasdim64 Rasdim64 exe Description Rasdim64 Server WorkingDirectory C Balign bin Rasdim64 IconLocation C Balign bin Rasdim64 Rasdim64 exe 0 Save end with End If End If End if Script 3 2 setBALAutostartRasdim vbs Both scripts should be executed at least once in order to ensure automatic logon of balign and start of the Rasdim server at startup 28 ATLAS Barrel Alignment vl l Apr 2011 3 3 Rasdim initialization files The Rasdim server requires two initialization files The location
8. Horizontal shuffle Vertical shuffle Force black calibration Clock divisor DIVO Clock divisor Dv Cancel shuffle modes All normal operation None video output in tristate Syne only Sync plus 1 image Fan ey 3 Qu Setup 3 Pixel counter offset T H Enable SNO Analogue Disable anti blooming Enable black reference Enable white threshold Enable binairisation Figure 2 10 IC camera settings Foam inp_BOL3A03_1 NIN x orientation _ orientation origin on ced firstcol lastcol Cirstrow lastrow Cancel OK 0 012 0 12 FIN PixelSize MaskPitch Figure 2 11 Foam analysis parameters 19 A TLAS Barrel Alignment Spot inp_BOL3A03_1 NIN axis n peaks peak width ratio peak threshold standard spot ana background subtract backgr centroid thresh new calibration unknown nin l TATE v1 1 FIN x pix Y pix xl_ cal yl_cal Ha cal ye cal dist_ccd lens dist mask lens lens focallength lens diameter light wavelength unknown fin l unknown fin z Figure 2 12 Spot analysis parameters Rasnik inp_BOL3A03_1 nchess debug level x _orientation Y orientation origin_on_ced position_of lens x Y rotations debug printout locate bands plota EW bias TAT FIN x pix Y pix x ccd y eed x cod active x mask pi
9. MNCS ita ea 29 3 4 Y A a E E A A AA 31 ATLAS Barrel Alignment vl l Apr 2011 1 General Description The optical lines also known as channels of the barrel alignment system are mounted in the ATLAS cavern mainly attached to the MDT chambers A three layer multiplex scheme TopMux MasterMux RasMux connects the channels to the eight TopMuxes located in USA15 Eight PCs equipped with a frame grabber are utilized to control the readout which in general means Select channel Grab image Analyze image Store results into database ea ee For each channel this sequence is one after the other repeated in an infinite loop The channels are split into eight groups each one controlled by its own TopMux PC combination as shown in the logical diagram of Figure 1 1 Figure 1 1 Eight PC TopMux combinations 1 1 USA15 The hardware belonging to Figure 1 1 PCs and TopMuxes is mounted in a single 19 rack Y 28 19A1 located in USA15 A physical layout of the applied hardware is shown in Figure 1 2 The drawing left is incomplete and not to scale It only shows the PCs and TopMuxes in their relative positions The photo in the upper right corner shows a part of the rack There are ten PCs Eight of them are as mentioned before used to control the TopMuxes and are known as production PCs PC9 is used as super visor monitoring the other PCs and holding the FSM part PC10 is used as spare to be used whenever one of PC 1 8 fails
10. The ATLAS Barrel Alignment Readout System Reference Guide Robert Hart NIKHEF Amsterdam Netherlands Abstract The barrel alignment system of the ATLAS muon spectrometer consists of 5812 optical lines each one built up of a camera a light source a coded mask and a lens Three layers of multiplexing are applied controlled by eight PCs each one equipped with a frame grabber which acquires the images to be analyzed The analyzed results are stored into a database for off line track reconstruction The multiplexers and frame grabber are controlled by the Rasdim server which itself is used by the PVSS SCADA system This document describes the setup of the system in USA15 and how it is used by PVSS It also contains instructions how to setup and debug the system ATLAS Barrel Alignment vl l Apr 2011 Table of Contents E HCMC FADS a oo AAA 0 C O Ons cusses e A TEAN 3 1 1 SP A AE OE DER Tey VEE ON Erte rT ons 3 1 2 CONTO iS 6 1 2 1 is AAA A EOE OPS PCRS RICO OPE ED PP 8 1 22 Analy Saera N 8 1 3 DA A A II ease te tahiti as 9 1 3 1 00100 io eR ne eee or ee ee 9 L352 COM Bo pacer mene re dio 11 1 4 A O TN 11 SS A a tas onal ead ote a 12 2A VS y A orn ERED Neer II O VRE HEE NOE oe E me ERE 12 22 o y PP en A O E E en ee ne 13 2 3 A A A E A E tenes 13 24 Channel Mapu a T T 14 25 Usine Spare POIO naonin a e 21 3 IXPPENAICSS As 26 3 1 CO 26 3 2 Auto logon and start Of RasdiNi essen AEA 21 3 3 Rasdim mitalization
11. ave a severe influence on the sequence They are shown in this panel in order to have a quick overview of them The server number CS has to match with the server number on top of the panel After abandoning the mixed channel concept the server number of the Led LS has to match as well 1 e CS LS Server Barrel Align Console Be x Channel List Server 1 Jul 12 2010 15 56 Channel ID Tye les fer CM CR fis LT LM LR bka ima ize cnt inp BOL3A01 1 13 13 inp BOL3A01 2 2 1 2 1 2 1 2 2 1 2 1 2 1 2 1 0 0 o o a aa oa 0 hI M K J sos 50 o i n o a M M 01 bJ BR RJ hd Soo 0 0 10 0 0 00 0 0 0 0 10 0 00 ss inp BOL3AD3 4 Pattern linp BOL37 New Channel Figure 2 7 Channel list Double click on the channel to be checked As a result a panel will appear as shown in Figure 2 8 NB Be aware that from now on the sequence is stopped The state as shown in Figure 2 5 and Figure 2 6 will go to OFF It will result into ALARMS and ERRORS in the ATLAS Control Room they will propagate to the central DCS desk Make sure you have notified the shifter and shift leader As soon as you exit close quit this panel within seconds the sequence will be resumed On the left upper side of the panel the main parameters of the channel are shown its name analysis type the se
12. ctl PVSSctrl num 21 RDStore2ConfDb ctl Table 2 1 Additional managers Set the start mode to manual including the already present User Interface manager m gedi The console should now look as in Figure 2 14 LL BIOS Project ATLMDTBALA El e Manager Process Monitor Waiting for commands No Process Monitor Database Manager Event Manager Control Manager f pss scripts Ist simulation Driver Distribution Manager PY Ss00dim dim_dp contig Ra User Interface m gedi User Interface m para User Interface p ROConfig iconB Control Manager num 0 ROSequer Control Manager num 21 ROstorez Control Manager f fwinstallationAge Control Manager f Scripts st User Interface p Diiin pnl zll Le bola Jeje le gt Figure 2 14 PVSS console 22 ATLAS Barrel Alignment vl l Apr 2011 LZ 13 14 15 16 Start the project and start manually the user interface manager RDConfig Its panel should look as in Figure 2 15 ision_1 Rasdim Configuration Rasdim Configuration Panel v2 fo Change Server Create Types Delete Project all ai Create Inter DPs Remove Inter DPs DimConfig iit ome DIM _ Disable Dm DIM Rasdim Save SavetoFile SavetoFile Remove Channels Channels Load f File Set Default oad from File et Defaults habias n Control Panel Modify Sequence Edit Channels Sequence Status Database ConfDb CondDb Figu
13. dent of a set of so called configuration variables All of them can be altered by means of the configuration file Rasim ini In File 3 3 the current initialization file of PC6 is shown The content of the other Rasdim ini files on the other PCs is equal except of course the value of the configuration variable LogicServer This variable defines the difference between the Rasdim servers on each PC see also Table 1 4 29 ATLAS Barrel Alignment vl l Apr 2011 RASDIM DnsHost PCATLMDTBAL9 cern ch LogicServer 6 LogD1r C Results Log Debug 1 Comport 1 GrabDelay 600 RasnikAnal Analysis240 d11 SpotAnal CalculSaclay520 dqd11 FoamAnal Foam d11 ResultDir C Results Balign ResultPrefix rd ImageDir C Results Balign Images Sav BadImageDir C Results Balign Images Bad File 3 2 Rasnik ini of PC6 A default value is assigned whenever a configuration variable is not defined in Rasdim ini file TabX shows the complete list of configuration variables together with there default value Default value DIM DNS NODE or localhost LogicServer 99 LogicDevice O TAE A Table 3 2 Rasdim configuration variables 1 1 RasnikAnal Analysis240 d11 DnsHost the name of the machine on which the DNS server is running If not set in the Rasnik ini file then the environment variable DIM DNS NODE is taken If this one is not as well the value localhost is taken LogicServer for the barrel al
14. e New Channel button is for experts only Initially the list is empty By means of the Pattern selection in which any regular expression is possible a subset of the channels is listed Make sure the input focus is set to this widget and press Enter to evaluate the pattern The default is all but it will take some time to fill the list with 707 channels Figure 2 7 shows the list of channels as a result of the pattern inp BOL3 Pressing a column header will reverse the order of the list belonging to that header The columns which are displayed are a subset but an important subset of the parameters From left to right e JD a unique number of the channel e Type analysis Rasnik 0 Spot 1 or Foam 2 e CS CT CM CR Camera address for the server TopMux MasterMux and RasMux respectively NB The CS number has to be equal to the server number on top of the panel LS LT LM LR Led address for the server TopMux MasterMux and RasMux respectively Bkg background subtracting in general set to 0 meaning not used Img number of images taken in order to get an average image In general not used set to 0 PC at least one of the parameters is used the majority of channels uses F C 16 ATLAS Barrel Alignment vl l Apr 2011 10 e Cnt the number of successive analysis within a sequence Normally set to 1 If set to 0 the channel is taken out of the sequence The Bkg Img and Cnt items seem a little exotic but could h
15. e separated into three groups Main C and Params Be careful changing any parameter 12 Main This panel entitled confusingly Mux Address is shown in Figure 2 9 It contains the most sensitive parameters in particular the Camera and Led address Also the Analysis Type should be handled with great prudence Only the real experts should consult this panel Mux Address a E mp_BOL3A03_1 Cancel OK Camera 1 Server Misc Analysis Type TopMux lg H Background C Rasnik Master 13 Himgs o gt a Rasmux 1 Counter 1 Foam Figure 2 9 Main Parameter panel 13 PC The camera contains a lot of optical settings managed by the IC electronics bus Figure 2 10 shows the possible settings 14 Param This subject denotes the parameters of the analysis and is therefore dependent on the chosen type Figure 2 11 shows the parameters of analysis type Foam Figure 2 12 of type Spot and for completeness Figure 2 13 of type Rasnik 18 ATLAS Barrel Alignment v1 1 Apr 2011 12c inp_BOL3A03_1 M p Setup 2 Pixel sample clack mode Disable pixel valid clock pin output Quality image area only C Quality central 2567256 pixels Pixel valid active during interline periods Enable free running pixel clock External pixel thresholds Setup 1 Normal Backlit l Linear mode Auto gain enable l Inhibit black calibration Enable auto exposure
16. ent vl l Apr 2011 1 3 Databases Two databases using Oracle are used for the alignment system One 1s the so called Conditions Database CondDb which is used to store the results The other is the Configuration Database ConfDb which is used to keep the setup of the channels 1 e the addresses and parameters The latter database is used to setup an entire PVSS project from scratch Modifications of the parameters are collected once a day and stored into the ConfDb in order to keep it as consistent as possible Accessing the databases is performed by the CtrIRDBAccess package a PVSS CTRL extension for relational database access 1 3 1 CondDb The CondDb has the following attributes e Database atonr_mdt_dcs e User ATLAS _MDT_DCS_W e Password classified These three attributes provide entrance to the result table with write permission The password 1s for obvious reasons encrypted The result table is called ICARASDATA and its layout is described in Table 1 5 The eight PVSS projects store their data in parallel to this project For efficiency reasons it uses bound variables and bulk storage as supported by the CtrIRDBAccess package Sequence number Server number belonging to channel 1 8 Table 1 5 ICARASDATA table Whenever the analysis module fails to analyze the image the GLOB ERROR is set to ANALYSIS 4 and the ANAL ERROR to a module specific error value Each loop handling the channels once is called a seque
17. epcatlmdtbalX cern ch Rasdim server X 1 8 2 4 Channel Manipulation Whenever an alignment expert wants to modify the parameters of a particular channel the following sequence has to be carried out On beforehand the expert needs to know to which Server PC the channel belongs l Logon the super visor PC9 using your NICE account Select and start the image viewer of the PC the channel belongs to For each server there is a separate executable They reside in C Balign bin image A shortcut on the desktop for each server might be convenient As an example Figure 2 3 shows the viewer of server 4 During normal operation the viewer shows the images of the channels at a rate of 1 Hz Startup the PVSS console Again a shortcut on the desktop might be convenient After startup the console appears as shown in Figure 2 4 14 ATLAS Barrel Alignment v1 1 Apr 2011 MRD Imaged4 v1 1 dns pcathndtbal9 cern E te amp h Or 2 OC Project ATLMDTBAL9 Bl 158 Manager Process Monitor Monitoring praject St Description No Options Process Monitor 1 Database Manager Archive Manager num U Event Manager Control Manager f pyss_scripts l Simulation Driver Distribution Manager User Interface 1 Select Manager RDsvMain User Interface User Interface p RL User Interface p ROsvCondDb User Interface p RDsvConfDb User Interface p ROsvConfig p 1 RDsWWatchdog RDsvConfDb ctl f fwinstal
18. f Rasdim C Balign bin Rasdim6 4 Make sure that the entry LogicServer is set to 4 Now Rasdim can be executed Figure 2 1 shows an example of the layout of the server Verify that the Server is set to 4 and the DNS field equals PCATLMDTBAL9 cern ch 20 Start the PVSS project After a while all managers with start mode set to always will run The PVSSOOdim manager takes care of the communication and the RDSequence manager loops through all its channels and takes care of storing the results into the database 21 Restart the PVSS project on the super visor PC9 so the complete status of the barrel alignment can be determined again by re connecting PC9 with ATLMDTBALx 22 Leave PC10 as it is Do not logoff or disconnect The procedure is finished now but not entirely PVSS does not run as service and when rebooting the complete system Rasdim and PVSS will not be re started The implementation chapter contains a section how to modify an alignment PC in order to restart it without human interaction NB Remember that the procedure described above has never been tested Omissions and obscurities may be present 25 ATLAS Barrel Alignment vl l Apr 2011 3 Appendices 3 1 ConfDb Access The following SQL queries are possible Get the channel list of server X 1 8 SELECT EROM TABLE atlas cont mdt align yr gen channel tor camsry XxX Get the values of the parameters of a particular channel SELECT FROM TABLE a
19. h the Rasdim server is started This is implemented by two Visual Basic scripts As a consequence balign is always logged on leaving the console screen active It is highly discouraged to logon remotely on one of the production PCs If it is unavoidable then logon using the local account and when finished do NOT log off or disconnect Instead execute the following command line tscon DEST sconsole 0 A On the desktop a shortcut is available executing the command Redirect To Thus please be careful logging on one of the production PCs Modifying the parameters of certain channels is also possible on the super visor PC9 Chapter 2 4 The only visible application running is the Rasdim server and an example is shown in Figure 2 1 It is allowed and even recommended to minimize the server The Rasdim server is explained in more detail in the implementation section 12 ATLAS Barrel Alignment vl l ao Rasdim v6 4 Server 2 2 2 Super visor PC Framegrabber DT3162 1 106 20 pra BOS6A06 106 20 pra BOS6A06_BOS5406 106 20 pra _BOS6A08 106 20 pra BOS6408 106 20 pro BOL1A05 106 20 pro BOL1A0O5 106 20 pro BOL1A07_BIL1407 106 20 pro BOL2A405 106 20 pro BOL2A405 ANC IN mm DATIN DTTIANT OT roic J Device 0 DIM DNS Server PCATLMDTBALS cern 2 Grabber Board Device DT3162 1 0 Mux Pott Version COM1 YMD 05 08
20. he camera also known as the I C settings and the parameters for the analysis As mentioned earlier the access is completely performed by built in SQL functions For instance to get the total list of channels of server_X 1 8 the following command needs to be executed SELECT FROM TABLE atlas_conf_mdt align_r get_channel_for_camsrv X A complete list of possible queries is given in appendix 3 1 1 4 FSM The barrel alignment system is fully integrated into the ATLAS FSM control tree and it is part of the MDT leaf which itself resides under the MUON leaf Alignment is in general passive 1 e no commands are implemented and only its status is relevant The FSM structure for the barrel alignment is shown in Figure 1 7 It is split into two main parts barrel side A and side C complying with the general partitioning scheme of ATLAS Each of them has four DUs Device Units which are actually the running PVSS projects on the alignment PCs PC 1 4 have only channels on side A PC 5 8 only channels on side C On PC9 the supervisory computer a dedicated Watchdog PVSS manager is running determining the state and status of the DUs and CUs Control Unit above based on for instance the average amount of analysis errors the ability to write to the database etc Poa poz pes Pca pos pos pc 7 pos Figure 1 7 Barrel Alignment Hierarchy 11 ATLAS Barrel Alignment vl l Apr 2011 2 User Manual Three types of use
21. ignment readout system only values 1 lt x lt 8 are possible LogicDevice only used when more than one frame grabbers are installed LogDir the folder in which Rasdim puts its logging files Comport the serial port number to which the TopMux is connected Baudrate the communication speed on the serial link to the TopMux default 115 2 kBits s RasnikAnal the analysis module for type Rasnik 0 SpotAnal the analysis module for type Spot 1 FoamAnal the analysis module for type Foam 2 ResultDir the folder in which Rasdim places the result files ResultPrefix the result files are prefixed by this variable ImageDir the folder in which the analysed images are stored only if auxiliary command AUX SAVE IMAGE is set BadImageDir the folder in which an image is store if the analysis failed only if the auxiliary command AUX DONT SAVE BADIMAGE is not set 30 ATLAS Barrel Alignment vl l Apr 2011 3 4 Quick Facts Channels Rasnik Spot Total Image size pixels 114464 USA15 PCs DELL PE750 3 2 GHz 1 GB RAM rack mountable 1U 80 GB harddisk KVM switch DELL 2161DS Frame grabber Data Translation DT3162 Driver version 1 1 2 3 Table 3 3 Quick facts 31
22. itch DT3162 Figure 1 4 PC TopMux connection diagram All cables are labeled at both ends indicating to which alignment PC they belong 1 e PC1 10 The labels of the cables connecting the MasterMuxes are listed in Table 1 1 for barrel side A and Table 1 2 for side C The names designate the region section of the connected MasterMux ATLAS Barrel Alignment vl l Apr 2011 6 BO_A03 04 BO_A07 08 BO_Allb 12__ BO Alda 15_16 8ine o ne tre tte Table 1 1 TopMux labels A side 6 BO Cl4a 15 16 BO_C11b 12_ BO _C07 08 BO_C03 04 8jmeo pre te fe Table 1 2 TopMux labels C side The FQN names of the alignment PCs are listed in Table 1 3 6 peatimdtbal6 cern ch 8 peatimdtbal8 cern ch o peatimdtbal9 cern ch Table 1 3 PC vs FON 1 2 Controls Two types of coded masks are applied the Rasnik type and the Spot type hence for each one a distinct analysis module is available as dynamic link library The Rasnik type has a chessboard pattern with encoded edges the Spot type has a mask with four holes Figure 1 5 shows an example of the two types Around 90 of the ATLAS channels are of type Rasnik the remaining 10 of type Spot ATLAS Barrel Alignment v1 1 Apr 2011 E E Y 5 NE 7 TO E Figure 1 5 Rasnik and Spot mask Before an image can be taken the chosen optical line or channel has to be activated by selecting its light source its optical sensor a camera wi
23. lationA tl Man 8 User Interface po Figure 2 4 Start of RDsvMain panel 4 Select the user interface manager RDsvMain Start it by pressing the green push button the Start Manager button turns green when you select a manager After a moment a panel will appear as shown in Figure 2 5 It is a summary and status overview of the eight servers 5 Double click on the Server PC the channel belongs to 15 ATLAS Barrel Alignment v1 1 Apr 2011 Barrel Alignment Status Overview Jul 12 2010 14 48 Sev caca vaso segur mees cmamer 7 1 34406 ard inp EMS51104 35193 317 inp BOL1A0 305607 GO jaxi BIL6A09 BILS5S4A09 HW 342140 164 ccce EMS1116 EML1401 31700 69 jaxi BMLSC15 EMLE C15 RO EELE 296 inp BMLSCOo 3 140532 150 jcec BOs CcO0b6 BOLICOS 34696 234 inp BMLSCO1 1 Close Figure 2 5 RDsvMain panel 6 The main server panel shown in Figure 2 6 will appear As an example server 1 is used The special sequence buttons Control and Modify should not be used they are for experts only The number of channels of server 1 1s 707 and the state is ON indicating the sequence is running In order to specify a specific channel press the Edit Channels button Rasdim Server Control Of x Rasdim Server Panel Server 1 Special Sequence Channels FOF State ON Control Edit Channels Modify Figure 2 6 Main Server panel 7 The channel list is displayed in Figure 2 7 Th
24. ltDomainName AutoAdminLogon ForceAutoLogon 0 Table 3 1 Auto logon parameters The password is for obvious reasons not shown The regedit application browser may be used to check set these settings The location of these variables inside the registry 1s HKEY LOCAL MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon A Visual Basic program shown in Script 3 1 sets the necessary parameters automatically Dim strUser strP W strUser balign StrPW eee isis 1 Dim objShell objFSO Set objShell WScript CreateObject WScript Shell Set objFSO CreateObject Scripting FileSystemObject Const HKEY LOCAL MACHINE amp H80000002 Dim strComputer objRegistry strKeyName un strComputer Set objRegistry GetObject winmgmts impersonationLevel impersonate amp strComputer amp root default StdRegProv Set fs WScript CreateObject WScript Network computerName fs ComputerName Dim intRet strCADPath SOFTWARE Microsoft Windows NT CurrentVersion Winlogon intRet obj Registry SetStringValue HKEY LOCAL MACHINE strCADPath DefaultUserName strUser intRet ob Registry SetStringValue HKEY LOCAL MACHINE strCADPath DefaultPassword strPW intRet ob Registry SetStringValue HKEY LOCAL MACHINE strCADPath DefaultDomainName computerName intRet ob Registry SetStringValue HKEY LOCAL MACHINE strCADPath AutoAdminLogon 1 intRet ob Registry SetStringValue HKEY LOCAL MACHIN
25. nce hence the SEQ NR variable It denotes the set of channels belonging to the sequence After each loop it 1s incremented by one The GLOB ERR variable is the result of the measurement analysis Several errors are possible and could originate from different sources The Rasdim server is one of them and the most important one But also the client in our case PVSS or the analysis module may set it Table 1 6 shows the list of possible errors and their meaning Common runtime errors are MUX and ANALYSIS errors Errors of type GRABBER NOSERVER and TIMEOUT are more serious because they indicate either a communication problem or crash of the Rasdim server In that case 1t will dominate the entire sequence with this error value The other error types are very rare or never occurred at all ATLAS Barrel Alignment vl l Apr 2011 OKAY OT Okay ss WRONGSERVER 6 Rasdim Server address of camera this server ____ NOSERVER 8 PVSS__ Rasdimnotrunning o TIMEOUT 9 PVSS Naanswerfrom Rasdim within timeout Unknown none above Table 1 6 Global errors For statistical purposes another table 1s maintained It is called ALIGN_STAT and is updated by after each sequence The layout is shown in Table 1 7 The meaning of the columns is trivial It contains a summary of the last sequence like start of sequence end of sequence number of handled channels number of errors and specified for each type of error Table 1 6 Server number
26. of them is the same as where the Rasdim executable resides C Balign bin Rasdim64 One is used to setup the frame grabber and is called synchr2 ccf and shown in File 3 2 The content of this file is more or less sacred Do not change any value Especially the variables indicating the width 392 and height 292 are very important Also the variable PixelClockSource is for the alignment system vital If not set to 2 indicating an external clock source 1s applied the Rasnik system will not work But the other values should not be altered as well A lot of them are interrelated y Data Translation Inc Control Config File v1 0 0 0 292 392 HLG DIS 1627 147 48 44 52 synchronous read out 2 AcquireType ActiveLUT ActiveLineCount ActivePixelCount AuthorName BoardType Brightness ClampEnd ClampStart Contrast Description ExposeEnabled ExposePolarity ExposeStartLine ExposeStopLine FirstActiveLine FirstActivePixel HSyncInPolarity HSyncOut PulseWidth Input LineEventMask LineFrequency OverlayBitmapFile OverlayColorKey OverlayEnabled PixelClockSource RoiHeight RoiLeft RoiTop RoiWidth StrobeEnabled StrobePolarity StrobeStartLine StrobeStopLine Ssyncinsource SyncOutEnabled SyncOutPolarity Timeout TotalLinesPerFrame TotalPixelsPerLine TriggerTransition TriggerType VSyncDelay VSyncInPolarity VSyncOutPulseWidth VideoInputSource File 3 1 synchr2 ccf The behavior of the Rasdim server is depen
27. oject s configuration file verify that the general part of the config file has a layout as shown in Script 2 1 and that in both the ctrl as ui part the line Ctr1DLL CtrlRDBAccess is included If not adjust it by hand respecting the order by which the proj paths are placed Besides the system configuration file of PVSS there is also a user configuration file for the project itself It is called RDconfig ini and resides in the config area as well Take a copy from another project and place it inside this area 21 ATLAS Barrel Alignment v1 1 Apr 2011 general pvss path C ETM PVSS2 3 8 proj path atlas storage det dcs DCS fwiInstallation fwinstallation proj path atlas storage det dcs DCS PVSSProjects ATLAS DCS MDT proj path atlas storage det dcs DCS PVSSProjects ATLAS DCS MDT ATLMDTBAL proj path atlas storage det dcs DCS PVSSProjects ATLAS DCS MDT SW_ EXTRAS proj path C pvss fwComponents ATLMDTBALx proj path C pvss ATLMDTBALx aa CEFIDLG CtrlRDBAccess Petal CEr i Dink CtrlRDBAccess Script 2 1 PVSS config file 10 From now on PC Server 4 is taken as example for the remainder of the procedure thus x 4 11 Open the PVSS console and select project ATLMDTBAL4 Delete the six archive managers and add the following managers Table 2 1 PVSSOOdim dim dp config Rasdim User Interface User Interface p RDConfig iconBar menuBar PVSSctrl num 20 RDSequence
28. rame grabber and serial port COM1 cable from PCx and connect them to PC10 Reboot PC10 and logon using the local account balign Check the connectivity by means of the mmm and fgTest application Both executables are found as shortcut on the desktop Start with the mmm application and try to connect both the camera and light source to TopMux 1 MasterMux 1 and RasMux 1 On all servers there should be a existing channel behind this base address The fgTest application should now show an image If not check the cables and or reboot On success please continue but do not forget to exit the two applications The panels and scripts of the PVSS projects are kept and maintained at one place and made available offline Therefore it is necessary to map the following network drive if not done already L atlas storage set dcs Create a distributed PVSS project using the PVSS project Administration utility with the following settings take the default for the other settings e Project name ATLMDTBALx e Path C pvss e System number 90 x e System name ATLMDTBALx Make sure that the folders C pvss as well as the folder C pvss ATLMDTBALX are shared Install the JCOP framework following the instructions found in https edms cern ch file 1055675 4 0 0 fwReadme txt and install the following components e fwAtlas e fwAtlasInstallation e fwDIM The result has to be placed into the component folder C pvss fwComponents ATLMDTBALxX The pr
29. re 2 15 Initial configuration panel Two of the tiny square status indicators are initially green okay The DimConf ig one indicates that the DIM component of the framework is installed correctly If not go back to step 7 of the procedure By default the server number is set to 1 In our case it should be set to 4 and it has to be the first action to perform using the spin widget and pressing the Change Server button To finish the basic setup press the following buttons one by one in the following order wait until the corresponding indicator turns green before you continue e Create Types e Create Inter DPs o Init DIM The PVSS Rasdim project is now initialized The datapoint types are defined the internal communication datapoints are created and the connection to DIM is established All status indicators should be green and the buttons of the lower part enabled as shown in Figure 2 16 The only part missing are the channel datapoints Select the ConfDb button at the lower part of the configuration panel A panel will appear as shown in Figure 2 17 23 A TLAS Barrel Alignment vl l Apr 2011 xl ision_1 Rasdim Configuration D Rasdim Configuration Panel v2 a Server 4 H Change Server Create Types Delete Project Types O Create Inter DPs Remove Inter DPs o DimConfig D Init DIM Disable DIM Rasdim oO Save to File Remove Channels Load from File Set Defaults Channels 0 Control Panel
30. rs can be distinguished 1 DCS experts able to logon all PCs and do whatever is necessary 2 Alignment experts able to log on PC9 only adjusting the parameters of the channels 3 Shifters and other users not allowed to logon at any PC The entire readout system PCs PVSS projects Rasdim servers etc is completely automated 1 e at startup no human intervention is needed 2 1 Production PCs The productions PCs PCATLMDTBAL 1 8 have two major components 1 Rasdim The server handling the multiplexor the frame grabber and analysis 2 PVSS the client sending commands to its Rasdim server gathering the data and storing it into the database CondDb The PVSS projects are started as service hence the managers run as user SYSTEM All PVVSS GUIs PVSS00u1 are set to manual hence no panel will appear at startup If necessary the PVSS console may be opened and closed for debugging purposes only and by experts only For more details see the implementation report The Rasdim server is started differently The driver of the DT3162 frame grabber is written in compliance with the Windows Driver Model WDM which implies the Rasdim server cannot be started remotely e g not via remote desktop nor as a service In that case the grabbing of the images fails due to a timeout E_GRABBER 3 because somehow the video signal is virtually not there For this reason a local account is created balign which is logged on at startup after whic
31. rver and the addresses of the Camera and Led The result of the last analysis is shown in the middle table At the bottom a message window shows some information if any on the actions taken The real action commands are grouped into three sets Edit Cmd and Grabbing Grabbing to be used whenever there is serious doubt on the optical connection to the channel Pressing the Start button triggers the Rasdim server to take images as fast as possible A picture as shown in Figure 2 3 should be seen The Stop button terminates the grabbing Another possibility is to reset the TopMux by means of the Reset Mux button Cmd Basic functionality of the Rasdim server The View button is permanently disabled It was used to set the camera into continuous acquire mode real time video but it caused sometimes bad behavior of the Rasdim server The Grab amp Save button performs a single acquire grabbing an image and saves it as a TIF file Finally the Analyze button does the same but instead of saving the image it analyses it The result will appear in the middle table 17 ATLAS Barrel Alignment v1 1 Apr 2011 Channel Jof x inp_BOL3A03_1 ChanlD 1367 Type foam Server 1 0 9977 2010 09 01 11 16 34 0 91 710 26 5042 mm Y 6 5042 mm Y 51 2055 mm MAG 51 2085 mm MAG axi BIS3A02 BIS2A02 H axi BIS3A02 BIS2A02 HV Figure 2 8 Channel panel 11 Edit The parameters of a channel ar
32. t the datapoints of other PVSS projects Whenever PC10 has to take over PC 1 8 it should have a PVSS project with the distribution number of the one that failed It should also take over the corresponding Rasdim server The addresses of the light source and camera have the same layout and consist of four items l Server 1 8 2 TopMux 1 8 3 MasterMux 1 16 4 RasMux 1 8 1 2 1 Mixed Channels The addresses of the light source and camera are completely independent Only one aspect is mandatory they should have the same server number hence they are selected controlled by the same PC TopMux combination In the original setup 1t was possible to have mixed channels 1 e the light source and camera were behind a different PC TopMux combination It made the system complex and slow The only benefit was a simpler cabling scheme The concept of mixed channels 1s abandoned 1 2 2 Analysis The Rasdim server supports three analysis modules l RASNIK 0 the original analysis module for Rasnik masks Written in Visual Fortran slow not free of bugs but still available because sometimes 1t analyses pictures where others fail Currently not used anymore 2 SPOT 1 the analysis for the Spot masks Written in C 3 FOAM 2 at the moment the de facto analysis module for Rasnik masks It consists of a C and Pascal part and is compared to Rasnik very fast Its name is an acronym of FOurier Analysis Method ATLAS Barrel Alignm
33. tch Y mask pitch lens focallength lens diameter light wavelength dist mask lens 2463 dist ced lens 2463 dist mask ccd 4926 Figure 2 13 Rasnik analysis parameters 20 Apr 201 l ATLAS Barrel Alignment vl l Apr 2011 2 5 Using Spare PC10 Spare PC10 pcatlmdtball0 is meant to take over the functionality of a production PC 1 8 in case of a malfunction This chapter describes the steps necessary to do so Remember that up to now it never has been performed or tested yet Hence flaws and omissions inside the procedure may be present The following prerequisites for the person taking care of this action are assumed to be present and valid Access rights to enter USA15 Knowledge of PVSS 1 e knowing how to create start a PVSS project and add start a manager Knowledge of the JCOP framework knowing how to utilize and add components The latest version of PVSS should be installed 3 8 SP1 or higher together with a valid indefinite license The latest version of Rasdim 6 4 or higher should be present as well including the latest versions of the different analysis modules It is assumed PC10 is maintained well 1 e the latest patches and updates are installed The next steps have to be carried out in case PCx 1 lt x lt 8 fails and has to be taken over by PC1O It means that PC10 has to be connected to the hardware of server x and should run the same PVSS project l J Disconnect the f
34. thout lens and optionally by means of the I C bus some settings like gain and exposure time When done the frame grabber 1s connected to the channel To control and use the TopMux and frame grabber three components are applied Rasdim This application or server controls the TopMux and frame grabber It is developed using Visual C At startup it initializes the frame grabber and resets the TopMux After a successful initialization it waits for commands from any client It should be clear that the Rasdim server controls only the TopMux and frame grabber of the PC it is running on PVVS A commercial SCADA product holding the channel parameters The basic data container of a variable is called a datapoint which could be everything from being a simple type integer float etc or a complex type like an array structure or reference to another datapoint Its main task is to issue the select analyze commands to the Rasdim server the channel belongs to Eight PVSS projects are defined for each group of channels one The project runs on the PC TopMux combination it belongs to DIM A lightweight client server communication protocol providing easy communication between PVSS or any other client and Rasdim It requires that somewhere the dynamic name server dns is running For that purpose PC9 super visor is used Analyse channel Result 3 a 6 result 4 image Analyse Figure 1 6 Rasdim control flow Figure
35. tlas_conf_mdt align_r get_values_of_channel channel Remove invalidate a particular channel CALL atlas_conf_mdt align_w invalidate_channel channel Create a new channel CALL atlas_conf_mdt align_w create_new_channel channel Set a parameter of a particular channel CALL atlas_conf_mdt align_w set_param_of_channel channel parameter value Valid parameters are analtype antiblooming autogain background binairisation blackreference cammas camras camsrv camtop chanid coarse counter divO divl enableauto enablesno fin0 finl finl0 finl 1 fin12 fin13 finl4 fin15 finl6 fin17 finl8 finl9 fin2 fin20 fin2 1 fin22 fin23 fin24 fin25 fin26 fin27 fin28 fin29 fin3 fin30 fin3 1 fin4 fin5 fin6 fin7 fing fin9 fine forceblack gain horshuffle inhibitblack ledmas ledras ledsrv ledtop linearmode lower nimgs nin0 ninl nin10 ninl1 nin12 nin13 ninl4 nin15 26 nin9 normalbacklit pixelmode pixeloffset pixthreshold rAnalog rCoarse rFine rGain rLower rSetup rSetup2 rSetup3 rUpper readmode shufflemode upper vershuffle whitethreshold ATLAS Barrel Alignment vl l Apr 2011 3 2 Auto logon and start of Rasdim At startup of a production PC the user balign has to be automatically logged on and the Rasdim server started Inside the registry the following parameters have to be set DefaultUserName DefaultPassword Defau
36. which is used for the frame grabber and it has an Ethernet connection The keyboard mouse and VGA output of the ten PCs are connected to the KVM switch which itself is connected to the retractable video screen with keyboard and trackball As frame grabber the DT3162 of Data Translation is used It is a monochrome frame grabber for the PCI bus PC 1 8 and the spare PC10 are equipped with one occupying the single PCI slot PC9 is not equipped with a frame grabber Version 1 1 2 3 of the frame grabber s driver is installed ATLAS Barrel Alignment v1 1 Apr 2011 The TopMuxes are mounted in pairs on a single 6U high frame All connectors are at the front side Eight connectors are used to be connected to the MasterMuxes Only outlets 1 to 6 are used Outlets 7 and 8 are not used yet and may also be used to be connected to a RasMux Normally the outlets can be connected to MasterMuxes only However if the jumper at the front is set to RasMux then outlet 7 and 8 may be connected to a RasMux as well Look at Figure 1 3 for details Other important connectors are the power COM port and frame grabber The power of a TopMux 24 Volt dc is delivered by a simple power converter which itself 1s powered by UPS too The COM port of the alignment PCs 1s used to control the TopMux Figure 1 4 shows the connection diagram of a typical alignment PC yr A eae a5 ES E ES a ae Figure 1 3 TopMux front view 220 V UPS KVM sw
Download Pdf Manuals
Related Search
Related Contents
PS300B - Hoefer Inc A-to-Z MODE D` EMPLOI - Bibliothèque Interuniversitaire de la Model 855 Dual Spectroscopy Amplifier Operating and Samsung VC-RL62W User Manual Descargar manual de instalación y mantenimiento Kenroy Home 91578CH Instructions / Assembly HGST Travelstar IDK 1.5TB 2010 Kenworth T440/T470 Body Builder Manual Copyright © All rights reserved.
Failed to retrieve file