--- PamCut/doc/Doxygen/html/classPamCutCollection.html 2009/05/27 13:30:08 1.1 +++ PamCut/doc/Doxygen/html/classPamCutCollection.html 2009/06/05 13:16:09 1.2 @@ -36,9 +36,9 @@ PamCut BlindCutCollection SmartCollection -SmartBlindCollection -VerboseCollection -VerboseBlindCollection +SmartBlindCollection +VerboseCollection +VerboseBlindCollection @@ -49,9 +49,10 @@  PamCutCollection (const char *collectionName)  Constructor.
~PamCutCollection () +~PamCutCollection () - Destructor.
+ Destructor.
void AddCut (PamCut &cut)  Adds a cut to the cut collection This routine adds a cut to the collection. These are stored in a vector in the same order they are inserted (the first cut would be element 0, the second cut element 1 and so on). All the references to a "cut number" or "cut index" will refer to this numbering scheme.
@@ -77,16 +78,15 @@  Assignment operator redefinition. The assignment operator replaces the content of the LHS with that of RHS. The net effect would be that the cuts contained in the LHS are exactly the same that are in the RHS. In particular, this means that any modification to one of the cuts will propagate both to the LHS and RHS collections. Also the cut name will be copied, since the implementation invokes PamCut::operator=.

Protected Attributes

-std::vector< PamCut * > _cuts + +std::vector< PamCut * > _cuts - A vector containing pointers to PamCut objects.
+ A vector containing pointers to PamCut objects.

Detailed Description

A class which applies a set of cuts to Pamela data.

-This is a multi-cut class, which inherits from PamCut. Indeed, a multi-cut can be seen as a cut composed by various simpler cuts; hence the interface of PamCut is also functional for PamCutCollection. The ApplyCut(PamLevel2 *event) method is overridden so as all the cuts that compose the PamCutCollection are applied to the events in the same order they are added to the collection. Instead, Process(PamLevel2 *events, ULong_t firstEvent, ULong_t lastEvent) is NOT overridden, since it performs the same task as the one in the base class: it is sufficient to override Check(PamLevel2 *event) to replace the single-cut evaluation with a multi-cut evaluation. -

Definition at line 171 of file PamCutBase.h.

-

Constructor & Destructor Documentation

+This is a multi-cut class, which inherits from PamCut. Indeed, a multi-cut can be seen as a cut composed by various simpler cuts; hence the interface of PamCut is also functional for PamCutCollection. The ApplyCut(PamLevel2 *event) method is overridden so as all the cuts that compose the PamCutCollection are applied to the events in the same order they are added to the collection. Instead, Process(PamLevel2 *events, ULong_t firstEvent, ULong_t lastEvent) is NOT overridden, since it performs the same task as the one in the base class: it is sufficient to override Check(PamLevel2 *event) to replace the single-cut evaluation with a multi-cut evaluation.

Constructor & Destructor Documentation

@@ -112,31 +112,6 @@ -

Definition at line 178 of file PamCutBase.h.

- -
-

- -

-
- - - - - - - - -
PamCutCollection::~PamCutCollection (  )  [inline]
-
-
- -

-Destructor. -

- -

Definition at line 183 of file PamCutBase.h.

-


Member Function Documentation

@@ -165,10 +140,6 @@ -

Definition at line 74 of file PamCutBase.cpp.

- -

References _cuts.

-

@@ -200,11 +171,7 @@

Reimplemented from PamCut.

-

Reimplemented in BlindCutCollection.

- -

Definition at line 94 of file PamCutBase.cpp.

- -

References _cuts, PamCut::_nEv, PamCut::_nGood, CUTOK, PamCut::OnBad(), and PamCut::OnGood().

+

Reimplemented in BlindCutCollection, SmartBlindCollection, and SmartCollection.

@@ -228,16 +195,17 @@ The basic selection.

Like in the mother class, this method performs a basic check on the current event: it calls Check() for each cut previously added with AddCut(), exiting if one of them is not satisfied.

+

Parameters:
+ + +
event The event to analyze.
+
Returns:
the index of the failed cut (range: [0, #cuts-1], see AddCut()); CUTOK if the event satisfies all the cuts.

Implements PamCut.

Reimplemented in BlindCutCollection.

-

Definition at line 78 of file PamCutBase.cpp.

- -

References _cuts, and CUTOK.

-

@@ -261,11 +229,7 @@ This override of the Finalize() method calls PamCut::Finalize() and then the Finalize() method of each cut contained in the collection, in the same order.

Reimplemented from PamCut.

-

Reimplemented in SmartBlindCollection, SmartCollection, VerboseBlindCollection, and VerboseCollection.

- -

Definition at line 146 of file PamCutBase.cpp.

- -

References _cuts, and GetSize().

+

Reimplemented in SmartCollection, VerboseBlindCollection, and VerboseCollection.

@@ -296,12 +260,6 @@

Returns:
pointer to the iCut-th cut; NULL if the specified cut cannot be found or if no cuts are present.
-

Definition at line 116 of file PamCutBase.cpp.

- -

References _cuts.

- -

Referenced by VerboseCollection::Finalize(), and VerboseBlindCollection::Finalize().

-

@@ -324,12 +282,6 @@

Returns:
The number of cuts
-

Definition at line 125 of file PamCutBase.cpp.

- -

References _cuts.

- -

Referenced by Finalize(), VerboseCollection::Finalize(), VerboseBlindCollection::Finalize(), and Setup().

-

@@ -358,10 +310,6 @@

Returns:
The new value for LHS.
-

Definition at line 130 of file PamCutBase.cpp.

- -

References _cuts.

-

@@ -392,40 +340,14 @@

Reimplemented from PamCut.

-

Reimplemented in SmartBlindCollection, and SmartCollection.

- -

Definition at line 137 of file PamCutBase.cpp.

- -

References _cuts, and GetSize().

- - -

-


Member Data Documentation

- -
-
- - - - -
std::vector<PamCut*> PamCutCollection::_cuts [protected]
-
-
- -

-A vector containing pointers to PamCut objects. -

- -

Definition at line 261 of file PamCutBase.h.

- -

Referenced by AddCut(), ApplyCut(), BlindCutCollection::ApplyCut(), Check(), BlindCutCollection::Check(), Finalize(), VerboseCollection::Finalize(), VerboseBlindCollection::Finalize(), GetCut(), GetSize(), operator=(), and Setup().

+

Reimplemented in SmartCollection.


The documentation for this class was generated from the following files: +
  • PamCutBase/PamCutBase.h
  • PamCutBase/PamCutBase.cpp -
    Generated on Wed May 27 15:21:41 2009 for PamCut by  +
    Generated on Fri Jun 5 15:09:03 2009 for PamCut by  doxygen 1.5.9