source: branches/Corsika7405Compatibility/mgeom/MGeomCorsikaCT.cc@ 19690

Last change on this file since 19690 was 3379, checked in by moralejo, 21 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1/* ======================================================================== *\
2!
3! *
4! * This file is part of MARS, the MAGIC Analysis and Reconstruction
5! * Software. It is distributed to you in the hope that it can be a useful
6! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
7! * It is distributed WITHOUT ANY WARRANTY.
8! *
9! * Permission to use, copy, modify and distribute this software and its
10! * documentation for any purpose is hereby granted without fee,
11! * provided that the above copyright notice appear in all copies and
12! * that both that copyright notice and this permission notice appear
13! * in supporting documentation. It is provided "as is" without express
14! * or implied warranty.
15! *
16!
17!
18! Author(s): Oscar Blanch 11/2002 <mailto:blanch@ifae.es>
19!
20! Copyright: MAGIC Software Development, 2000-2002
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26//
27// MGeomCorsikaCT
28//
29// This is the base class of the PMT characteristics.
30//
31////////////////////////////////////////////////////////////////////////////
32#include "MGeomCorsikaCT.h"
33
34#include "MLog.h"
35#include "MLogManip.h"
36
37ClassImp(MGeomCorsikaCT);
38
39using namespace std;
40
41// --------------------------------------------------------------------------
42//
43// Initializes a Telescope geometry.
44//
45MGeomCorsikaCT::MGeomCorsikaCT(const char *name, const char *title)
46{
47 fName = name ? name : "MGeomCorsikaCT";
48 fTitle = title ? title : "Storage container for CT Telescope characteristics";
49}
50
51// --------------------------------------------------------------------------
52//
53// It fills the member variable of this class
54//
55void MGeomCorsikaCT::Fill(Float_t ctx, Float_t cty, Float_t ctz,
56 Float_t cttheta, Float_t ctphi,
57 Float_t ctdiam, Float_t ctfocal){
58
59 fCTx=ctx;
60 fCTy=cty;
61 fCTz=ctz;
62 fCTtheta=cttheta;
63 fCTphi=ctphi;
64 fCTdiam=ctdiam;
65 fCTfocal=ctfocal;
66}
67// --------------------------------------------------------------------------
68//
69// Print the geometry information of one pixel.
70//
71void MGeomCorsikaCT::Print(Option_t *opt) const
72{
73 // information about a telescope
74 *fLog << all << "x = " << fCTx << ", y = " << fCTy << ", z = "
75 << fCTz << " cm " << endl;
76}
Note: See TracBrowser for help on using the repository browser.