ROBAST logo
// Author: Akira Okumura <mailto:oxon@mac.com>
/******************************************************************************
 * Copyright (C) 2006-, Akira Okumura                                         *
 * All rights reserved.                                                       *
 *****************************************************************************/

#ifndef A_GEO_UTIL_H
#define A_GEO_UTIL_H

#include "TGeoBBox.h"
#include "TGeoMatrix.h"
#include "TGeoTube.h"
#include "TH2.h"
#include "TVector3.h"

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
// AGeoUtil                                                                   //
//                                                                            //
// Utility functions to build complex geometries easily                       //
////////////////////////////////////////////////////////////////////////////////

namespace AGeoUtil {

void MakePointToPointBBox(const char* name, const TVector3& v1,
                          const TVector3& v2, Double_t dx, Double_t dy,
                          TGeoBBox** box, TGeoCombiTrans** combi);
void MakePointToPointTube(const char* name, const TVector3& v1,
                          const TVector3& v2, Double_t radius, TGeoTube** tube,
                          TGeoCombiTrans** combi);
void ContainmentRadius(TH2* h2, Double_t fraction, Double_t& r, Double_t& x,
                       Double_t& y);

}  // namespace AGeoUtil

#endif  // A_GEO_UTIL_H
 AGeoUtil.h:1
 AGeoUtil.h:2
 AGeoUtil.h:3
 AGeoUtil.h:4
 AGeoUtil.h:5
 AGeoUtil.h:6
 AGeoUtil.h:7
 AGeoUtil.h:8
 AGeoUtil.h:9
 AGeoUtil.h:10
 AGeoUtil.h:11
 AGeoUtil.h:12
 AGeoUtil.h:13
 AGeoUtil.h:14
 AGeoUtil.h:15
 AGeoUtil.h:16
 AGeoUtil.h:17
 AGeoUtil.h:18
 AGeoUtil.h:19
 AGeoUtil.h:20
 AGeoUtil.h:21
 AGeoUtil.h:22
 AGeoUtil.h:23
 AGeoUtil.h:24
 AGeoUtil.h:25
 AGeoUtil.h:26
 AGeoUtil.h:27
 AGeoUtil.h:28
 AGeoUtil.h:29
 AGeoUtil.h:30
 AGeoUtil.h:31
 AGeoUtil.h:32
 AGeoUtil.h:33
 AGeoUtil.h:34
 AGeoUtil.h:35
 AGeoUtil.h:36