/* * Write the LHC aperture along the ring for various * azimuthal angles. */ #include "ReadTwiss.h" #include "Aperture.h" #include "OneMetre.h" #include "AssignOneMetre.h" double CheckPos(double pp); // See CheckPos.cpp int main (int argc, char* argv[]) { if (argc < 2){ cout<<"ERROR in the input definition!"< GetAperture ApertureFile.dat <-"< LHC; vector Keyword, Name, Parent; vector KeywordNoQuotes, NameNoQuotes, ParentNoQuotes; vector Position, Length, Apert1, Apert2, Apert3, Apert4; // Read twiss file with apertures (no drifts!) // ReadTwissNoDrifts("allaper_inj_20041008.b1", &Keyword, &Name, &Parent, &KeywordNoQuotes, cout<<"Reading aperture file "< LHCLength ) pp = pp - LHCLength; return pp; }