//#include <TTree.h>
#include <TH1.h>
#include <TH2.h>
-#include <TH1S.h>
+//#include <TH1S.h>
#include <TMath.h>
#include <TFile.h>
#include "AliHMPIDParam.h"
#include "AliHMPIDRawStream.h"
-class TH1I;
class TFile;
class AliHMPIDCalib: public TObject {
{
public:
//ctor&dtor
- virtual ~AliHMPIDParam() {
- if (fgInstance){
- for(Int_t i=0;i<7;i++){ delete fM[i]; fM[i] = 0x0;}
- fgInstance=0;
- }
- }
+ virtual ~AliHMPIDParam() {if (fgInstance){for(Int_t i=0;i<7;i++){delete fM[i];fM[i] = 0x0;};fgInstance=0;}}
void Print(Option_t *opt="") const; //print current parametrization
#include <AliPreprocessor.h> //base class
+//.
//.
//HMPID Preprocessor base class
//.
+//.
class TMap;
class AliHMPIDPreprocessor : public AliPreprocessor
#include "AliHMPIDRawStream.h"
#include "AliLog.h"
-//
+//.
// HMPID AliHMPIDQADataMakerRec base class
// for QA of reconstruction
// here also errors are calculated
#include "AliHMPIDRawStream.h"
#include "AliLog.h"
-//
+//.
// HMPID AliHMPIDQADataMakerSim base class
// for QA of simulation
// here also errors are calculated
///////////////////////////////////////////////////////////////////////////////
#include <TObject.h>
-#include <TRandom.h>
#include "AliHMPIDParam.h"
#include <AliBitPacking.h>
#include <AliFstream.h>
void InitVars(Int_t n);
void DelVars();
- Int_t GetDDLNumber() const { return fDDLNumber; } // Provide current DDL number
static inline Int_t GetPad(Int_t ddl,Int_t row,Int_t dil,Int_t pad); //get absolute pad number
static Int_t GetNDDL() { return kNDDL;} //return the number of max # of DDLs
static Int_t GetNErrors() { return kSumErr;} //return the number of max # of Error Types
static inline Char_t* GetErrName(Int_t eType);
inline Bool_t SetZeroSup (Bool_t isSup);
- inline Bool_t GetZeroSup();
- inline Int_t GetErrors(Int_t ddl,Int_t eType); //Get errors and occurance
- Int_t GetDDLNumber() { return fDDLNumber;} //return the number of DDL actually being decoded
- UInt_t GetLDCNumber() { return fLDCNumber;} //return the number of LDC actually being decoded
- UInt_t GetTimeStamp() { return fTimeStamp;} //return the time stamp of the event actually being decoded
+ inline Bool_t GetZeroSup()const;
+ inline Int_t GetErrors(Int_t ddl,Int_t eType)const; //Get errors and occurance
+ Int_t GetDDLNumber() const{ return fDDLNumber;} //return the number of DDL actually being decoded
+ UInt_t GetLDCNumber() const{ return fLDCNumber;} //return the number of LDC actually being decoded
+ UInt_t GetTimeStamp() const{ return fTimeStamp;} //return the time stamp of the event actually being decoded
return fZeroSup;
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-Bool_t AliHMPIDRawStream::GetZeroSup()
+Bool_t AliHMPIDRawStream::GetZeroSup()const
{
if(fZeroSup==kTRUE) return kTRUE;
else return kFALSE;
}//chambers loop
}//WriteRaw()
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-Int_t AliHMPIDRawStream::GetErrors(Int_t ddl,Int_t eType)
+Int_t AliHMPIDRawStream::GetErrors(Int_t ddl,Int_t eType)const
{
// Return the number of errors for a given error tye during raw data reading
// Arguments: errorType
//
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-void AliHMPIDRecon::DeleteVars()
+void AliHMPIDRecon::DeleteVars()const
{
//..
//Delete variables
virtual ~AliHMPIDRecon() {;} //dtor
void InitVars (Int_t n); //init space for variables
- void DeleteVars (); //delete variables
+ void DeleteVars ()const; //delete variables
void CkovAngle (AliESDtrack *pTrk,TClonesArray *pCluLst,Double_t nmean, Double_t qthre); //reconstructed Theta Cerenkov
Bool_t FindPhotCkov (Double_t cluX,Double_t cluY,Double_t &thetaCer,Double_t &phiCer ); //find ckov angle for single photon candidate
Double_t FindRingCkov (Int_t iNclus ); //best ckov for ring formed by found photon candidates
TVector2 TraceForward (TVector3 dirCkov )const;//tracing forward a photon from (x,y) to PC
void Lors2Trs (TVector3 dirCkov,Double_t &thetaCer,Double_t &phiCer )const;//LORS to TRS
void Trs2Lors (TVector3 dirCkov,Double_t &thetaCer,Double_t &phiCer )const;//TRS to LORS
- TVector2 GetMip ( )
+ TVector2 GetMip ( )const
{return fMipPos;} //mip coordinates
- Double_t GetRingArea ( )
+ Double_t GetRingArea ( )const
{return fRingArea;} //area of the current ring in cm^2
- Double_t GetRingAcc ( )
+ Double_t GetRingAcc ( )const
{return fRingAcc;} //portion of the ring ([0,1]) accepted by geometry.To scale n. of photons
void SetTrack (Double_t xRad,Double_t yRad,Double_t theta,Double_t phi )
{fTrkDir.SetMagThetaPhi(1,theta,phi); fTrkPos.Set(xRad,yRad);} //set track parameter at RAD
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
void AliHMPIDReconHTA::FillZeroChan(TH2I *deconv)const
{
+ //If fills eventually channel without entries
+ //inthe histo "database" jyst interpolating the neighboring cells
+ // Arguments: histogram pointer of the database
+ // Returns: none
+ //
Int_t nbinx = deconv->GetNbinsX();
Int_t nbiny = deconv->GetNbinsY();
for(Int_t i = 0;i<nbinx;i++) {
#include "AliHMPIDv0.h"
-#include <TGeoManager.h>
-
ClassImp(AliHMPIDv0)
void AliHMPIDv0::StepManager()
//.
#include "AliHMPID.h"
+class TGeoManager;
+
class AliHMPIDv0 : public AliHMPID
{
public:
#include <AliMC.h> //StepManager()
#include <AliRun.h> //CreateMaterials()
#include <AliMagF.h> //CreateMaterials()
-#include <TGeoManager.h> //CreateGeometry()
+//#include <TGeoManager.h> //CreateGeometry()
#include <TF1.h> //DefineOpticalProperties()
#include <TF2.h> //DefineOpticalProperties()
#include <TLorentzVector.h> //IsLostByFresnel()
#include "AliHMPID.h" //base class
#include "AliHMPIDDigitizer.h" //CreateDigitizer()
+class TGeoManager;
+
class AliHMPIDv1 : public AliHMPID //TObject-TNamed-AliModule-AliDetector-AliHMPID-AliHMPIDv0
{
public:
#include <AliMC.h> //StepManager()
#include <AliRun.h> //CreateMaterials()
#include <AliMagF.h> //CreateMaterials()
-#include <TGeoManager.h> //CreateGeometry()
#include <TF1.h> //DefineOpticalProperties()
#include <TF2.h> //DefineOpticalProperties()
#include <TLorentzVector.h> //IsLostByFresnel()
#include <AliMC.h> //StepManager()
#include <AliRun.h> //CreateMaterials()
#include <AliMagF.h> //CreateMaterials()
-#include <TGeoManager.h> //CreateGeometry()
#include <TF1.h> //DefineOpticalProperties()
#include <TF2.h> //DefineOpticalProperties()
#include <TLorentzVector.h> //IsLostByFresnel()