AliPhysics  c2a2810 (c2a2810)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnaRandomTrigger Class Reference

Gerenate a random trigger. More...

#include <AliAnaRandomTrigger.h>

Inheritance diagram for AliAnaRandomTrigger:

Public Member Functions

 AliAnaRandomTrigger ()
 Default Constructor. Initialize parameters. More...
 
virtual ~AliAnaRandomTrigger ()
 
Bool_t ExcludeDeadBadRegions (Float_t eta, Float_t phi)
 
TObjString * GetAnalysisCuts ()
 Save parameters used for analysis. More...
 
TList * GetCreateOutputObjects ()
 
void InitParameters ()
 Initialize the parameters of the analysis. More...
 
void MakeAnalysisFillAOD ()
 
void MakeAnalysisFillHistograms ()
 
void Print (const Option_t *opt) const
 Print some relevant parameters set for the analysis. More...
 
void SetEtaCut (Float_t min, Float_t max)
 
void SetPhiCut (Float_t min, Float_t max)
 
void SetNumberOfRandomParticles (Int_t n)
 
void SetTriggerDetector (TString &det)
 Set the detrimeter for the analysis. More...
 
void SetTriggerDetector (Int_t det)
 
- Public Member Functions inherited from AliAnaCaloTrackCorrBaseClass
 AliAnaCaloTrackCorrBaseClass ()
 
virtual ~AliAnaCaloTrackCorrBaseClass ()
 Destructor. More...
 
virtual void Init ()
 
virtual void InitDebug ()
 
virtual void FillEventMixPool ()
 
virtual void Terminate (TList *)
 
virtual void AddToHistogramsName (TString add)
 
virtual TString GetAddedHistogramsStringToName () const
 
virtual TString GetBaseParametersList ()
 
virtual Int_t GetDebug () const
 
virtual void SetDebug (Int_t d)
 
virtual Int_t GetEventNumber () const
 
virtual Int_t GetTrackMultiplicity () const
 
virtual AliCentrality * GetCentrality () const
 
virtual Int_t GetEventCentrality () const
 
virtual AliEventplane * GetEventPlane () const
 
virtual Double_t GetEventPlaneAngle () const
 
virtual TString GetEventPlaneMethod () const
 
virtual void AddAODParticle (AliAODPWG4Particle part)
 
virtual void ConnectInputOutputAODBranches ()
 
virtual TClonesArray * GetCreateOutputAODBranch ()
 Create AOD branch filled in the analysis. More...
 
virtual TString GetInputAODName () const
 
virtual void SetInputAODName (TString name)
 
virtual TString GetOutputAODName () const
 
virtual void SetOutputAODName (TString name)
 
virtual Bool_t NewOutputAOD () const
 
virtual TString GetOutputAODClassName () const
 
virtual void SetOutputAODClassName (TString name)
 
virtual TString GetAODObjArrayName () const
 
virtual void SetAODObjArrayName (TString name)
 
virtual TClonesArray * GetInputAODBranch () const
 
virtual TClonesArray * GetOutputAODBranch () const
 
virtual TClonesArray * GetAODBranch (const TString &aodBranchName) const
 Recover ouput and input AOD pointers for each event in AliCaloTrackMaker. More...
 
virtual TClonesArray * GetAODCaloClusters () const
 
virtual TClonesArray * GetAODTracks () const
 
virtual AliVCaloCells * GetPHOSCells () const
 
virtual AliVCaloCells * GetEMCALCells () const
 
virtual TObjArray * GetCTSTracks () const
 
virtual TObjArray * GetEMCALClusters () const
 
virtual TObjArray * GetPHOSClusters () const
 
virtual TClonesArray * GetNonStandardJets () const
 
virtual AliAODJetEventBackground * GetBackgroundJets () const
 
virtual Int_t GetCalorimeter () const
 
virtual TString GetCalorimeterString () const
 
virtual void SetCalorimeter (TString &calo)
 Set the calorimeter for the analysis. A string. More...
 
virtual void SetCalorimeter (Int_t calo)
 Set the calorimeter for the analysis. An integer. More...
 
virtual Bool_t IsDataMC () const
 
virtual void SwitchOnDataMC ()
 
virtual void SwitchOffDataMC ()
 
virtual Bool_t IsFiducialCutOn () const
 
virtual void SwitchOnFiducialCut ()
 
virtual void SwitchOffFiducialCut ()
 
virtual Bool_t IsRealCaloAcceptanceOn () const
 
virtual void SwitchOnRealCaloAcceptance ()
 
virtual void SwitchOffRealCaloAcceptance ()
 
virtual Bool_t IsCaloPIDOn () const
 
virtual void SwitchOnCaloPID ()
 
virtual void SwitchOffCaloPID ()
 
virtual Bool_t MakePlotsOn () const
 
virtual void SwitchOnPlotsMaking ()
 
virtual void SwitchOffPlotsMaking ()
 
virtual Bool_t IsPileUpAnalysisOn () const
 
virtual void SwitchOnFillPileUpHistograms ()
 
virtual void SwitchOffFillPileUpHistograms ()
 
virtual Bool_t IsHighMultiplicityAnalysisOn () const
 
virtual void SwitchOnFillHighMultiplicityHistograms ()
 
virtual void SwitchOffFillHighMultiplicityHistograms ()
 
virtual Float_t GetMaxPt () const
 
virtual Float_t GetMinPt () const
 
virtual void SetMaxPt (Float_t pt)
 
virtual void SetMinPt (Float_t pt)
 
virtual void SetPtCutRange (Double_t mi, Double_t ma)
 
virtual Float_t GetMaxEnergy () const
 
virtual Float_t GetMinEnergy () const
 
virtual void SetMaxEnergy (Float_t e)
 
virtual void SetMinEnergy (Float_t e)
 
virtual void SetEnergyCutRange (Double_t mi, Double_t ma)
 
virtual void SetPairTimeCut (Float_t t)
 
virtual Float_t GetPairTimeCut () const
 Time cut in ns. More...
 
Int_t GetFirstSMCoveredByTRD () const
 Time cut in ns. More...
 
void SetFirstSMCoveredByTRD (Int_t n)
 
virtual Int_t GetNZvertBin () const
 
virtual Int_t GetNRPBin () const
 Number of bins in vertex. More...
 
virtual Int_t GetNCentrBin () const
 Number of bins in reaction plain. More...
 
virtual Int_t GetNTrackMultBin () const
 Number of bins in centrality. More...
 
virtual Int_t GetNMaxEvMix () const
 Number of bins in track multiplicity. More...
 
virtual Float_t GetZvertexCut () const
 Maximal number of events for mixin. More...
 
virtual Int_t GetTrackMultiplicityBin () const
 Cut on vertex position. More...
 
virtual Int_t GetEventCentralityBin () const
 
virtual Int_t GetEventRPBin () const
 
virtual Int_t GetEventVzBin () const
 
virtual Int_t GetEventMixBin () const
 
virtual Int_t GetEventMixBin (Int_t iCen, Int_t iVz, Int_t iRP) const
 
virtual Double_t GetEventWeight () const
 
virtual void SetNZvertBin (Int_t n=1)
 
virtual void SetNRPBin (Int_t n=1)
 Number of bins for vertex position. More...
 
virtual void SetNCentrBin (Int_t n=1)
 Number of bins in reaction plain. More...
 
virtual void SetNTrackMultBin (Int_t n=1)
 Number of bins in centrality. More...
 
virtual void SetNMaxEvMix (Int_t n=20)
 Number of bins in track multiplicity. More...
 
virtual void SetTrackMultiplicityBin (Int_t bin, Int_t mult)
 Maximal number of events for mixing. More...
 
virtual void SwitchOnTrackMultBins ()
 
virtual void SwitchOffTrackMultBins ()
 
virtual void SwitchOnOwnMix ()
 
virtual void SwitchOffOwnMix ()
 
virtual Bool_t DoOwnMix () const
 
virtual Bool_t UseTrackMultBins () const
 
virtual Int_t CheckMixedEventVertex (Int_t caloLabel, Int_t trackLabel)
 
virtual AliMixedEvent * GetMixedEvent () const
 
virtual Int_t GetNMixedEvent () const
 
virtual void GetVertex (Double_t vertex[3]) const
 
virtual Double_t * GetVertex (Int_t evtIndex) const
 
virtual void GetVertex (Double_t vertex[3], Int_t evtIndex) const
 
virtual Int_t GetV0Signal (Int_t i) const
 
virtual Int_t GetV0Multiplicity (Int_t i) const
 
Float_t GetPhi (Float_t phi) const
 Shift phi angle in case of negative value 360 degrees. Example TLorenzVector::Phi defined in -pi to pi. More...
 
Float_t DegToRad (Float_t deg) const
 
Float_t RadToDeg (Float_t rad) const
 
virtual Bool_t IsTrackMatched (AliVCluster *cluster, AliVEvent *event)
 
virtual Int_t GetModuleNumberCellIndexes (Int_t absId, Int_t calo, Int_t &icol, Int_t &irow, Int_t &iRCU) const
 
virtual Int_t GetModuleNumber (AliAODPWG4Particle *part) const
 
virtual Int_t GetModuleNumber (AliVCluster *cluster) const
 
virtual AliVCluster * FindCluster (TObjArray *clusters, Int_t clId, Int_t &iclus, Int_t first=0)
 
virtual AliStack * GetMCStack () const
 
virtual AliHeader * GetMCHeader () const
 
virtual AliGenEventHeader * GetMCGenEventHeader () const
 
virtual AliCaloPIDGetCaloPID ()
 
virtual AliCalorimeterUtilsGetCaloUtils () const
 
virtual AliFiducialCutGetFiducialCut ()
 
virtual AliHistogramRangesGetHistogramRanges ()
 
virtual AliIsolationCutGetIsolationCut ()
 
virtual AliMCAnalysisUtilsGetMCAnalysisUtils ()
 
virtual AliNeutralMesonSelectionGetNeutralMesonSelection ()
 
virtual AliCaloTrackReaderGetReader () const
 
virtual AliEMCALGeometry * GetEMCALGeometry () const
 
virtual AliPHOSGeoUtils * GetPHOSGeometry () const
 
virtual void SetCaloPID (AliCaloPID *pid)
 
virtual void SetCaloUtils (AliCalorimeterUtils *caloutils)
 
virtual void SetFiducialCut (AliFiducialCut *fc)
 
virtual void SetHistogramRanges (AliHistogramRanges *hr)
 
virtual void SetIsolationCut (AliIsolationCut *ic)
 
virtual void SetMCAnalysisUtils (AliMCAnalysisUtils *mcutils)
 
virtual void SetNeutralMesonSelection (AliNeutralMesonSelection *const nms)
 
virtual void SetReader (AliCaloTrackReader *reader)
 

Private Member Functions

 AliAnaRandomTrigger (const AliAnaRandomTrigger &r)
 Copy constructor not implemented. More...
 
AliAnaRandomTriggeroperator= (const AliAnaRandomTrigger &r)
 Assignment operator not implemented. More...
 

Private Attributes

Int_t fTriggerDetector
 Detector : EMCAL, PHOS, CTS. More...
 
TString fTriggerDetectorString
 Detector : EMCAL, PHOS, CTS. More...
 
Float_t fEtaCut [2]
 Eta acceptance. More...
 
Float_t fPhiCut [2]
 Phi acceptance, radians. More...
 
TRandom3 fRandom
 Random generator. More...
 
Int_t fNRandom
 Number of random particles per event. More...
 
TLorentzVector fMomentum
 ! Avoid generating TLorentzVectors per event. More...
 
TH1F * fhE
 ! E distribution More...
 
TH1F * fhPt
 ! pT distribution More...
 
TH2F * fhPhi
 ! phi distribution vs pT, negative More...
 
TH2F * fhEta
 ! eta distribution vs pT, negative More...
 
TH2F * fhEtaPhi
 ! eta vs phi distribution of positive charge More...
 

Additional Inherited Members

- Public Types inherited from AliAnaCaloTrackCorrBaseClass
enum  detector {
  kEMCAL = AliFiducialCut::kEMCAL, kPHOS = AliFiducialCut::kPHOS, kCTS = AliFiducialCut::kCTS, kDCAL = AliFiducialCut::kDCAL,
  kDCALPHOS = AliFiducialCut::kDCALPHOS
}
 Set the tag identifing the main detector used in the analysis. More...
 

Detailed Description

Gerenate a random trigger.

Generate a random trigger, input for other analysis Set flat energy distribution over acceptance of EMCAL, PHOS or CTS Be careful, correlate only with Min Bias events this random trigger particle

More information can be found in this twiki and particularly in this section.

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-IN2P3-CNRS

Definition at line 27 of file AliAnaRandomTrigger.h.

Constructor & Destructor Documentation

AliAnaRandomTrigger::AliAnaRandomTrigger ( )

Default Constructor. Initialize parameters.

Definition at line 32 of file AliAnaRandomTrigger.cxx.

virtual AliAnaRandomTrigger::~AliAnaRandomTrigger ( )
inlinevirtual

Definition at line 34 of file AliAnaRandomTrigger.h.

AliAnaRandomTrigger::AliAnaRandomTrigger ( const AliAnaRandomTrigger r)
private

Copy constructor not implemented.

Member Function Documentation

Bool_t AliAnaRandomTrigger::ExcludeDeadBadRegions ( Float_t  eta,
Float_t  phi 
)

Check if there is a dead or bad region in a detector. Only EMCAL for now.

Definition at line 49 of file AliAnaRandomTrigger.cxx.

Referenced by MakeAnalysisFillAOD().

TObjString * AliAnaRandomTrigger::GetAnalysisCuts ( )
virtual

Save parameters used for analysis.

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 129 of file AliAnaRandomTrigger.cxx.

TList * AliAnaRandomTrigger::GetCreateOutputObjects ( )
virtual

Create histograms to be saved in output file and store them in fOutputContainer

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 155 of file AliAnaRandomTrigger.cxx.

void AliAnaRandomTrigger::InitParameters ( )
virtual

Initialize the parameters of the analysis.

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 195 of file AliAnaRandomTrigger.cxx.

Referenced by AliAnaRandomTrigger().

void AliAnaRandomTrigger::MakeAnalysisFillAOD ( )
virtual

Do analysis and fill aods. Generate particle randomly. fNRandom particles per event.

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 231 of file AliAnaRandomTrigger.cxx.

void AliAnaRandomTrigger::MakeAnalysisFillHistograms ( )
virtual

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 272 of file AliAnaRandomTrigger.cxx.

AliAnaRandomTrigger& AliAnaRandomTrigger::operator= ( const AliAnaRandomTrigger r)
private

Assignment operator not implemented.

void AliAnaRandomTrigger::Print ( const Option_t *  opt) const
virtual

Print some relevant parameters set for the analysis.

Reimplemented from AliAnaCaloTrackCorrBaseClass.

Definition at line 212 of file AliAnaRandomTrigger.cxx.

Referenced by ConfigureRandomTriggerAnalysis().

void AliAnaRandomTrigger::SetEtaCut ( Float_t  min,
Float_t  max 
)
inline

Definition at line 50 of file AliAnaRandomTrigger.h.

Referenced by ConfigureRandomTriggerAnalysis().

void AliAnaRandomTrigger::SetNumberOfRandomParticles ( Int_t  n)
inline

Definition at line 54 of file AliAnaRandomTrigger.h.

void AliAnaRandomTrigger::SetPhiCut ( Float_t  min,
Float_t  max 
)
inline

Definition at line 52 of file AliAnaRandomTrigger.h.

Referenced by ConfigureRandomTriggerAnalysis().

void AliAnaRandomTrigger::SetTriggerDetector ( TString &  det)

Set the detrimeter for the analysis.

Definition at line 294 of file AliAnaRandomTrigger.cxx.

Referenced by ConfigureRandomTriggerAnalysis().

void AliAnaRandomTrigger::SetTriggerDetector ( Int_t  det)

Definition at line 309 of file AliAnaRandomTrigger.cxx.

Member Data Documentation

Float_t AliAnaRandomTrigger::fEtaCut[2]
private

Eta acceptance.

Definition at line 63 of file AliAnaRandomTrigger.h.

Referenced by GetAnalysisCuts(), InitParameters(), MakeAnalysisFillAOD(), Print(), and SetEtaCut().

TH1F* AliAnaRandomTrigger::fhE
private

! E distribution

Definition at line 71 of file AliAnaRandomTrigger.h.

Referenced by GetCreateOutputObjects(), and MakeAnalysisFillHistograms().

TH2F* AliAnaRandomTrigger::fhEta
private

! eta distribution vs pT, negative

Definition at line 74 of file AliAnaRandomTrigger.h.

Referenced by GetCreateOutputObjects(), and MakeAnalysisFillHistograms().

TH2F* AliAnaRandomTrigger::fhEtaPhi
private

! eta vs phi distribution of positive charge

Definition at line 75 of file AliAnaRandomTrigger.h.

Referenced by GetCreateOutputObjects(), and MakeAnalysisFillHistograms().

TH2F* AliAnaRandomTrigger::fhPhi
private

! phi distribution vs pT, negative

Definition at line 73 of file AliAnaRandomTrigger.h.

Referenced by GetCreateOutputObjects(), and MakeAnalysisFillHistograms().

TH1F* AliAnaRandomTrigger::fhPt
private

! pT distribution

Definition at line 72 of file AliAnaRandomTrigger.h.

Referenced by GetCreateOutputObjects(), and MakeAnalysisFillHistograms().

TLorentzVector AliAnaRandomTrigger::fMomentum
private

! Avoid generating TLorentzVectors per event.

Definition at line 68 of file AliAnaRandomTrigger.h.

Referenced by MakeAnalysisFillAOD().

Int_t AliAnaRandomTrigger::fNRandom
private

Number of random particles per event.

Definition at line 66 of file AliAnaRandomTrigger.h.

Referenced by GetAnalysisCuts(), InitParameters(), MakeAnalysisFillAOD(), MakeAnalysisFillHistograms(), and SetNumberOfRandomParticles().

Float_t AliAnaRandomTrigger::fPhiCut[2]
private

Phi acceptance, radians.

Definition at line 64 of file AliAnaRandomTrigger.h.

Referenced by GetAnalysisCuts(), InitParameters(), MakeAnalysisFillAOD(), Print(), and SetPhiCut().

TRandom3 AliAnaRandomTrigger::fRandom
private

Random generator.

Definition at line 65 of file AliAnaRandomTrigger.h.

Referenced by MakeAnalysisFillAOD().

Int_t AliAnaRandomTrigger::fTriggerDetector
private

Detector : EMCAL, PHOS, CTS.

Definition at line 61 of file AliAnaRandomTrigger.h.

Referenced by ExcludeDeadBadRegions(), MakeAnalysisFillAOD(), and SetTriggerDetector().

TString AliAnaRandomTrigger::fTriggerDetectorString
private

Detector : EMCAL, PHOS, CTS.

Definition at line 62 of file AliAnaRandomTrigger.h.

Referenced by GetAnalysisCuts(), Print(), and SetTriggerDetector().


The documentation for this class was generated from the following files: