AliPhysics  cda3415 (cda3415)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QATrain Class Reference
Inheritance diagram for QATrain:

Public Types

enum  { kCDBConnect = 0x1, kEventStats = 0x2, kCentrality = 0x4, kDefaultFlags = (kCDBConnect|kEventStats|kCentrality) }
 
enum  {
  kVertex = 0x000001, kSymmetric = 0x000002, kVZERO = 0x000004, kTPC = 0x000008,
  kSPD = 0x000010, kSDD = 0x000020, kSSD = 0x000040, kITS = 0x000080,
  kITSSA = 0x000100, kITSAlign = 0x000200, kTRD = 0x000400, kZDC = 0x000800,
  kCALO = 0x001000, kMUONTRG = 0x002000, kMUONEff = 0x004000, kV0 = 0x008000,
  kBRes = 0x010000, kMUON = 0x020000, kTOF = 0x040000, kPIDRes = 0x080000,
  kPID = 0x100000, kHMPID = 0x200000, kT0 = 0x400000, kFMD = 0x800000,
  kDefaultModules
}
 
- Public Types inherited from TrainSetup
enum  { kVersion = 2 }
 

Public Member Functions

 QATrain (const char *name="PilotAnalysis")
 
void SetFlags (UShort_t flags)
 
void SetRun (UInt_t run)
 
void SetModules (UInt_t m)
 
- Public Member Functions inherited from TrainSetup
 TrainSetup (const TString &name)
 
 TrainSetup (const TrainSetup &o)
 
TrainSetupoperator= (const TrainSetup &o)
 
virtual ~TrainSetup ()
 
Bool_t Init ()
 
void PrintTimer (TStopwatch &timer, const char *where)
 
Bool_t Run ()
 
OptionListOptions ()
 
void Print (Option_t *="") const
 
Bool_t Version (std::ostream &o=std::cout)
 
Bool_t Help (std::ostream &o=std::cout, bool asProg=false)
 

Protected Member Functions

AliVEventHandler * CreateInputHandler (EType type)
 
AliAnalysisTaskSECreateTaskAndSetCollisionCandidates (const char *macro, const char *args="")
 
void CreateCDBConnect ()
 
void CreatePhysicsSelection (Bool_t mc, AliAnalysisManager *mgr)
 
void CreateCentralitySelection (Bool_t mc, AliAnalysisManager *mgr)
 
void CreateVertex ()
 
void CreateSymmetric ()
 
void CreateVZERO ()
 
void CreateTPC ()
 
void CreateSPD ()
 
void CreateSDD ()
 
void CreateSSD ()
 
void CreateITS ()
 
void CreateITSSA ()
 
void CreateITSAlign ()
 
void CreateTRD ()
 
void CreateZDC ()
 
void CreateCALO (EMode mode, Bool_t par)
 
void CreateMUONTRG (EMode mode, Bool_t par)
 
void CreateMUONEff ()
 
void CreateV0 ()
 
void CreateBRes ()
 
void CreateMUON (EMode mode, Bool_t par)
 
void CreateTOF ()
 
void CreatePIDRes ()
 
void CreatePID ()
 
void CreateHMPID ()
 
void CreateT0 ()
 
void CreateFMD (EMode mode, Bool_t par)
 
void CreateTasks (EMode mode, Bool_t par, AliAnalysisManager *mgr)
 
AliVEventHandler * CreateOutputHandler (EType)
 
- Protected Member Functions inherited from TrainSetup
virtual const Char_tClassName () const =0
 
virtual void AddMonitor (const TString &name)
 
virtual void CreateMonitors ()
 
virtual AliAnalysisManagerCreateAnalysisManager (const char *name)
 
virtual AliVEventHandler * CreateInputHandler (UShort_t type, Bool_t esdRecPoints=false)
 
virtual AliVEventHandler * CreateMCHandler (UShort_t, bool mc)
 
virtual AliVEventHandler * CreateOutputHandler (UShort_t type)
 
virtual void CreateCentralitySelection (Bool_t mc)
 
virtual void CreateTasks (AliAnalysisManager *mgr)=0
 
virtual AliAnalysisTaskCoupleCar (const TString &macro, const TString &args)
 
virtual AliAnalysisTaskCoupleCar (const TString &macro)
 
virtual AliAnalysisTaskSECoupleSECar (const TString &macro, const TString &args, UInt_t mask=0)
 
virtual AliAnalysisTaskSECoupleSECar (const TString &macro, UInt_t mask=0)
 
virtual AliAnalysisTaskFindCar (const TString &name, Bool_t verbose=true) const
 
void LoadOADB (Bool_t asPar=false)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, UInt_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Int_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Long64_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Double_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Bool_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, const char *val)
 
void SetOnTaskGeneric (AliAnalysisTaskSE *task, const char *what, const char *val)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Double_t defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Bool_t)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, const char *defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Int_t defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Long64_t defval)
 
virtual Bool_t HasMCHandler () const
 
virtual void AddOCDBConnect ()
 
virtual void * AddTenderSupply (void *tender, UShort_t flag, Int_t debug)
 
virtual void AddTender (const TString &sup)
 
virtual void AddTender (UShort_t which)
 
Bool_t SetupWorkingDirectory ()
 
virtual void SaveSetup (Bool_t asShellScript)
 
virtual void PostShellCode (std::ostream &o)
 
void SavePostShellScript ()
 

Protected Attributes

UInt_t fRun
 
UShort_t fFlags
 
UInt_t fModules
 
UInt_t fTriggerMask
 
UInt_t fTriggerHM
 
UInt_t fTriggerEMC
 
UInt_t fTriggerMUONBarrel
 
UShort_t fCollisionType
 
Bool_t fUseCent
 
- Protected Attributes inherited from TrainSetup
TString fName
 
TString fEscapedName
 
TString fDatimeString
 
OptionList fOptions
 
RailwayfRailway
 

Detailed Description

Analysis train to do full Quality Assurance train

Definition at line 22 of file QATrain.C.

Member Enumeration Documentation

anonymous enum
Enumerator
kCDBConnect 
kEventStats 
kCentrality 
kDefaultFlags 

Definition at line 25 of file QATrain.C.

anonymous enum
Enumerator
kVertex 
kSymmetric 
kVZERO 
kTPC 
kSPD 
kSDD 
kSSD 
kITS 
kITSSA 
kITSAlign 
kTRD 
kZDC 
kCALO 
kMUONTRG 
kMUONEff 
kV0 
kBRes 
kMUON 
kTOF 
kPIDRes 
kPID 
kHMPID 
kT0 
kFMD 
kDefaultModules 

Definition at line 31 of file QATrain.C.

Constructor & Destructor Documentation

QATrain::QATrain ( const char *  name = "PilotAnalysis")
inline

Constructor. Date and time must be specified when running this in Termiante mode on Grid

Parameters
nameName of train

Definition at line 72 of file QATrain.C.

Member Function Documentation

void QATrain::CreateBRes ( )
inlineprotected

Definition at line 249 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateCALO ( EMode  mode,
Bool_t  par 
)
inlineprotected

Definition at line 211 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateCDBConnect ( )
inlineprotected

Definition at line 104 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateCentralitySelection ( Bool_t  mc,
AliAnalysisManager mgr 
)
inlineprotected

Definition at line 119 of file QATrain.C.

void QATrain::CreateFMD ( EMode  mode,
Bool_t  par 
)
inlineprotected

Definition at line 300 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateHMPID ( )
inlineprotected

Definition at line 286 of file QATrain.C.

Referenced by CreateTasks().

AliVEventHandler* QATrain::CreateInputHandler ( EType  type)
inlineprotected

Definition at line 87 of file QATrain.C.

void QATrain::CreateITS ( )
inlineprotected

Definition at line 178 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateITSAlign ( )
inlineprotected

Definition at line 193 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateITSSA ( )
inlineprotected

Definition at line 187 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateMUON ( EMode  mode,
Bool_t  par 
)
inlineprotected

Definition at line 258 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateMUONEff ( )
inlineprotected

Definition at line 238 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateMUONTRG ( EMode  mode,
Bool_t  par 
)
inlineprotected

Definition at line 229 of file QATrain.C.

Referenced by CreateTasks().

AliVEventHandler* QATrain::CreateOutputHandler ( EType  )
inlineprotected

Crete output handler - we don't want one here.

Returns
0

Definition at line 364 of file QATrain.C.

void QATrain::CreatePhysicsSelection ( Bool_t  mc,
AliAnalysisManager mgr 
)
inlineprotectedvirtual

Create physics selection, and add to manager

The physis selectuion used can be specified in the option ps.

  • NONE Do not set a physics selection
  • BARE Set physics selection on input handler directly
  • CUSTOM[=macro] Read custom physics selection, macro. If not macro is given, then assume it to be CustomPS.C
  • ALL Do not ignore background triggers.

The macro passed to CUSTOM must accept a single argument of a pointer to an AliPhysicsSelection object. The macro should set the collision and background candidates, as well as the filling scheme, and trigger analysis.

void CustomPS(AliPhysicsSelection* ps)
{
// --- Defaults filling scheme ----------------------------------
AliOADBFillingScheme * cFS = new AliOADBFillingScheme("Default");
cFS->SetFillingSchemeName("Default");
cFS->SetBXIDs("B", "");
cFS->SetBXIDs("A", "");
cFS->SetBXIDs("AC", "");
cFS->SetBXIDs("ACE","");
cFS->SetBXIDs("C", "");
cFS->SetBXIDs("E", "");
// --- Define hardware triggers, and how to replay them offline -
// This redefines Min.Bias. by an or of VZERO-OR and SPD-FASTOR
Int_t id = 0;
// B (bunch-crossing) trigger - or of CINT5 (V0-OR)
// and SPD COSMB (FASTOR)
cPS->AddCollisionTriggerClass(AliVEvent::kMB,
"+CINT5-B-NOPF-ALLNOTRD,"
"+C0SMB-B-NOPF-ALLNOTRD","B", id);
// Control triggers
cPS->AddBGTriggerClass (AliVEvent::kMB,
"+CINT5-A-NOPF-ALLNOTRD,"
"+C0SMB-A-NOPF-ALLNOTRD","A", id);
cPS->AddBGTriggerClass (AliVEvent::kMB,
"+CINT5-C-NOPF-ALLNOTRD,"
"+C0SMB-C-NOPF-ALLNOTRD","C", id);
cPS->AddBGTriggerClass (AliVEvent::kMB,
"+CINT5-E-NOPF-ALLNOTRD,"
"+C0SMB-E-NOPF-ALLNOTRD","E", id);
cPS->AddBGTriggerClass (AliVEvent::kMB,
"+CINT5-ACE-NOPF-ALLNOTRD,"
"+C0SMB-ACE-NOPF-ALLNOTRD","ACE",id);
// How to replay hardware trigger
cPS->SetHardwareTrigger (id,"SPDGFO >= 1 || V0A || V0C");
// Additional off-line trigger
cPS->SetOfflineTrigger (id,"(SPDGFO >= 1 || V0A || V0C) "
"&& !V0ABG && !V0CBG && !TPCLaserWarmUp");
// --- Trigger analysis defaults --------------------------------
AliOADBTriggerAnalysis * cTA = new AliOADBTriggerAnalysis("Default");
cTA->SetZDCCorrParameters(0.5, 0, 4*0.7, 4*0.7);
}

AliPhysicsSelection::AddCollisionTriggerClass sets a hardware trigger (combination) to be a collision of a given kind (e.g., kMB). First argument is the collision kind (see AliVEvent), second is the

AliPhysicsSelection::AddBGTrigerClass sets a hardware trigger (combination) to be a background trigger of the quivilent collisions trigger.

AliPhysicsSelection::SetHardwareTrigger sets how to replay the hardware trigger off-line.

AliPhysicsSelection::SetOfflineTrigger sets the off-line conditions to meet.

Parameters
mcWhether this is for MC
mgrManager

Reimplemented from TrainSetup.

Definition at line 112 of file QATrain.C.

void QATrain::CreatePID ( )
inlineprotected

Definition at line 281 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreatePIDRes ( )
inlineprotected

Definition at line 275 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateSDD ( )
inlineprotected

Definition at line 168 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateSPD ( )
inlineprotected

Definition at line 159 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateSSD ( )
inlineprotected

Definition at line 173 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateSymmetric ( )
inlineprotected

Definition at line 130 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateT0 ( )
inlineprotected

Definition at line 293 of file QATrain.C.

Referenced by CreateTasks().

AliAnalysisTaskSE* QATrain::CreateTaskAndSetCollisionCandidates ( const char *  macro,
const char *  args = "" 
)
inlineprotected
void QATrain::CreateTasks ( EMode  mode,
Bool_t  par,
AliAnalysisManager mgr 
)
inlineprotected

Create the tasks

Parameters
modeProcessing mode
parWhether to use par files
mgrAnalysis manager

Definition at line 316 of file QATrain.C.

void QATrain::CreateTOF ( )
inlineprotected

Definition at line 268 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateTPC ( )
inlineprotected

Definition at line 142 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateTRD ( )
inlineprotected

Definition at line 198 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateV0 ( )
inlineprotected

Definition at line 244 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateVertex ( )
inlineprotected

Definition at line 125 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateVZERO ( )
inlineprotected

Definition at line 137 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::CreateZDC ( )
inlineprotected

Definition at line 204 of file QATrain.C.

Referenced by CreateTasks().

void QATrain::SetFlags ( UShort_t  flags)
inline

Definition at line 83 of file QATrain.C.

void QATrain::SetModules ( UInt_t  m)
inline

Definition at line 85 of file QATrain.C.

void QATrain::SetRun ( UInt_t  run)
inline

Definition at line 84 of file QATrain.C.

Member Data Documentation

UShort_t QATrain::fCollisionType
protected

Definition at line 372 of file QATrain.C.

Referenced by CreateBRes(), and CreateITS().

UShort_t QATrain::fFlags
protected
UInt_t QATrain::fModules
protected

Definition at line 367 of file QATrain.C.

Referenced by CreateTasks(), and SetModules().

UInt_t QATrain::fRun
protected

Definition at line 365 of file QATrain.C.

Referenced by CreateCDBConnect(), CreateInputHandler(), and SetRun().

UInt_t QATrain::fTriggerEMC
protected

Definition at line 370 of file QATrain.C.

Referenced by CreateCALO(), and CreateSymmetric().

UInt_t QATrain::fTriggerHM
protected

Definition at line 369 of file QATrain.C.

Referenced by CreateSymmetric().

UInt_t QATrain::fTriggerMask
protected
UInt_t QATrain::fTriggerMUONBarrel
protected

Definition at line 371 of file QATrain.C.

Referenced by CreateSymmetric().

Bool_t QATrain::fUseCent
protected

Definition at line 375 of file QATrain.C.


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