Home
Barrel Alignment - Reference Guide (v1.2)
Contents
1. 12C inp_BOL3A03_1 Cancel OK FT p Setup 2 lv Gain Pixel sample clock mode Shuffle modes ei Disable pixel valid clock pin output All normal operation ca Quality image area only None video output in tristate ca C Quality central 2567256 pixels A Ei RU La 8 L C Pixel valid active during interline periods e RA pee eee Cc 16 C Enable free running pixel clock co C Q3 I External pixel thresholds C Q4 iv Setup 1 M r Setup 3 m Misc F Normal Backlit Pixel counter offset jo V Coarse 250 F Linear mode I Enable SNO F I Auto gain enable Fine a 4 F Inhibit black calibration I Enable auto exposure Analogue Lower a T Horizontal shuffle I Disable anti blooming I Vertical shuffle F Enable black reference F Upper fa FlFerce blackleallbration F Enable white threshold IF Clock divisor DIVO IF Clock divisor DIVI F Enable binairisation Figure 2 10 IC camera settings Foam inp_BOL3A03_1 Cancel OK origin_on_ccd firstcol lastcol firstrow ojojojojo lastrow NIN FIN x_orientation 0 PixelSize 0 012 y_orientation MaskPitch 0 12 Figure 2 11 Foam analysis parameters 19 ATLAS Barrel Alignment v1 2 May 2011 Spot inp_BOL3A03_1 axis n_peaks peak_ width ratio peak threshold background subtract backgr centroid thresh new calibration unknown nin l stan
2. 11 ATLAS Barrel Alignment v1 2 May 2011 2 User Manual Three types of users 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 i 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 PVSSOQui 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 Fo
3. Start 2C Grab amp Save Stop Param Analyze Reset Mux Time Result Anal xX Scale RotZ 2010 09 01 11 16 34 0 0 45 818 91 710 0 9977 0 0048 axi_BIS3A02_BIS2A02_HV axi_BIS3A02_BIS2A02_HV Foam X 26 5042 mm Y 51 2085 mm MAG Foam X 26 5042 mm Y 651 2085 mm MAG Figure 2 8 Channel panel 11 Edit The parameters of a channel are separated into three groups Main PC 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 inp_BOL3A03_1 Cancel OK Camera Led paner 1 E 1 El Misc Analysis Type TopMux 6 6 Background M ERCIS C Rasnik Master 13 13 Nimgs D C Spot Rasmux 1 1 Counter 1 Foam Figure 2 9 Main Parameter panel 13 FC The camera contains a lot of optical settings managed by the FC 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 2 May 2011
4. when no real configuration database ConfDb existed and designers wanted to keep track of the changes applied to the parameters The manager is in hibernation for almost the entire day but each night around 02 00 a m it becomes active and stores for each channel its parameters i e the camera and light source addresses the PC parameters and analysis parameters into a file one line per channel These files can be found in the data folder of the PVSS project and have the following format Balx yymmdd hhmmss cfg with x the server yymmdd as date and hhmmss as time Since the introduction of a real ConfDb the purpose of this manager is redundant However its overhead is minimal and its use could be useful whenever the ConfDb is not available In case a PVSS project has to be built up from scratch including the creation of the channel datapoints and setting the parameters there are two ways to do so First by means of the ConfDb and second by means of the latest saved configuration file generated by this manager 3 3 RDsvWatchdog The RDsvWatchdog control manager running on the super visor only i e PC9 with logical number 81 determines the states of the barrel alignment FSM In order to do so it has to be able to read the datapoints of the remote PVSS projects of the production PCs For that purpose the following lines are added to its config file dist distPeer pcatlmdtbal1 cern ch 91 distPeer pcatlmdt
5. 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 1 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 it was possible to have mixed channels i 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 is abandoned 1 2 2 Analysis The Rasdim server supports three analysis modules 1 RASNIK 0 the original analysis module for Rasnik masks Written in Visual Fortran slow not free of bugs but still available because sometimes it 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 Alignment v1 2 May 2011 1 3 Databases Two databases using Oracle are u
6. 3 3 RD Statistics Be x RD Statistics Server 3 Total Current Analyzed 31336 Pointer 315 Errors 323 Errors Poe Rejected o Fraction po azo IlICmd IN Mux 83 Grabber Posa Analysis 146 Output Poo o WrongServer o IlBkGrnd o NoServer Poo o Timeout 44 Internal 0 Unknown o Close Figure 3 3 RD Statistics panel The Current group of parameters is related to the error rate of the last 500 analyses The fraction number is used to determine the state and status for the FSM The number of Errors should not be confused with the cfault parameter of Figure 3 2 The first is the number of errors of the last 500 analyses the latter the number of errors of the current sequence The Total group shows the daily statistic parameters since the last Saclay sequence i e the total number of analyzed channels the number of errors and separated by type since around midnight At the end of the Saclay sequence these parameters are reset to zero NB Keep in mind that there are two sets of statistic variables one per sequence and one per day 28 ATLAS Barrel Alignment v1 2 May 2011 3 2 RDStore2ConfDb The RDStore2ConfDb control manager running on all production PCs with logical number 21 is a more or less obsolete manager Despite its name it does not store the channel parameters to a real database but to a file It was developed during the installation of the alignment system
7. C07 08 BO C03 04 7 nc nc nc nc 8 nc nc nc nc The Full Qualified Names FQN of the alignment PCs are listed in Table 1 3 Table 1 2 TopMux labels C side PC FQN 1 peatimdtball cern ch 2 pcatlmdtbal2 cern ch 3 pcatlmdtbal3 cern ch 4 pcatlmdtbal4 cern ch 5 pcatlmdtbal5 cern ch 6 pcatlmdtbal6 cern ch 7 peatimdtbal7 cern ch 8 pcatlmdtbal8 cern ch 9 pcatlmdtbal9 cern ch 10 pcatlmdtbal10 cern ch Table 1 3 PC vs FQN 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 2 May 2011 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 without lens and optionally by means of the IFC bus some settings like gain and exposure time When done the frame grabber is 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
8. 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 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 is horizontally cooled by means of big fans mounted in the rear door ATLAS Barrel Alignment v1 2 May 2011 TopMux7 TopMux8 TopMux5 TopMux6 TopMux3 TopMux4 TopMux1 TopMux2 System Properties System Restore ll Automatic Updates Jl General Computer Name Hardware Advanced System Microsoft Windows XP Professional Version 2002 Service Pack 2 Registered to NICE CERN 55274 640 1309071 23739 Computer Intel R Pentium R 4 CPU 3 20GHz 3 20 GHz 1 00 GB of RAM 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 mounta
9. 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 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 ATLAS Barrel Alignment v1 2 May 2011 Yision_1 Rasdim Configuration Inl Rasdim Configuration Panel v2 SUN xl Server 4 Change Server Create Types Delete Project Types a Create Inter DPs Remove Inter DPs Inter Dps E DimConfig O Init DIM Disable DIM Rasdim m Save to File Remove Channels Load from File Set Defaults a 0 Control Panel Modify Sequence Edit Channels Sequence Status Database ConfDb CondDb Figure 2 16 Configuration panel 2 Eli Rasdim ConfDb Panel Server 4 Dbase ATONR CONF User ATLAS CONF MDT W Pwd AdmXADSIYUO Number of channels in ConfDb Channels PVSS ConfDb ConfDb PVSS 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 ConfDb and ConfDb 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
10. 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 i 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 PCI0 It means that PC10 has to be connected to the hardware of server x and should run the same PVSS project l 3 Disconnect the frame 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 setting
11. 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 1t without human interaction NB Remember that the procedure described above has never been tested Omissions and obscurities may be present 25 ATLAS Barrel Alignment v1 2 May 2011 3 Operational Aspects During normal operation 1 e the production PCs are up and running and the super visor PC checks the states a small set of PVSS managers takes care of the functionality of the alignment readout system The following chapters describe the operational aspects and the managers in more detail 3 1 RDSequence The RDSequence manager running on all production PCs with logical number 20 is the beating heart of the system which sets everything into motion It makes a list of all channels and handles them one after another in an infinite loop After completion the list is handled again A complete loop through the list is called a sequence The behavior of the manager is completely determined by a set of datapoints The important ones are e state bool the run state of the sequence e seqnr unsigned the current sequence number e npos unsigned the index pointer inside the channel list Figure 3 1 shows a simplified flowchart of the RDSequence manager RunState true Create Channel lis
12. 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 e 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 35 ATLAS Barrel Alignment v1 2 May 2011 4 4 Quick Facts Channels Rasnik 5296 Spot SS Total 5812 Image size pixels Width 392 Height 292 Size 114464 USA15 Rack zo eo AL 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 TopMux Firmware version YMD 05 08 30 Table 4 3 Quick facts 36
13. the connection diagram of a typical alignment PC y ym m oe orn a pp eee oe ee ae ha DAA LERLE DADA Y Figure 13 TopMux front view 220 V UPS ethernet TopMux n KVM switch DT3162 Figure 1 4 PC TopMux connection diagram key board 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 v1 2 May 2011 Nr TopMux1 TopMux2 TopMux3 TopMux4 1 BI A01 02 BI A05 06 BI A09 10 1la BI A13 14 15a 2 BI A03 04 BI A07 08 BI Al1b 12 BI A15b 16 3 BM REF A01 02 BM REF_A05 06 BM REF A09 10 BM REF_A13 14 4 BM REF_A03 04 BM REF A07 08 BM REF_A11 12 BM REF Al5 16 5 BO AO01 02 BO A05 06 BO A09 10 1la BO Al3 14b 6 BO A03 04 BO_A07 08 BO Al1b 12 BO Al4a 15 16 7 ne nc nc nc 8 nc nc nc nc Table 1 1 TopMux labels A side Nr TopMux5 TopMux6 TopMux7 TopMux8 1 BI C13 14 15a BI C09 10 1la BI C05 06 BI C01 02 2 BI C15b 16 BI C11b 12 BI C07 08 BI C03 04 3 BM REF C13 14 BM REF C09 10 BM REF C05 06 BM REF C01 02 4 BM REF_C15 16 BM REF_C11 12 BM REF C07 08 BM REF C03 04 5 BO CI13 14b BO C09 10 1la BO C05 06 BO C01 02 6 BO Cl4a 15 16 BO CI1b 12 BO
14. the last 500 analyses During a sequence the number of errors and types of errors is kept up At the end of a sequence these data is gathered and stored into the CondDb see also Table 1 7 The total number of errors per day is also maintained The state datapoint denotes the run state of the sequence It could be set false from within inside certain panels could do so or more likely from outside the super visor in particular Especially when a user wants to modify some channel parameters the state variable is set to false The first action to do is to switch off the TopMux preventing a possible long time powering of the last selected camera and light source During the setup of the barrel alignment system this happened almost every day A safety mechanism not shown in the flowchart is built in in order to avoid endless suspension of the sequence A datapoint called startHour contains the hour in which the sequence will be resumed By default its value is set to 18 which means that the sequence restarts at 06 00 pm It is allowed however to set the value to for instance 25 In that case the mechanism will not work and the sequence is stopped during the lifetime of RDSequence manager Restarting the manager itself will always resume the sequence The first action it does is setting its run state to true The first sequence after midnight is the so called Saclay sequence This sequence is a normal sequence but with the following additions the
15. 00 lL l lila la jejeje Figure 2 14 PVSS console 22 ATLAS Barrel Alignment v1 2 May 2011 12 Start the project and start manually the user interface manager RDConfig Its panel should look as in Figure 2 15 Yision 1 Rasdim Configuration 10 Rasdim Configuration Panel v2 o xi Server 0 3 Change Server Create Types Delete Project Types E Create Inter DPs Remove Inter DPs Inter Dps a DimConfig E Init DIM Disable DIM Rasdim o Save to File Remove Channels Load fi File Set Default oad from File et Defaults Chancho Control Panel Modify Sequence Edit Channels Sequence Status Database ConfDb CondDb Figure 2 15 Initial configuration panel 13 Two of the tiny square status indicators are initially green okay The DimConfig 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 14 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 e Init DIM 15 The PVSS Rasdim project is now initialized The datapoint types are defined the internal communication datapoints are created and the
16. Figure 2 2 DID output Inside the DIS DNS SERVER LIST the following items should be present DIS DNSGpcatlmdtbal9 cern ch DNS the DIM name server RasdimXGpcatlmdtbalX 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 1 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 2 May 2011 1 Select Manager RDsvMain MI RD_Image4 v1 1 dns pcatlmdtbal9 cern E X 45 94 Y 45 98 Scale 1 0003 RotZ Figure 2 3 Image viewer of Server 4 van Or 2 00 m Project vomas BS Manager Process Monitor Monitoring project 2 Process Monitor Database Manager D 0 Archive Manager D Event Manager D 1 1 1 1 num O Control Ma
17. 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 PVSS Analyse channel Figure 1 6 Rasdim control flow Figure 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 upo lon Switch the desired led and camera on Optionally any PC setting is set as well If the previous step was unsuccessful return the status to the client otherwise continue Is
18. 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 USAI5 and how it is used by PVSS It also contains instructions how to setup and debug the system ATLAS Barrel Alignment v1 2 May 2011 Contents l GENETALIDESONPHON SS A don eee KL et 3 II DSAIDO AN UL NUU ii 3 127 Ca skm so a td de o re sko ka 6 EJE A las aj 8 AZ INMAN SIS nk A so oa o kas eno 8 Lo Databases ieia ia 9 LeBel CondDD viii dic 9 A ON 11 LE EUS A E A oh esa ats A ESTA sh ak 11 2 UserManual is 12 2 e ee 12 2 Sper Visor PO SIS LA A 13 2a MEIN ko seno mo EKSENTO o ERST KELTAN RNE TO NEU UTA NN sse 13 24 Channel Manipulallon sus seas EE I LAG A ee 14 29 Using Spare PC O iii IIa 21 A a tae sade Sy i ad nas 26 0 PRIS SQN E ua Sansa aca sin eee oa ecu cers ag me dase 26 3 2 RDStore2ConiD suu peso SN NUB MAS A seek 29 39 KDSUMWalelildob is A en
19. bal2 cern ch 92 distPeer pcatlmdtbal3 cern ch 93 distPeer pcatlmdtbal4 cern ch 94 distPeer pcatlmdtbal5 cern ch 95 distPeer pcatlmdtbal6 cern ch 96 distPeer pcatlmdtbal7 cern ch 97 distPeer pcatlmdtbal8 cern ch 98 The relevant datapoints are read in a loop polling instead of using a so called dpConnect The latter is an asynchronous way of reading a datapoint by means of a call back routine which may have its drawbacks by the overhead and complexity involved Reading the datapoint in an infinite loop guarantees a better determination especially when a remote PVSS project does not respond anymore a dpConnect does not detect it For each PVSS project or service x the following datapoints are read during each cycle Datapoint Variable Description pcatlmdtbalx rdSeqx state bRunState run state of RDSequence pcatlmdtbalx rdSeqx nPos dNpos pointer inside current sequence pcatlmdtbalx rdSeqx statistics errFraction fFraction error fraction of last 500 analyses pcatlmdtbalx rdDbasex state bDbState state of database storage pcatlmdtbalx rdDbasex storage bDbStore storage active Table 3 1 State status datapoints Besides the datapoints of table X a set of general datapoints is read which are meant for the determination of the status They are known as the watchdog variables of the super visor Table Y shows them including their default value At startup these variables are read from the conf
20. ble 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 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 2 May 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 is powered by UPS too The COM port of the alignment PCs is used to control the TopMux Figure 1 4 shows
21. dard spot ana o o o o o o oOo O O OP LW FIN x pix y pix xl cal yl cal x2 cal y2 cal dist ccd lens dist mask lens lens focallength lens diameter light wavelength unknown fin l unknown fin 2 Figure 2 12 Spot analysis parameters inp BOL3A03 1 Cancel OK origin on ccd position of lens X Y rotations debug printout locate bands plots BW bias NIN FIN nchess x_pix debug_level Y_ pix x_orientation x ccd y orientation y_ccd x_ccd_active x mask pitch yY mask pitch lens focallength lens diameter light wavelength dist mask lens dist ccd lens dist mask ccd Figure 2 13 Rasnik analysis parameters 20 ATLAS Barrel Alignment v1 2 May 2011 2 5 Using Spare PC10 Spare PC10 pcatlmdtbal10 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
22. e addresses of camera and light source the electronic settings of the 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 4 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 i 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 Si si ox pez pea rc res ece Peres Figure 1 7 Barrel Alignment Hierarchy
23. ettings balign Start Menu Programs Startup true then if oFSO FileExists CADocuments and Settings balign Start Menu Programs Startup Rasdim64 Ink false then if OFSO FileExists C Balign bin Rasdim64 Rasdim64 exe true then set objShell Wscript CreateObject WScript Shell set objShortcut objShell CreateShortcut C Documents and Settings balign StartMenu 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 Script 4 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 33 ATLAS Barrel Alignment v1 2 May 2011 4 3 Rasdim initialization files The Rasdim server requires two initialization files The location of them is the same as where the Rasdim executable resides C 1BalignlbinlRasdim64 One is used to setup the frame grabber and is called synchr2 ccf and shown in File 4 1 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 is applied the Rasnik system will not work But the othe
24. f channels uses FC 16 ATLAS Barrel Alignment v1 2 May 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 have 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 i e CS LS Server Barrel Align Console 5fx Channel List Server 1 Jul 122010 15 56 Channel ID Type cs cr cm cr us tt LM LR bko ima i2e cnt inp BOL3AD1 I 1369 inp_BOL3AD1_2 1361 inp_BOL3AD1_3 1360 inp_BOL3AD1_4 1362 inp_BOL3AD3_1 1367 inp_BOL3AD3_2 1369 inp_BOL3AD3_3 1368 inp_BOL3AD3_4 1370 nN r iro ino Nin nin inn ooo mmm mn mom mm mn Nin a min ojojojojojojojo olojolojojojojo Pattern inp BOL34 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 A
25. ice DT3162 1 0 timi i gt Mux Port Version COM1 YMD 05 08 30 Info Started Cmds Mar 17 2010 11 36 3424612 pro_BOL1A05 pra BOS6A 6 BOSSA E HV pra BOS6A 6 BOSSA E RO pra BOS6A 8 BOSSA S HV pra BOS6A 8 BOSSA B RO BIL1A S5 HV pro BOL1AOS BILIAOS RO pro BOL1A07 BIL1AO7 RO pro BOL2A05 BIL2A S HV pro BOL2A05 BIL2A S RO DATIANT DTITIANT UU 3847 3869 3891 5156 5157 5158 5165 5166 reac 29184 29184 29184 29184 29184 29184 29184 29184 29184 201041 The super visor PC PCATLMDTBALSY has also two major components l YARIS M pa pu pe o e en nn a gill 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 PVSS and DNS are both started as service hence they run under user SYSTEM All PVSS GUIs PVSSOOui 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 Logging on and off using your NICE account on PC9 is allowed Always log off when you are finished No visible applications are running at logon except for the OLWatchGui program It takes care of a daily summary for statistical purposes To be ignored To manipulate the parameters of a par
26. iguration file see x x and if not set given the default value 29 ATLAS Barrel Alignment v1 2 May 2011 Datapoint Variable Default Description pcatlmdtbal9 rdWatchdog looptime dLooptime 30 cycle time pcatlmdtbal9 rdWatchdog warnTo dWarnTo 10 warning timeout pcatlmdtbal9 rdWatchdog errTo dErrTo 20 error timeout pcatlmdtbal9 rdWatchdog warnRatio fWarnRatio 2 0 warning fraction pcatlmdtbal9 rdWatchdog errRatio fErrRatio 5 0 error fraction Table 3 2 Watchdog variables 30 ATLAS Barrel Alignment v1 2 May 2011 4 Appendices 4 1 ConfDb Access The following SQL queries are possible Get the channel list of server X 1 8 SELECT FROM TABLE atlas conf mdt align r get channel for camsrv X Get the values of the parameters of a particular channel SELECT FROM TABLE atlas 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 Seta parameter of a particular channel CALL atlas conf mdt align w set param of channel channel parameter value Valid parameters are analtype fin14 fin7 nin16 nin9 antiblooming fin15 fin8 nin17 normalbacklit autogain fin16 fin9 ninl8 pixelmode background fin17 fine nin19 pixeloffset binairisation fin18 forceblack nin2 p
27. ixthreshold blackreference fin19 gain nin20 rAnalog cammas fin2 horshuffle nin21 rCoarse camras fin20 inhibitblack nin22 rFine camsrv fin21 ledmas nin23 rGain camtop fin22 ledras nin24 rLower chanid fin23 ledsrv nin25 rSetupl coarse fin24 ledtop nin26 rSetup2 counter fin25 linearmode nin27 rSetup3 divO fin26 lower nin28 rUpper divl fin27 nimgs nin29 readmode enableauto fin28 ninO nin3 shufflemode enablesno fin29 ninl nin30 upper finO fin3 ninl0 nin31 vershuffle finl fin30 nin11 nin4 whitethreshold fin10 fin31 nin12 nin5 fin11 fin4 nin13 nin6 fin12 fin5 nin14 nin7 fin13 fin6 nin15 nin8 31 ATLAS Barrel Alignment v1 2 May 2011 4 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 Variable Value DefaultUserName balign DefaultPassword eR RA RKB DefaultDomainName PCATLMDTBALx AutoAdminLogon 1 ForceAutoLogon 0 Table 4 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 is HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon A Visual Basic script shown in Script 4 1 sets the necessary parameters automatically Dim strUser strPW strUser balign st
28. j path C pvss fwComponent s_ATLMDTBALx proj_path C pvss ATLMDTBALx ui CEFIDEL CtrlRDBAccess Let Eta 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 Manager Arguments PVSS00dim dim dp config Rasdim User Interface m para User Interface p RDConfig iconBar menuBar PVSSctrl num 20 RDSequence 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 EKSE ini xi va hah rt OO Project voran A ale Manager Process Monitor Waiting for commands St Description No 2 Process Monitor il Options Database Manager Event Manager Control Manager f pyss scripts st Simulation Driver Distribution Manager P SS00dim dim_dp_config Ra User Interface m gedi User Interface m para User Interface Control Manager Control Manager Control Manager Control Manager User Interface p RDConfig iconB num 20 RDSequer num 21 RDStore2 f fwinstallationAge f fwScripts Ist p fvDIMAwDim pnl sw arar 2222
29. nager f pvss_scripts Simulation Driver Distribution Manager 1 p RDsvCondDb O User Interface 1 p RDsvConfDb D User Interface 1 p RDsvConfig p Control Manager 81 RDswatchdog Control Manager 82 RDsvConfDb ctl D Control Manager 2 ffwlnstallationA 2 Manager Start N User Interfare 1 sensata 4 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 2 May 2011 Barrel Alignment Status Overview Jul122010 14 48 f 1 34406 273 inp BMS1204 4 35193 317 inp BOL1407 3 30807 8 axi BIL6AO9 BILSAO9 HV 32140 164 ccc BMS1416 BML1A01 31788 69 axi BML3C15 BML2C15 RO 32562 296 inp BMLSCO9 3 34832 150 cec BOS2CO6 BOL1COS 34698 234 linp BML3CO1 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 is 707 and the state is ON indicating the sequence is running In order to specify a specific channel press the Edi
30. o Table 1 6 for the E_OUTPUT int description of these variables E_WRONGSERVER int E_ILLBKGRND int E_NOSERVER int E_TIMEOUT int E_INTERNAL int E_UNKNOWN int 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 2 May 2011 132 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 th
31. oat Translation y mm SCALEVALUE float Magnification ROTZVALUE float Rotation angle 9 mrad ERR X float Error variance of XVALUE ERR Y float Error variance of YVALUE ERR SCALE float Error variance of SCALEVALUE ERR ROTZ float Error variance of ROTZVALUE SERVER int 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 sequence hence the SEQ NR variable It denotes the set of channels belonging to the sequence After each loop it is 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 it will dominate the entire sequence with this error value The other error types are very rare or never occurred at all ATLAS Barrel Alignment v1 2 May 2011 Syn
32. ogicServer 6 LogDir C Results Log Debug 1 Comport 1 GrabDelay 600 RasnikAnal lAnalysis240 d11 SpotAnal XCalculSaclay520 d11 FoamAnal NFoam dll ResultDir C Results Balign ResultPrefix rd ImageDir C Results Balign Images Sav BadImageDir C Results Balign Images Bad File 4 2 Rasnik ini of PC6 A default value is assigned whenever a configuration variable is not defined in Rasdim ini file Table 4 2 shows the complete list of configuration variables together with there default value Variable Default value DnsHost DIM_DNS_NODE or localhost LogicServer 99 LogicDevice 0 LogDir ace Debug 1 Comport 1 Baudrate 115200 GrabDelay 1000 RasnikAnal Analysis240 dl1 SpotAnal NCalculSaclay512 dll FoamAnal NFoam dl1l ResultDir D Results ResultPrefix Ras ImageDir D Results Image sav BadImageDir D Results Image bad Table 4 2 Rasdim configuration variables e 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 defined the value localhost is taken LogicServer for the barrel alignment readout system only values lt x lt 8 are possible LogicDevice only used when multiple frame grabbers in a single PC are installed LogDir the folder in which Rasdim
33. oj 29 4 APPEARS 31 Al ConfDb ACCESS pU ESSA 31 4 2 Auto logon and start of Rasdim cece eeceescecssecesssececssececssccecnsccessseeeeseeeees 32 4 3 Rasdim initialization TIES sasa a dde rodadero iaa 34 Sd Quick Pacs tata naaa 36 ATLAS Barrel Alignment v1 2 May 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 Saal ae eaj 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
34. opsis Value Source Description OKAY 0 Okay ILLCMD 1 Rasdim Unknown command MUX 2 Rasdim Multiplexor camera or light source not connected GRABBER 3 Rasdim Frame grabber no grab within timeout ANALYSIS 4 Analysis Analysis failed OUTPUT 5 Rasdim Problem with output files WRONGSERVER 6 Rasdim Server address of camera this server ILLBKGRND 7 Rasdim Background subtracting not allowed with mixed channels NOSERVER 8 PVSS Rasdim not running TIMEOUT 9 PVSS Na answer from Rasdim within timeout INTERNAL 10 PVSS Internal PVSS problem UNKNOWN 11 Unknown none above Table 1 6 Global errors For statistical purposes another table is 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 Column Type Description MID int Primary key updated by a SQL sequence 1 SERVER int Server number 1 8 SEQ_NR int Sequence number STARTTIME time Start of sequence STOPTIME time End of sequence SEQ_LENGTH int Number of channels per server HANDLED int Number of handled channels REJECTED int Number of rejected channels FAULTS int Number of errors E_ILLCMD int E_MUX int E_GRABBER int E_ANALYSIS int Refer t
35. r this reason a local account is created balign which is logged on at startup after which 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 console 0 On the desktop a shortcut is available executing the command Fo 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 v1 2 May 2011 ES May May May May May May May May Mare as Rasdim v6 4 Server 2 E AH 106 106 2010 2010 2010 11 16 106 20 2010 11 17 17 106 20 2010 11 17 19 106 20 2010 11 17 20 106 20 2010 11 17 22 106 20 2010 11 17 23 106 20 anin ane Figure 2 1 Rasdim server 2 2 Super visor PC Framegrabber DT3162 1 Device 0 m DIM DNS Server PCATLMDTBALS cern 2 Grabber Board Dev
36. r values should not be altered as well A lot of them are interrelated Data Translation Inc Control Config File v1 0 0 0 298 392 HLG pIJ 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 HSyncinPolarlty HSyncOutPulseWidth nputLineEventMask LineFrequency OverlayBitmapFile OverlayColorKey OverlayEnabled PixelClockSource RoiHeight RoiLeft RoiTop RoiWidth StrobeEnabled StrobePolarity StrobeStartLine StrobeStopLine SyncInSource SyncOutEnabled SyncOutPolarity Timeout TotalLinesPerFrame TotalPixelsPerLine TriggerTransition TriggerType VSyncDelay VSyncInPolarity VSyncOutPulseWidth VideoInputSource File 4 1 synchr2 ccf The behavior of the Rasdim server is dependent of a set of so called configuration variables All of them can be altered by means of the configuration file Rasim ini In File 4 2 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 34 ATLAS Barrel Alignment v1 2 May 2011 RASDIM DnsHost PCATLMDTBAL9 cern ch L
37. rPW estoi Dim objShell obj FSO Set objShell WScript CreateObject WScript Shell Set objFSO CreateObject Scripting FileSystemObject Const HKEY LOCAL MACHINE amp H80000002 Dim strComputer objRegistry strKeyName n 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 objRegistry SetStringValue HKEY_LOCAL_MACHINE strCADPath DefaultUserName strUser intRet objRegistry SetStringValue HKEY LOCAL MACHINE strCADPath DefaultPassword strPW intRet objRegistry SetStringValue HKEY LOCAL MACHINE strCADPath DefaultDomainName computerName intRet objRegistry SetStringValue HKEY LOCAL MACHINE strCADPath AutoAdminLogon 1 intRet objRegistry SetStringValue HKEY LOCAL MACHINE strCADPath ForceAutoLogon 0 WScript Quit 0 Script 4 1 setBALAutologon vbs 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 4 2 takes care of this Beware of the version number of Rasdim 32 ATLAS Barrel Alignment v1 2 May 2011 Set oFSO WScript CreateObject Scripting FileSystemObject if oFSO FolderExists CADocuments and S
38. results are also stored into a dedicated file inside the data folder of the PVSS project and the images grabbed are saved During normal operation the images grabbed are not saved in order to limit the disk storage see also Appendix 4 3 for the location of the saved images It also resets the daily statistic parameters datapoints The sequence panel in Figure 3 2 shows the relevant parameters and actual state of the RDSequence control manager This panel is used for diagnostics and is only shown as illustration Rasdim Sequence Be xi Rasdim Sequence Panel Server 3 svBlock FALSE curChan inp_BOL6A11_1 segnr 55313 lastChan inp_BOLBAN9_4 nPos 431 lastErr 0 cfault 6 User Kernel length length 753 stopseq state TRUE Flip interval startHour 18 Statistics Figure 3 2 RDSequence panel 27 ATLAS Barrel Alignment v1 2 May 2011 The Kernel group inside the RDSequence panel contains the total number length of channels the run state and startHour The Flip button toggles the run state The User group shows some details of a user defined sequence After the completion of the readout system it became obsolete The Main group shows some parameters of the current sequence The svBlock parameter is a legacy of the mixed channels concept and has to be false The cfault parameter denotes the number of errors during the current sequence Pressing the Statistic button shows a panel as shown in Figure
39. s take the default for the other settings e Project name ATLMDTBALx e Path C Npvss 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 fwDIM The result has to be placed into the component folder C pvss fwComponents_ATLMDTBALx The project 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 2 May 2011 general pvss_path Te REM ENS Saou proj pata atlas storage det dces 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 pro
40. s 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 server 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 2 May 2011 Channel inp_BOL3A03_1 Close ChanID 1367 Type foam Edit Cmd Grabbing Server 1 Main View
41. sed for the alignment system One is 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 i 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 is 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 CtrIRDB Access package Column Type Description MID int Primary key updated by a SQL sequence 1 CHANNEL_NAME string Name of channel SEQ_NR int Sequence number STIME time Date Time of measurement GLOB_ERR int Global error if 0 see Table 1 6 ANAL ERR int Analysis error only if GLOB ERR 4 XVALUE float Translation x mm YVALUE fl
42. sue 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 v1 2 May 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 0 between mask and optical sensor orme 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 PC Server Channels PVSS SystemName PVSS Distr Number 1 Rasdim1 707 ATLMDTBAL1 91 2 Rasdim2 702 ATLMDTBAL2 92 3 Rasdim3 753 ATLMDTBAL3 93 4 Rasdim4 759 ATLMDTBAL4 94 5 Rasdim5 759 ATLMDTBALS5 95 6 Rasdim6 751 ATLMDTBAL6 96 7 Rasdim7 698 ATLMDTBAL7 97 8 Rasdim8 704 ATLMDTBAL8 98 9 na ATLMDTBAL9 99 10 na na 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 at the datapoints of other PVSS projects Whenever PC10 has to take over PC
43. t Init buffer Seqnr nPos 0 RunState true gt yes Handle Channel nPos Reset TopMux Store Result into buffer Flush buffer to CondDb delay 10 RunState true y es Store Statistics into CondDb Reset TopMux Figure 3 1 RDSequence flowchart 26 ATLAS Barrel Alignment v1 2 May 2011 The RDSequence control manager uses a buffer for temporary storage of the results The current size is 100 1 e the results of 100 analyses using a PVSS dyn_dyn_mixed type variable Its primary use is to minimize the access load to the database When full a handle to the database is created and by means of a single bulk operation and bound variables the buffer is written to the database and emptied see also Chapter 1 3 1 and Table 1 5 in particular The status i e success of the storage is maintained in a separate datapoint of type bool Another datapoint named storage and not included in the flowchart is used to skip the storage to the database It was used in the past during maintenance when the data was not relevant Nowadays its value is always set to true The Handle Channel box in the flowchart is described in more detail in the Implementation Notes chapter Several statistic variables are maintained inside this module of which the errFraction is the most important one It holds the fraction percentage of errors of
44. t Channels button Rasdim Server Control Be x Rasdim Server Panel Server 1 Special Sequence Channels 707 State ON Control Edit Channels Mac Figure 2 6 Main Server panel 7 The channel list is displayed in Figure 2 7 The 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 ID 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 O meaning not used Img number of images taken in order to get an average image In general not used set to 0 FC at least one of the parameters is used the majority o
45. the number of channels will increase When finished close this panel and also the Configuration parent panel 24 ATLAS Barrel Alignment v1 2 May 2011 18 19 20 21 22 Stop the project and set the start mode of the following managers to always e PVSSOOdim dim dp config Rasdim e Control Manager num 20 RDSequence ctl e Control Manager num 21 RDStore2ConfDb ctl 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 of Rasdim C Balign bin Rasdim64 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 Start the PVSS project After a while all managers with start mode set to always will run The PVSS00dim 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 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 Leave PC10 as it is Do not logoff or disconnect The procedure
46. ticular 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 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 2 May 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 DIM Edit DataAccess Windos Misc x blea alm x Ci DIS_DNS SERVER_LIST prat DIS_DNS pcatlmdtbal9 cerm ch Rasdim3 pcatlmdtbal3 cerm ch Rasdim6 pcatlmdtbal6 cerm ch RasdimbBpcatlmdtbal5 cern ch P1 555ys97Man1 DIMHandler Bpcatlmdtbal7 cem ch P SSSys93Man1 DIMHandler pcatimdtbal3 cern ch P SSSys92Man1 DIMHandler pcatimdtbal2 cemn ch Rasdim8Bpcatlmdtbal8 cern ch P SSSys96Man1 DIMHandler pcatimdtbal6 cern ch P SSSys94Man1 DIMHandler pcatimdtbal4 cern ch Rasdim pcatlmdtbal cerm ch Rasdim4 pcatlmdtbal4 cerm ch Rasdiml pcatlmdtball cern ch P SSSys91Man1 DIMHandler pcatlmdtball cerm ch PYSSSys98Man1 DIMHandler pcatlmdtbal8 cern ch Rasdim2 pcatlmdtbal2 cern ch 10 56 55 AM 710 byte 17 item s A
Download Pdf Manuals
Related Search
Related Contents
基本操作ガイド Intel® Fortran Compiler for Linux* Systems User's Guide, Volume I Manual Aquatic AI6032D User's Manual Belkin 6-Port FireWire Hub Resistive Touch Sensor based Graphics Plotter on an Embedded Samsung 940UX User Manual 取扱説明書 - グッドマン Energizer ELMCL11L flashlight ControlLogix SIL2 System Configuration Using RSLogix Copyright © All rights reserved.
Failed to retrieve file