/[PAMELA software]/PamCut/MiscCuts/DataQualCut/DataQualCut.h
ViewVC logotype

Diff of /PamCut/MiscCuts/DataQualCut/DataQualCut.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Tue Mar 9 18:02:08 2010 UTC
# Line 2  Line 2 
2   * DataQualCut.h   * DataQualCut.h
3   *   *
4   *  Created on: 10-mar-2009   *  Created on: 10-mar-2009
5   *      Author: Nicola Mori, S. Ricciarini   *      Author: N. Mori
6   */   */
7    
8  #ifndef DATAQUALCUT_H_  #ifndef DATAQUALCUT_H_
# Line 16  Line 16 
16   * This cut ensures that all the data relative to the various detectors is   * This cut ensures that all the data relative to the various detectors is
17   * present in the current event and that it has been correctly read.   * present in the current event and that it has been correctly read.
18   */   */
19  //TODO: vedere se includere il ND e S4, chiedere riguardo al controllo su ORB che non c'e' in PamLevel2::IsGood()  
20  class DataQualCut: public PamCut {  class DataQualCut: public PamCut {
21    
22  public:  public:
# Line 26  DataQualCut.h Line 26  DataQualCut.h
26     * @param cutName The cut's name.     * @param cutName The cut's name.
27     * @param cutMask An integer whose binary code would provide a mask for the cuts to apply;     * @param cutMask An integer whose binary code would provide a mask for the cuts to apply;
28     *        use a DETECTORCODE or a combination of them to enable the corresponding checks.     *        use a DETECTORCODE or a combination of them to enable the corresponding checks.
29     *        Default: ALL (meaning all Level 2 detectors except S4 and ND).     *        Default: DEFAULT (meaning Level-2 for TRK, CALO, TOF, ANT, TRG, ORB).
30     */     */
31    
32    DataQualCut(const char *cutName, unsigned int cutMask=ALL) :    DataQualCut(const char *cutName, unsigned int cutMask=DEFAULT) :
33      PamCut(cutName), _cutMask(cutMask) {      PamCut(cutName), _cutMask(cutMask) {
34    }    }
35    /*! @brief Destructor. */    /*! @brief Destructor. */
# Line 39  DataQualCut.h Line 39  DataQualCut.h
39    /*! @brief The event and data quality check.    /*! @brief The event and data quality check.
40     *     *
41     * This method checks if the pointers to the various detectors level 2 data are present and     * This method checks if the pointers to the various detectors level 2 data are present and
42     * if the data has been correctly unpacked, in this order:     * if the data has been correctly unpacked. If it finds missing or corrupted data, it
    * Tracker, Calo, ToF, AC, Trigger, Orbital Info. If it finds missing or corrupted data, it  
43     * will stop the check and return a code corresponding to the missing/corrupted detector data.     * will stop the check and return a code corresponding to the missing/corrupted detector data.
44     *     *
45     * @param event The event to analyze.     * @param event The event to analyze.
# Line 49  DataQualCut.h Line 48  DataQualCut.h
48     * @return #CALO if Calo level2 data is missing or corrupted.     * @return #CALO if Calo level2 data is missing or corrupted.
49     * @return #CALO_L1 if Calo level1 data is missing     * @return #CALO_L1 if Calo level1 data is missing
50     * @return #TOF if ToF data is missing or corrupted.     * @return #TOF if ToF data is missing or corrupted.
51     * @return #AC if AC data is missing or corrupted.     * @return #ANT if AC data is missing or corrupted.
52     * @return #TRIG if Trigger data is missing or corrupted.     * @return #TRG if Trigger data is missing or corrupted.
53     * @return #ORB if Orbital Info data is missing.     * @return #ORB if Orbital Info data is missing.
54     */     */
55    int Check(PamLevel2 *event);    int Check(PamLevel2 *event);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23