Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:24

0001 
0002 #ifndef __LASGLOBALLOOP_H
0003 #define __LASGLOBALLOOP_H
0004 
0005 #include <iostream>
0006 
0007 ///
0008 /// helper class for looping over LASGlobalData objects
0009 /// (si-strip module loops). Use exactly as:
0010 /// \code
0011 /// LASGlobalLoop theLoop;
0012 /// int det = 0, ring = 0, beam = 0, disk = 0;
0013 /// do {
0014 ///   // det,ring,beam,disk will loop the full TEC+,TEC-
0015 /// } while ( loop.TECLoop( det, ring, beam, disk ) );
0016 /// int pos = 0;
0017 /// det = 2; // set subdetector to TIB
0018 /// beam = 0;
0019 /// do {
0020 ///   // dto.
0021 /// } while( loop.TIBTOBLoop( det, beam, disk ) );
0022 /// \endcode
0023 ///
0024 class LASGlobalLoop {
0025 public:
0026   LASGlobalLoop();
0027   bool TECLoop(int&, int&, int&, int&) const;
0028   bool TIBTOBLoop(int&, int&, int&) const;
0029   bool TEC2TECLoop(int&, int&, int&) const;
0030 };
0031 
0032 #endif