the schematic block diagram of fig1 clarifies the essential functional components of a device for the automatic rotational orientation of a tube head relative to a stationary tube body according to a first preferred exemplary embodiment of the instant invention . the functional block 10 thereby schematically clarifies a ( static ) holder for a tube body , which is held in a corresponding rotationally positionally fixed manner . a tube head 16 , which is held as positioning means in a suitable orientation and drive unit 12 so as to be rotationally movable relative to said tube body , can be rotated about a ( vertical ) axis of rotation such that the tube head 16 can be positioned in a predetermined rotated position to the tube body 14 and can be attached subsequently in this position . in the shown exemplary embodiment , the tube head is made in two parts consisting of cover section 17 and outlet section 19 with foil hinge located therebetween ( not illustrated ) in the manner shown in more detail in fig7 ; a grip section 21 for opening the cover similarly serves as position indicator . the positioning means 12 , substantially encompassing a suitably connected rotary drive ( not shown ) are designed to set the tube head 16 ( cap ) into a rotary movement in the manner shown in fig1 , wherein the lateral contour ( jacket ) is scanned continuously by a laser - based sensor unit 18 . the correspondingly digitized or quantified signal , respectively , of the sensor 18 ( obtained from the laser beam 15 , which is continuously reflected on the jacket of the tube head ), is then processed by a central control and processing unit 22 , is in particular correlated with reference data in a manner , which will be described below , wherein a control signal for drive or driver means 20 , respectively , is then obtained from the result , which , in turn , shift the positioning means 12 into the desired rotated position , as explained above . this procedure is to be explained below by means of the signal tables and time sequence diagrams of fig3 a , 3 b and 4 , which have been chosen in an exemplary manner and which are simplified for explanation purposes . the signal level sequence “ y value ” of fig3 b , plotted over time ( as x value and corresponding to a complete rotation of the tube head ( cap ) 16 ) thus corresponds approximately to a typical signal sequence , as it appears in the case of a cap of the type shown in fig7 : the opening section 21 generates the signal maximum ( level v ) at the point in time 8 ; in contrast , the measuring values located outside of this area 21 encompass a considerably lower amplitude ( level between 2 and 4v ). the signal sequence of fig3 a , used in the instant case as reference signal sequence and obtained by scanning a reference pattern ( or an idealized body , the rotated position of which is known , respectively ) in the instant case corresponds exactly with the signal sequence of fig3 b in view of the level sequence , only shifted by six time values ( that is , at the point in time t = 2 , the amplitude maximum of the y value in fig3 a thus lies six time units ahead of the actually measured value of fig3 b ). in an advantageous manner according to the invention , a correlation calculation is now carried out for the data , which are present numerically in the shown manner ( because they are obtained by the sensor unit 18 and because they are suitably quantified ), according to the approach of the so - called discrete correlation , wherein a correlation coefficient r ( n ) is calculated as follows for each of the points in time n = 0 to 10 : r ( n )= σ x ( m ) y ( m + n ), summed via m =− α to + α here : m = 1 to 10 ( number of the measuring values ) wherein n = 0 . . . 9 , in accordance with the points in time 1 to 10 ( fig3 a or 3 b , respectively ) and x ( ) represents the first test series ( for instance in accordance with fig3 a ) and y ( ) represents the second test series ( fig3 b ). this correlation calculation results in the correlation coefficients , which are listed in table form in fig4 for the values n = 0 to n = 9 as well as in the graphic illustration thereof . it is shown that the sequence of the correlation values ( fig4 ) encompasses a clearly identifiable maximum for n = 6 , with the immediately apparent or readable meaning , respectively , that ( see the curve sequences of fig3 a relative to fig3 b ) the largest correspondence is present between the curve sequences when the curves , which are to be compared ( fig3 a and 3 b ), are shifted by six time units ; this would then exactly lead to the identity in this idealized case . in this respect , the maximum correlation of fig4 , which can be identified , provides information in the instant case , how the tube head 16 must be rotated relative to the stationary tube body 14 by means of the units 12 or 20 , respectively , so as to be obtain the desired rotational positioning . the shown example calculation or the above - specified formula , respectively , is to thereby only be seen as an example ; all of the methods for determining a correlation , which illustrate the degree of the correlation or of a context between the value sequences , which are to be compared , respectively ( via the time sequence as representation for a complete rotation , for instance ), are comprised by the invention , wherein other methods for the ( complex ) pattern identification , based on the overall signal or a partial signal or the like are also possible in addition to correlation methods . the value 10 ( as resolution for a complete rotation in the illustrated time sequence ) in the instant case must also be considered to be highly simplified and as an example ; in the preferred case , at least 100 individual values would have to be identified around a tube head periphery and would then have to be correlated accordingly ; preferred embodiments thereby schedule a time of individual values & gt ; 200 , ideally also & gt ; 300 , so as to provide for a position determination , which is as accurate and insensitive to errors as possible . it is clarified in this context and with reference to examples 5a and 5b , how high the error tolerance of the instant procedure is in order to determine a rotational position shift by means of correlation of the respective signal sequences : deviating from the idealized measuring value sequence of fig3 b , the fifth and the ninth measuring value was thereby specifically falsified in fig5 a ( in accordance with the points in time 5 and 9 ) ( the test series 1 still corresponds to the idealized value sequence y value in fig3 b in this respect ), wherein the corresponding graphic indicates the sequence of the correlation value r ( n ), analogous to fig4 . it follows that the maximum correlation can still be identified clearly and unambiguously at the point in time 6 even in the case of two values at the time positions 5 and 9 , which clearly deviate from the idealized sequence , so that a clear and correct relative positioning of the control of unit 12 takes place even under these problematic conditions . this determination only becomes faulty when , see fig5 b , which shows a tolerance limit in this respect , four of the ten measuring values ( here the time position 4 , 5 , 8 , 10 ) clearly deviate from the ideal measuring values . however , there is an expectation that a correct determination of a maximum correlation can also take place here during the actual operation in response to typically more than 100 , preferably more than 300 quantified individual values around the tube head periphery . the above observation thus clarifies that the procedure according to the invention by means of correlation leads to good results even in response to a comparatively low ( numerical ) resolution or large measuring value deviations , respectively , and to a highly secured position and thus to a high production quality in particular in the advantageous manner according to the invention . as already explained , it is obvious thereby that an increase of the individual measurements increases the processing effort for the correlation on the one hand , but that a further increased production tolerance and positional accuracy can be obtained on the other hand . vice versa , it becomes clear from this observation that the procedure with the existing weaknesses described in the state of the art according to fig6 , for example , is improved significantly and that it can be expected in this regard that the assembly processes of two tube partners can be carried out with a high quality by means of the instant invention , even under adverse conditions or in response to high tolerance demands , respectively . while the above - described first embodiment has been described as device , it can equally be understood as explanation of a method claimed according to the invention , how a relative position of tube head and tube body takes place as partners , which are to be oriented relative to one another , by operating the arrangement according to fig1 . contrary to the above - described exemplary embodiment , the instant invention is thereby not limited to the active rotation of the tube head relative to the ( stationary ) tube body . instead , the instant invention likewise comprises it to position a tube head in a predetermined manner in an otherwise known manner , which can be realized easily , to sense and move the tube body in its relative position by means of suitable sensor means and to likewise effect the desired rotationally positionally accurate orientation of the partners relative to one another . for instance a marking , which is present on a tube body , is thereby advantageous for such a rotary - analogous measurement , as well as a label or similar marking , which is possibly already present , which can be sensed for determining a current tube position and which can be stored in a digitized manner as described above , so as to subsequently be correlated with a reference signal .