Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:19

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 
0027 #include "G4HnManager.hh"
0028 #include "G4VRFileManager.hh"
0029 
0030 //_____________________________________________________________________________
0031 inline
0032 void G4VAnalysisReader::Message(
0033   G4int level, const G4String& action, const G4String& objectType,
0034   const G4String& objectName, G4bool success) const
0035 {
0036   fState.Message(level, action, objectType, objectName, success);
0037 }
0038 
0039 //_____________________________________________________________________________
0040 inline
0041 G4int G4VAnalysisReader::GetH1Id(const G4String& name, G4bool warn) const
0042 {
0043   return fVH1Manager->GetId(name, warn);
0044 }
0045 
0046 //_____________________________________________________________________________
0047 inline
0048 G4int G4VAnalysisReader::GetH2Id(const G4String& name, G4bool warn) const
0049 {
0050   return fVH2Manager->GetId(name, warn);
0051 }
0052 
0053 //_____________________________________________________________________________
0054 inline
0055 G4int G4VAnalysisReader::GetH3Id(const G4String& name, G4bool warn) const
0056 {
0057   return fVH3Manager->GetId(name, warn);
0058 }
0059 
0060 //_____________________________________________________________________________
0061 inline
0062 G4int G4VAnalysisReader::GetP1Id(const G4String& name, G4bool warn) const
0063 {
0064   return fVP1Manager->GetId(name, warn);
0065 }
0066 
0067 //_____________________________________________________________________________
0068 inline
0069 G4int G4VAnalysisReader::GetP2Id(const G4String& name, G4bool warn) const
0070 {
0071   return fVP2Manager->GetId(name, warn);
0072 }
0073 
0074 //_____________________________________________________________________________
0075 inline
0076 G4int G4VAnalysisReader::GetH1Nbins(G4int id) const
0077 {
0078   return fVH1Manager->GetNbins(G4Analysis::kX, id);
0079 }
0080 
0081 //_____________________________________________________________________________
0082 inline
0083 G4double G4VAnalysisReader::GetH1Xmin(G4int id) const
0084 {
0085 // Returns xmin value with applied unit and histogram function
0086 
0087   return fVH1Manager->GetMinValue(G4Analysis::kX, id);
0088 }
0089 
0090 //_____________________________________________________________________________
0091 inline
0092 G4double G4VAnalysisReader::GetH1Xmax(G4int id) const
0093 {
0094   return fVH1Manager->GetMaxValue(G4Analysis::kX, id);
0095 }
0096 
0097 //_____________________________________________________________________________
0098 inline
0099 G4double G4VAnalysisReader::GetH1Width(G4int id) const
0100 {
0101   return fVH1Manager->GetWidth(G4Analysis::kX, id);
0102 }
0103 
0104 //_____________________________________________________________________________
0105 inline
0106 G4int G4VAnalysisReader::GetH2Nxbins(G4int id) const
0107 {
0108   return fVH2Manager->GetNbins(G4Analysis::kX, id);
0109 }
0110 
0111 //_____________________________________________________________________________
0112 inline
0113 G4double G4VAnalysisReader::GetH2Xmin(G4int id) const
0114 {
0115 // Returns xmin value with applied unit and histogram function
0116 
0117   return fVH2Manager->GetMinValue(G4Analysis::kX, id);
0118 }
0119 
0120 //_____________________________________________________________________________
0121 inline
0122 G4double G4VAnalysisReader::GetH2Xmax(G4int id) const
0123 {
0124   return fVH2Manager->GetMaxValue(G4Analysis::kX, id);
0125 }
0126 
0127 //_____________________________________________________________________________
0128 inline
0129 G4double G4VAnalysisReader::GetH2XWidth(G4int id) const
0130 {
0131   return fVH2Manager->GetWidth(G4Analysis::kX, id);
0132 }
0133 
0134 //_____________________________________________________________________________
0135 inline
0136 G4int G4VAnalysisReader::GetH2Nybins(G4int id) const
0137 {
0138   return fVH2Manager->GetNbins(G4Analysis::kY, id);
0139 }
0140 
0141 //_____________________________________________________________________________
0142 inline
0143 G4double G4VAnalysisReader::GetH2Ymin(G4int id) const
0144 {
0145 // Returns xmin value with applied unit and histogram function
0146 
0147   return fVH2Manager->GetMinValue(G4Analysis::kY, id);
0148 }
0149 
0150 //_____________________________________________________________________________
0151 inline
0152 G4double G4VAnalysisReader::GetH2Ymax(G4int id) const
0153 {
0154   return fVH2Manager->GetMaxValue(G4Analysis::kY, id);
0155 }
0156 
0157 //_____________________________________________________________________________
0158 inline
0159 G4double G4VAnalysisReader::GetH2YWidth(G4int id) const
0160 {
0161   return fVH2Manager->GetWidth(G4Analysis::kY, id);
0162 }
0163 
0164 //_____________________________________________________________________________
0165 inline
0166 G4int G4VAnalysisReader::GetH3Nxbins(G4int id) const
0167 {
0168   return fVH3Manager->GetNbins(G4Analysis::kX, id);
0169 }
0170 
0171 //_____________________________________________________________________________
0172 inline
0173 G4double G4VAnalysisReader::GetH3Xmin(G4int id) const
0174 {
0175 // Returns xmin value with applied unit and histogram function
0176 
0177   return fVH3Manager->GetMinValue(G4Analysis::kX, id);
0178 }
0179 
0180 //_____________________________________________________________________________
0181 inline
0182 G4double G4VAnalysisReader::GetH3Xmax(G4int id) const
0183 {
0184   return fVH3Manager->GetMaxValue(G4Analysis::kX, id);
0185 }
0186 
0187 //_____________________________________________________________________________
0188 inline
0189 G4double G4VAnalysisReader::GetH3XWidth(G4int id) const
0190 {
0191   return fVH3Manager->GetWidth(G4Analysis::kX, id);
0192 }
0193 
0194 //_____________________________________________________________________________
0195 inline
0196 G4int G4VAnalysisReader::GetH3Nybins(G4int id) const
0197 {
0198   return fVH3Manager->GetNbins(G4Analysis::kY, id);
0199 }
0200 
0201 //_____________________________________________________________________________
0202 inline
0203 G4double G4VAnalysisReader::GetH3Ymin(G4int id) const
0204 {
0205 // Returns xmin value with applied unit and histogram function
0206 
0207   return fVH3Manager->GetMinValue(G4Analysis::kY, id);
0208 }
0209 
0210 //_____________________________________________________________________________
0211 inline
0212 G4double G4VAnalysisReader::GetH3Ymax(G4int id) const
0213 {
0214   return fVH3Manager->GetMaxValue(G4Analysis::kY, id);
0215 }
0216 
0217 //_____________________________________________________________________________
0218 inline
0219 G4double G4VAnalysisReader::GetH3YWidth(G4int id) const
0220 {
0221   return fVH3Manager->GetWidth(G4Analysis::kY, id);
0222 }
0223 
0224 //_____________________________________________________________________________
0225 inline
0226 G4int G4VAnalysisReader::GetH3Nzbins(G4int id) const
0227 {
0228   return fVH3Manager->GetNbins(G4Analysis::kZ, id);
0229 }
0230 
0231 //_____________________________________________________________________________
0232 inline
0233 G4double G4VAnalysisReader::GetH3Zmin(G4int id) const
0234 {
0235 // Returns xmin value with applied unit and histogram function
0236 
0237   return fVH3Manager->GetMinValue(G4Analysis::kZ, id);
0238 }
0239 
0240 //_____________________________________________________________________________
0241 inline
0242 G4double G4VAnalysisReader::GetH3Zmax(G4int id) const
0243 {
0244   return fVH3Manager->GetMaxValue(G4Analysis::kZ, id);
0245 }
0246 
0247 //_____________________________________________________________________________
0248 inline
0249 G4double G4VAnalysisReader::GetH3ZWidth(G4int id) const
0250 {
0251   return fVH3Manager->GetWidth(G4Analysis::kZ, id);
0252 }
0253 
0254 //_____________________________________________________________________________
0255 inline
0256 G4int G4VAnalysisReader::GetP1Nbins(G4int id) const
0257 {
0258   return fVP1Manager->GetNbins(G4Analysis::kX, id);
0259 }
0260 
0261 //_____________________________________________________________________________
0262 inline
0263 G4double G4VAnalysisReader::GetP1Xmin(G4int id) const
0264 {
0265 // Returns xmin value with applied unit and histogram function
0266 
0267   return fVP1Manager->GetMinValue(G4Analysis::kX, id);
0268 }
0269 
0270 //_____________________________________________________________________________
0271 inline
0272 G4double G4VAnalysisReader::GetP1Xmax(G4int id) const
0273 {
0274   return fVP1Manager->GetMaxValue(G4Analysis::kX, id);
0275 }
0276 
0277 //_____________________________________________________________________________
0278 inline
0279 G4double G4VAnalysisReader::GetP1XWidth(G4int id) const
0280 {
0281   return fVP1Manager->GetWidth(G4Analysis::kX, id);
0282 }
0283 
0284 //_____________________________________________________________________________
0285 inline
0286 G4double G4VAnalysisReader::GetP1Ymin(G4int id) const
0287 {
0288 // Returns xmin value with applied unit and histogram function
0289 
0290   return fVP1Manager->GetMinValue(G4Analysis::kY, id);
0291 }
0292 
0293 //_____________________________________________________________________________
0294 inline
0295 G4double G4VAnalysisReader::GetP1Ymax(G4int id) const
0296 {
0297   return fVP1Manager->GetMaxValue(G4Analysis::kY, id);
0298 }
0299 
0300 //_____________________________________________________________________________
0301 inline
0302 G4int G4VAnalysisReader::GetP2Nxbins(G4int id) const
0303 {
0304   return fVP2Manager->GetNbins(G4Analysis::kX, id);
0305 }
0306 
0307 //_____________________________________________________________________________
0308 inline
0309 G4double G4VAnalysisReader::GetP2Xmin(G4int id) const
0310 {
0311 // Returns xmin value with applied unit and histogram function
0312 
0313   return fVP2Manager->GetMinValue(G4Analysis::kX, id);
0314 }
0315 
0316 //_____________________________________________________________________________
0317 inline
0318 G4double G4VAnalysisReader::GetP2Xmax(G4int id) const
0319 {
0320   return fVP2Manager->GetMaxValue(G4Analysis::kX, id);
0321 }
0322 
0323 //_____________________________________________________________________________
0324 inline
0325 G4double G4VAnalysisReader::GetP2XWidth(G4int id) const
0326 {
0327   return fVP2Manager->GetWidth(G4Analysis::kX, id);
0328 }
0329 
0330 //_____________________________________________________________________________
0331 inline
0332 G4int G4VAnalysisReader::GetP2Nybins(G4int id) const
0333 {
0334   return fVP2Manager->GetNbins(G4Analysis::kY, id);
0335 }
0336 
0337 //_____________________________________________________________________________
0338 inline
0339 G4double G4VAnalysisReader::GetP2Ymin(G4int id) const
0340 {
0341 // Returns xmin value with applied unit and histogram function
0342 
0343   return fVP2Manager->GetMinValue(G4Analysis::kY, id);
0344 }
0345 
0346 //_____________________________________________________________________________
0347 inline
0348 G4double G4VAnalysisReader::GetP2Ymax(G4int id) const
0349 {
0350   return fVP2Manager->GetMaxValue(G4Analysis::kY, id);
0351 }
0352 
0353 //_____________________________________________________________________________
0354 inline
0355 G4double G4VAnalysisReader::GetP2YWidth(G4int id) const
0356 {
0357   return fVP2Manager->GetWidth(G4Analysis::kY, id);
0358 }
0359 
0360 //_____________________________________________________________________________
0361 inline
0362 G4double G4VAnalysisReader::GetP2Zmin(G4int id) const
0363 {
0364 // Returns xmin value with applied unit and histogram function
0365 
0366   return fVP2Manager->GetMinValue(G4Analysis::kZ, id);
0367 }
0368 
0369 //_____________________________________________________________________________
0370 inline
0371 G4double G4VAnalysisReader::GetP2Zmax(G4int id) const
0372 {
0373   return fVP2Manager->GetMaxValue(G4Analysis::kZ, id);
0374 }
0375 
0376 //_____________________________________________________________________________
0377 inline
0378 G4String G4VAnalysisReader::GetH1Title(G4int id) const
0379 {
0380   return fVH1Manager->GetTitle(id);
0381 }
0382 
0383 //_____________________________________________________________________________
0384 inline
0385 G4String G4VAnalysisReader::GetH1XAxisTitle(G4int id) const
0386 {
0387   return fVH1Manager->GetAxisTitle(G4Analysis::kX, id);
0388 }
0389 
0390 //_____________________________________________________________________________
0391 inline
0392 G4String G4VAnalysisReader::GetH1YAxisTitle(G4int id) const
0393 {
0394   return fVH1Manager->GetAxisTitle(G4Analysis::kY, id);
0395 }
0396 
0397 //_____________________________________________________________________________
0398 inline
0399 G4String G4VAnalysisReader::GetH2Title(G4int id) const
0400 {
0401   return fVH2Manager->GetTitle(id);
0402 }
0403 
0404 //_____________________________________________________________________________
0405 inline
0406 G4String G4VAnalysisReader::GetH2XAxisTitle(G4int id) const
0407 {
0408   return fVH2Manager->GetAxisTitle(G4Analysis::kX, id);
0409 }
0410 
0411 //_____________________________________________________________________________
0412 inline
0413 G4String G4VAnalysisReader::GetH2YAxisTitle(G4int id) const
0414 {
0415   return fVH2Manager->GetAxisTitle(G4Analysis::kY, id);
0416 }
0417 
0418 //_____________________________________________________________________________
0419 inline
0420 G4String G4VAnalysisReader::GetH2ZAxisTitle(G4int id) const
0421 {
0422   return fVH2Manager->GetAxisTitle(G4Analysis::kZ, id);
0423 }
0424 
0425 //_____________________________________________________________________________
0426 inline
0427 G4String G4VAnalysisReader::GetH3Title(G4int id) const
0428 {
0429   return fVH3Manager->GetTitle(id);
0430 }
0431 
0432 //_____________________________________________________________________________
0433 inline
0434 G4String G4VAnalysisReader::GetH3XAxisTitle(G4int id) const
0435 {
0436   return fVH3Manager->GetAxisTitle(G4Analysis::kX, id);
0437 }
0438 
0439 //_____________________________________________________________________________
0440 inline
0441 G4String G4VAnalysisReader::GetH3YAxisTitle(G4int id) const
0442 {
0443   return fVH3Manager->GetAxisTitle(G4Analysis::kY, id);
0444 }
0445 
0446 //_____________________________________________________________________________
0447 inline
0448 G4String G4VAnalysisReader::GetH3ZAxisTitle(G4int id) const
0449 {
0450   return fVH3Manager->GetAxisTitle(G4Analysis::kZ, id);
0451 }
0452 
0453 //_____________________________________________________________________________
0454 inline
0455 G4String G4VAnalysisReader::GetP1Title(G4int id) const
0456 {
0457   return fVP1Manager->GetTitle(id);
0458 }
0459 
0460 //_____________________________________________________________________________
0461 inline
0462 G4String G4VAnalysisReader::GetP1XAxisTitle(G4int id) const
0463 {
0464   return fVP1Manager->GetAxisTitle(G4Analysis::kX, id);
0465 }
0466 
0467 //_____________________________________________________________________________
0468 inline
0469 G4String G4VAnalysisReader::GetP1YAxisTitle(G4int id) const
0470 {
0471   return fVP1Manager->GetAxisTitle(G4Analysis::kY, id);
0472 }
0473 
0474 //_____________________________________________________________________________
0475 inline
0476 G4String G4VAnalysisReader::GetP2Title(G4int id) const
0477 {
0478   return fVP2Manager->GetTitle(id);
0479 }
0480 
0481 //_____________________________________________________________________________
0482 inline
0483 G4String G4VAnalysisReader::GetP2XAxisTitle(G4int id) const
0484 {
0485   return fVP2Manager->GetAxisTitle(G4Analysis::kX, id);
0486 }
0487 
0488 //_____________________________________________________________________________
0489 inline
0490 G4String G4VAnalysisReader::GetP2YAxisTitle(G4int id) const
0491 {
0492   return fVP2Manager->GetAxisTitle(G4Analysis::kY, id);
0493 }
0494 
0495 //_____________________________________________________________________________
0496 inline
0497 G4String G4VAnalysisReader::GetP2ZAxisTitle(G4int id) const
0498 {
0499   return fVP2Manager->GetAxisTitle(G4Analysis::kZ, id);
0500 }
0501 
0502 //_____________________________________________________________________________
0503 inline
0504 G4int G4VAnalysisReader::GetVerboseLevel() const
0505 {
0506   return fState.GetVerboseLevel();
0507 }
0508 
0509 //_____________________________________________________________________________
0510 inline
0511 G4String G4VAnalysisReader::GetType() const
0512 {
0513   return fVFileManager->GetFileType();
0514 }
0515 
0516 //_____________________________________________________________________________
0517 inline
0518 G4String G4VAnalysisReader::GetFileType() const
0519 {
0520   return fVFileManager->GetFileType();
0521 }